Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

refactor: expose lobehub models

YuTengjing41c0b3bab3c8
diff --git a/packages/business/const/src/lobehub/models.ts b/packages/business/const/src/lobehub/models.ts
deleted file mode 100644
index 5a2b65cf224..00000000000
--- a/packages/business/const/src/lobehub/models.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import type { AIChatModelCard, AIImageModelCard } from 'model-bank';
-
-const lobehubChatModels: AIChatModelCard[] = [];
-
-const lobehubImageModels: AIImageModelCard[] = [];
-
-export const allModels = [...lobehubChatModels, ...lobehubImageModels];
-
-export default allModels;
diff --git a/packages/model-bank/package.json b/packages/model-bank/package.json
index 600f153fe73..10fc14e0b90 100644
--- a/packages/model-bank/package.json
+++ b/packages/model-bank/package.json
@@ -81,6 +81,7 @@
"test:coverage": "vitest --coverage --silent='passed-only'"
},
"dependencies": {
+ "@lobechat/business-const": "workspace:*",
"type-fest": "^5.2.0"
},
"peerDependencies": {
diff --git a/packages/model-bank/src/aiModels/lobehub.ts b/packages/model-bank/src/aiModels/lobehub.ts
index c8a7d49cbc6..c79d7349cd2 100644
--- a/packages/model-bank/src/aiModels/lobehub.ts
+++ b/packages/model-bank/src/aiModels/lobehub.ts
@@ -1,7 +1,1248 @@
-import { AIChatModelCard } from '../types/aiModel';
+import { ModelParamsSchema } from 'model-bank';
-const lobehubChatModels: AIChatModelCard[] = [];
+import { AIChatModelCard, AIImageModelCard } from '../types/aiModel';
+import { huanyuanImageParamsSchema, qwenEditParamsSchema, qwenImageParamsSchema } from './fal';
-export const allModels = [...lobehubChatModels];
+const lobehubChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 400_000,
+ description: ' GPT-5.2 — OpenAI 旗舰模型,专为编码和 agent 任务优化,适用于各行业场景。',
+ displayName: 'GPT-5.2',
+ enabled: true,
+ id: 'gpt-5.2',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-12-11',
+ settings: {
+ extendParams: ['gpt5_1ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 400_000,
+ description:
+ 'GPT-5.1 — 针对编码和 agent 任务优化的旗舰模型,支持可配置的推理强度与更长上下文。',
+ displayName: 'GPT-5.1',
+ enabled: true,
+ id: 'gpt-5.1',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-13',
+ settings: {
+ extendParams: ['gpt5_1ReasoningEffort', 'textVerbosity'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 400_000,
+ description:
+ '跨领域编码和代理任务的最佳模型。GPT-5 在准确性、速度、推理、上下文识别、结构化思维和问题解决方面实现了飞跃。',
+ displayName: 'GPT-5',
+ enabled: true,
+ id: 'gpt-5',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-07',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 400_000,
+ description:
+ '更快、更经济高效的 GPT-5 版本,适用于明确定义的任务。在保持高质量输出的同时,提供更快的响应速度。',
+ displayName: 'GPT-5 mini',
+ enabled: true,
+ id: 'gpt-5-mini',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-07',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 400_000,
+ description: '最快、最经济高效的 GPT-5 版本。非常适合需要快速响应且成本敏感的应用场景。',
+ displayName: 'GPT-5 nano',
+ id: 'gpt-5-nano',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-07',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ vision: true,
+ },
+ contextWindowTokens: 400_000,
+ description:
+ 'ChatGPT 中使用的 GPT-5 模型。结合了强大的语言理解与生成能力,适合对话式交互应用。',
+ displayName: 'GPT-5 Chat',
+ enabled: true,
+ id: 'gpt-5-chat-latest',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-07',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_047_576,
+ description: 'GPT-4.1 是我们用于复杂任务的旗舰模型。它非常适合跨领域解决问题。',
+ displayName: 'GPT-4.1',
+ enabled: true,
+ id: 'gpt-4.1',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-14',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_047_576,
+ description:
+ 'GPT-4.1 mini 提供了智能、速度和成本之间的平衡,使其成为许多用例中有吸引力的模型。',
+ displayName: 'GPT-4.1 mini',
+ id: 'gpt-4.1-mini',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-14',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_047_576,
+ description:
+ 'GPT-4.1 mini 提供了智能、速度和成本之间的平衡,使其成为许多用例中有吸引力的模型。',
+ displayName: 'GPT-4.1 nano',
+ id: 'gpt-4.1-nano',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-14',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'GPT-4o mini是OpenAI在GPT-4 Omni之后推出的最新模型,支持图文输入并输出文本。作为他们最先进的小型模型,它比其他近期的前沿模型便宜很多,并且比GPT-3.5 Turbo便宜超过60%。它保持了最先进的智能,同时具有显著的性价比。GPT-4o mini在MMLU测试中获得了 82% 的得分,目前在聊天偏好上排名高于 GPT-4。',
+ displayName: 'GPT-4o mini',
+ id: 'gpt-4o-mini',
+ maxOutput: 16_385,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-07-18',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。',
+ displayName: 'GPT-4o',
+ id: 'gpt-4o',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-05-13',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。',
+ displayName: 'ChatGPT-4o',
+ id: 'chatgpt-4o-latest',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-08-14',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。',
+ displayName: 'GPT-4 Turbo',
+ id: 'gpt-4-turbo',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o3 是一款全能强大的模型,在多个领域表现出色。它为数学、科学、编程和视觉推理任务树立了新标杆。它也擅长技术写作和指令遵循。用户可利用它分析文本、代码和图像,解决多步骤的复杂问题。',
+ displayName: 'o3',
+ enabled: true,
+ id: 'o3',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-17',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o4-mini 是我们最新的小型 o 系列模型。 它专为快速有效的推理而优化,在编码和视觉任务中表现出极高的效率和性能。',
+ displayName: 'o4-mini',
+ enabled: true,
+ id: 'o4-mini',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-17',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ // {
+ // contextWindowTokens: 128_000,
+ // description:
+ // 'o1是OpenAI新的推理模型,适用于需要广泛通用知识的复杂任务。该模型具有128K上下文和2023年10月的知识截止日期。',
+ // displayName: 'OpenAI o1-preview',
+ // enabled: true,
+ // id: 'o1-preview',
+ // maxOutput: 32_768,
+ // pricing: {
+ // input: 15,
+ // output: 60,
+ // },
+ // releasedAt: '2024-09-12',
+ // type: 'chat',
+ // },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description: 'Claude Sonnet 4.5 是 Anthropic 迄今为止最智能的模型。',
+ displayName: 'Claude Sonnet 4.5',
+ enabled: true,
+ id: 'claude-sonnet-4-5-20250929',
+ maxOutput: 8192,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-30',
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Sonnet 4 是 Anthropic 迄今为止最智能的模型。Claude 4 Sonnet 可以产生近乎即时的响应或延长的逐步思考,用户可以清晰地看到这些过程。API 用户还可以对模型思考的时间进行细致的控制',
+ displayName: 'Claude Sonnet 4',
+ id: 'claude-sonnet-4-20250514',
+ maxOutput: 8192,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 6, '5m': 3.75 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-05-23',
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Sonnet 3.7 是 Anthropic 迄今为止最智能的模型,也是市场上首个混合推理模型。Claude Sonnet 3.7 可以产生近乎即时的响应或延长的逐步思考,用户可以清晰地看到这些过程。API 用户还可以对模型思考的时间进行细致的控制',
+ displayName: 'Claude Sonnet 3.7',
+ id: 'claude-3-7-sonnet-20250219',
+ maxOutput: 8192,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 6, '5m': 3.75 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了卓越的智能与可扩展性能,适合需要最高质量回应和推理能力的复杂任务。',
+ displayName: 'Claude Opus 4.5',
+ enabled: true,
+ id: 'claude-opus-4-5-20251101',
+ maxOutput: 64_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 10, '5m': 6.25 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-11-24',
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Opus 4.1 是 Anthropic 最新的用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
+ displayName: 'Claude Opus 4.1',
+ id: 'claude-opus-4-1-20250805',
+ maxOutput: 32_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 30, '5m': 18.75 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-08-05',
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Opus 4 是 Anthropic 用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
+ displayName: 'Claude Opus 4',
+ id: 'claude-opus-4-20250514',
+ maxOutput: 32_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 30, '5m': 18.75 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-05-23',
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具有闪电般的速度和扩展思考能力。',
+ displayName: 'Claude Haiku 4.5',
+ enabled: true,
+ id: 'claude-haiku-4-5-20251001',
+ maxOutput: 64_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 2, '5m': 1.25 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-10-16',
+ settings: {
+ extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
+ displayName: 'Claude 3.5 Haiku',
+ id: 'claude-3-5-haiku-20241022',
+ maxOutput: 8192,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 1.6, '5m': 1 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2024-11-05',
+ settings: {
+ extendParams: ['disableContextCaching'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description:
+ 'Gemini 3 Pro 是全球最佳的多模态理解模型,也是 Google 迄今为止最强大的智能体和氛围编程模型,提供更丰富的视觉效果和更深层次的交互性,所有这些都建立在最先进的推理能力基础之上。',
+ displayName: 'Gemini 3 Pro Preview',
+ enabled: true,
+ id: 'gemini-3-pro-preview',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.2, upTo: 200_000 },
+ { rate: 0.4, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2, upTo: 200_000 },
+ { rate: 4, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 12, upTo: 200_000 },
+ { rate: 18, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ lookup: { prices: { '1h': 4.5 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-11-18',
+ settings: {
+ extendParams: ['thinkingLevel', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description:
+ 'Gemini 3 Flash Preview 是 Google 最新一代高性价比模型,在 Gemini 2.5 Flash 基础上进一步提升性能。',
+ displayName: 'Gemini 3 Flash Preview',
+ enabled: true,
+ id: 'gemini-3-flash-preview',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ {
+ name: 'textInput',
+ rate: 0.5,
+ strategy: 'fixed',
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ rate: 0.05,
+ strategy: 'fixed',
+ unit: 'millionTokens',
+ },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-12-17',
+ settings: {
+ extendParams: ['thinkingLevel', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description:
+ 'Gemini 2.5 Pro 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
+ displayName: 'Gemini 2.5 Pro',
+ enabled: true,
+ id: 'gemini-2.5-pro',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.31, upTo: 200_000 },
+ { rate: 0.625, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 1.25, upTo: 200_000 },
+ { rate: 2.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 10, upTo: 200_000 },
+ { rate: 15, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2025-06-17',
+ settings: {
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description: 'Gemini 2.5 Flash 是 Google 性价比最高的模型,提供全面的功能。',
+ displayName: 'Gemini 2.5 Flash',
+ enabled: true,
+ id: 'gemini-2.5-flash',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ rate: 0.03,
+ strategy: 'fixed',
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ rate: 0.3,
+ strategy: 'fixed',
+ unit: 'millionTokens',
+ },
+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-06-17',
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ imageOutput: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 131_072 + 32_768,
+ description:
+ 'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
+ displayName: 'Nano Banana Pro',
+ enabled: true,
+ id: 'gemini-3-pro-image-preview',
+ maxOutput: 32_768,
+ pricing: {
+ approximatePricePerImage: 0.134,
+ units: [
+ { name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ settings: {
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ imageOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 32_768 + 32_768,
+ description:
+ 'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。',
+ displayName: 'Nano Banana',
+ enabled: true,
+ id: 'gemini-2.5-flash-image-preview',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-26',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ imageOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 32_768,
+ description: 'Gemini 2.0 Flash 实验模型,支持图像生成',
+ displayName: 'Gemini 2.0 Flash (Image Generation) Experimental',
+ enabled: true,
+ id: 'gemini-2.0-flash-exp-image-generation',
+ maxOutput: 8192,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'audioInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-03-14',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 65_536,
+ description:
+ 'DeepSeek V3.2 平衡推理能力与输出长度,适合日常问答与 Agent 任务。公开推理基准达到 GPT-5 水平,首个将思考融入工具调用的模型,Agent 评测达开源最高水平。',
+ displayName: 'DeepSeek V3.2',
+ enabled: true,
+ id: 'deepseek-chat',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.56, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.07, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.68, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-12-01',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 65_536,
+ description:
+ 'DeepSeek V3.2 Thinking 深度推理模型,输出前先生成思维链内容以提升准确性。在 IMO、CMO、ICPC 世界总决赛及 IOI 2025 均获金牌,推理能力媲美 Gemini-3.0-Pro。',
+ displayName: 'DeepSeek V3.2 Thinking',
+ enabled: true,
+ id: 'deepseek-reasoner',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.19, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.14, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-12-01',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ },
+ contextWindowTokens: 204_800,
+ description: '专为高效编码与 Agent 工作流而生',
+ displayName: 'MiniMax M2',
+ enabled: true,
+ id: 'MiniMax-M2-Stable',
+ maxOutput: 131_072,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ name: 'textInput_cacheWrite',
+ rate: 0.375,
+ strategy: 'fixed',
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ rate: 0.03,
+ strategy: 'fixed',
+ unit: 'millionTokens',
+ },
+
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-10-27',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ },
+ contextWindowTokens: 131_072,
+ description:
+ 'kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。',
+ displayName: 'Kimi K2',
+ enabled: true,
+ id: 'kimi-k2-0711-preview',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-07-11',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+];
+
+// Common parameters for Imagen models
+const imagenBaseParameters: ModelParamsSchema = {
+ aspectRatio: {
+ default: '1:1',
+ enum: ['1:1', '16:9', '9:16', '3:4', '4:3'],
+ },
+ prompt: { default: '' },
+};
+
+const NANO_BANANA_ASPECT_RATIOS = [
+ '1:1', // 1024x1024 / 2048x2048 / 4096x4096
+ '2:3', // 848x1264 / 1696x2528 / 3392x5056
+ '3:2', // 1264x848 / 2528x1696 / 5056x3392
+ '3:4', // 896x1200 / 1792x2400 / 3584x4800
+ '4:3', // 1200x896 / 2400x1792 / 4800x3584
+ '4:5', // 928x1152 / 1856x2304 / 3712x4608
+ '5:4', // 1152x928 / 2304x1856 / 4608x3712
+ '9:16', // 768x1376 / 1536x2752 / 3072x5504
+ '16:9', // 1376x768 / 2752x1536 / 5504x3072
+ '21:9', // 1584x672 / 3168x1344 / 6336x2688
+];
+
+export const nanoBananaParameters: ModelParamsSchema = {
+ aspectRatio: {
+ default: '1:1',
+ enum: NANO_BANANA_ASPECT_RATIOS,
+ },
+ imageUrls: {
+ default: [],
+ },
+ prompt: { default: '' },
+};
+
+export const nanoBananaProParameters: ModelParamsSchema = {
+ aspectRatio: {
+ default: '1:1',
+ enum: NANO_BANANA_ASPECT_RATIOS,
+ },
+ imageUrls: {
+ default: [],
+ },
+ prompt: { default: '' },
+ resolution: {
+ default: '1K',
+ enum: ['1K', '2K', '4K'],
+ },
+};
+
+const lobehubImageModels: AIImageModelCard[] = [
+ {
+ description:
+ 'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
+ displayName: 'Nano Banana Pro',
+ enabled: true,
+ id: 'gemini-3-pro-image-preview:image',
+ parameters: nanoBananaProParameters,
+ pricing: {
+ approximatePricePerImage: 0.134,
+ units: [
+ { name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-18',
+ type: 'image',
+ },
+ {
+ description:
+ 'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。',
+ displayName: 'Nano Banana',
+ enabled: true,
+ id: 'gemini-2.5-flash-image-preview:image',
+ parameters: nanoBananaParameters,
+ pricing: {
+ approximatePricePerImage: 0.039,
+ units: [
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-26',
+ type: 'image',
+ },
+ {
+ description: 'Imagen 4th generation text-to-image model series',
+ displayName: 'Imagen 4 Fast',
+ enabled: false,
+ id: 'imagen-4.0-fast-generate-001',
+ organization: 'Deepmind',
+ parameters: imagenBaseParameters,
+ pricing: {
+ units: [{ name: 'imageGeneration', rate: 0.02, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-08-15',
+ type: 'image',
+ },
+ {
+ description: 'Imagen 4th generation text-to-image model series',
+ displayName: 'Imagen 4',
+ enabled: false,
+ id: 'imagen-4.0-generate-001',
+ organization: 'Deepmind',
+ parameters: imagenBaseParameters,
+ pricing: {
+ units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-08-15',
+ type: 'image',
+ },
+ {
+ description: 'Imagen 4th generation text-to-image model series Ultra version',
+ displayName: 'Imagen 4 Ultra',
+ enabled: false,
+ id: 'imagen-4.0-ultra-generate-001',
+ organization: 'Deepmind',
+ parameters: imagenBaseParameters,
+ pricing: {
+ units: [{ name: 'imageGeneration', rate: 0.06, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-08-15',
+ type: 'image',
+ },
+ {
+ description: 'ChatGPT 原生多模态图片生成模型',
+ displayName: 'GPT Image 1',
+ enabled: true,
+ id: 'gpt-image-1',
+ parameters: {
+ imageUrls: { default: [], maxCount: 1, maxFileSize: 5 },
+ prompt: { default: '' },
+ size: {
+ default: 'auto',
+ enum: ['auto', '1024x1024', '1536x1024', '1024x1536'],
+ },
+ },
+ pricing: {
+ approximatePricePerImage: 0.042,
+ units: [
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'imageOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'image',
+ },
+ {
+ description:
+ '最新的 DALL·E 模型,于2023年11月发布。支持更真实、准确的图像生成,具有更强的细节表现力',
+ displayName: 'DALL·E 3',
+ enabled: false,
+ id: 'dall-e-3',
+ parameters: {
+ prompt: { default: '' },
+ quality: {
+ default: 'standard',
+ enum: ['standard', 'hd'],
+ },
+ size: {
+ default: '1024x1024',
+ enum: ['1024x1024', '1792x1024', '1024x1792'],
+ },
+ },
+ pricing: {
+ approximatePricePerImage: 0.004,
+ units: [
+ {
+ lookup: {
+ prices: {
+ hd_1024x1024: 0.08,
+ hd_1024x1792: 0.12,
+ hd_1792x1024: 0.12,
+ standard_1024x1024: 0.04,
+ standard_1024x1792: 0.08,
+ standard_1792x1024: 0.08,
+ },
+ pricingParams: ['quality', 'size'],
+ },
+ name: 'imageGeneration',
+ strategy: 'lookup',
+ unit: 'image',
+ },
+ ],
+ },
+ resolutions: ['1024x1024', '1024x1792', '1792x1024'],
+ type: 'image',
+ },
+ {
+ description:
+ 'Seedream 4.0 图片生成模型由字节跳动 Seed 团队研发,支持文字与图片输入,提供高可控、高质量的图片生成体验。基于文本提示词生成图片。',
+ displayName: 'Seedream 4.0',
+ enabled: true,
+ id: 'fal-ai/bytedance/seedream/v4',
+ parameters: {
+ height: { default: 1024, max: 4096, min: 1024, step: 1 },
+ imageUrls: { default: [], maxCount: 10, maxFileSize: 10 * 1024 * 1024 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 4096, min: 1024, step: 1 },
+ },
+ pricing: {
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-09-09',
+ type: 'image',
+ },
+ {
+ description: '一个强大的原生多模态图像生成模型',
+ displayName: 'HunyuanImage 3.0',
+ enabled: true,
+ id: 'fal-ai/hunyuan-image/v3',
+ parameters: huanyuanImageParamsSchema,
+ pricing: {
+ // 原价:0.1 x 1024 x 1024 / 100_0000 = 0.1048576$
+ units: [{ name: 'imageGeneration', rate: 0.11, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-09-28',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen 团队发布的专业图像编辑模型,支持语义编辑和外观编辑,能够精确编辑中英文文字,实现风格转换、对象旋转等高质量图像编辑。',
+ displayName: 'Qwen Edit',
+ enabled: true,
+ id: 'fal-ai/qwen-image-edit',
+ parameters: qwenEditParamsSchema,
+ pricing: {
+ // https://fal.ai/models/fal-ai/qwen-image-edit
+ // 原价:0.03 x 1328 x 1328 / 100_0000 = 0.05290752
+ units: [{ name: 'imageGeneration', rate: 0.06, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-08-19',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen 团队带来的强大生图模型,具有令人印象深刻的中文文字生成能力和多样图片视觉风格。',
+ displayName: 'Qwen Image',
+ enabled: true,
+ id: 'fal-ai/qwen-image',
+ parameters: qwenImageParamsSchema,
+ pricing: {
+ // 原价:0.02 x 1328 x 1328 / 100_0000 = 0.03527168
+ units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-08-04',
+ type: 'image',
+ },
+];
+
+export const allModels = [...lobehubChatModels, ...lobehubImageModels];
export default allModels;