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.

✨ feat(model-bank): mark vendor-listed model cards as official (#22124)

YuTengjing8ef8356bc601
diff --git a/docs/development/basic/add-new-image-model.mdx b/docs/development/basic/add-new-image-model.mdx
index c8e3125748a..57af68f1079 100644
--- a/docs/development/basic/add-new-image-model.mdx
+++ b/docs/development/basic/add-new-image-model.mdx
@@ -32,10 +32,10 @@ All image generation models must use the standard parameters defined in `package
These models can be requested using the OpenAI SDK, with request parameters and return values consistent with DALL-E and GPT-Image-X series.
-Taking Zhipu's CogView-4 as an example, which is an OpenAI-compatible model, you can add it by adding the model configuration in the corresponding AI models file `packages/model-bank/src/aiModels/zhipu.ts`:
+Taking Zhipu's CogView-4 as an example, which is an OpenAI-compatible model, you can add it by adding the model configuration in the corresponding AI models file `packages/model-bank/src/aiModels/zhipu/nonChat.ts`:
```ts
-const zhipuImageModels: AIImageModelCard[] = [
+export const zhipuImageModels: AIImageModelCard[] = [
// Add model configuration
// https://bigmodel.cn/dev/howuse/image-generation-model/cogview-4
{
diff --git a/docs/development/basic/add-new-image-model.zh-CN.mdx b/docs/development/basic/add-new-image-model.zh-CN.mdx
index 3f0f29d991a..0e300b1e434 100644
--- a/docs/development/basic/add-new-image-model.zh-CN.mdx
+++ b/docs/development/basic/add-new-image-model.zh-CN.mdx
@@ -30,10 +30,10 @@ tags:
指的是可以使用 openai SDK 进行请求,并且请求参数和和返回值和 dall-e 以及 gpt-image-x 系列一致。
-以智谱的 CogView-4 为例,它是一个兼容 openai 请求格式的模型。你只需要在对应的 ai models 文件 `packages/model-bank/src/aiModels/zhipu.ts` 中,添加模型配置,例如:
+以智谱的 CogView-4 为例,它是一个兼容 openai 请求格式的模型。你只需要在对应的 ai models 文件 `packages/model-bank/src/aiModels/zhipu/nonChat.ts` 中,添加模型配置,例如:
```ts
-const zhipuImageModels: AIImageModelCard[] = [
+export const zhipuImageModels: AIImageModelCard[] = [
// 添加模型配置
// https://bigmodel.cn/dev/howuse/image-generation-model/cogview-4
{
diff --git a/packages/model-bank/package.json b/packages/model-bank/package.json
index 1184e801cbd..d77ed5f9c87 100644
--- a/packages/model-bank/package.json
+++ b/packages/model-bank/package.json
@@ -70,7 +70,7 @@
"./perplexity": "./src/aiModels/perplexity.ts",
"./ppio": "./src/aiModels/ppio.ts",
"./qiniu": "./src/aiModels/qiniu.ts",
- "./qwen": "./src/aiModels/qwen.ts",
+ "./qwen": "./src/aiModels/qwen/index.ts",
"./replicate": "./src/aiModels/replicate.ts",
"./sambanova": "./src/aiModels/sambanova.ts",
"./search1api": "./src/aiModels/search1api.ts",
@@ -99,7 +99,7 @@
"./xinference": "./src/aiModels/xinference.ts",
"./zenmux": "./src/aiModels/zenmux.ts",
"./zeroone": "./src/aiModels/zeroone.ts",
- "./zhipu": "./src/aiModels/zhipu.ts",
+ "./zhipu": "./src/aiModels/zhipu/index.ts",
"./standardParameters": "./src/standard-parameters/index.ts",
"./types": "./src/types/index.ts"
},
diff --git a/packages/model-bank/src/aiModels/anthropic.ts b/packages/model-bank/src/aiModels/anthropic.ts
index 2b61f9e454e..aaf2c78ee89 100644
--- a/packages/model-bank/src/aiModels/anthropic.ts
+++ b/packages/model-bank/src/aiModels/anthropic.ts
@@ -17,6 +17,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-haiku',
generation: 'claude-5.5',
id: 'claude-haiku-5-5',
+ isOfficial: true,
knowledgeCutoff: '2026-06',
maxOutput: 128_000,
// Priced by prompt length: once a prompt (cache reads and writes included) exceeds 100K
@@ -89,6 +90,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-sonnet',
generation: 'claude-5.5',
id: 'claude-sonnet-5-5',
+ isOfficial: true,
knowledgeCutoff: '2026-06',
maxOutput: 128_000,
// https://platform.claude.com/docs/en/about-claude/pricing
@@ -132,6 +134,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-opus',
generation: 'claude-5.5',
id: 'claude-opus-5-5',
+ isOfficial: true,
knowledgeCutoff: '2026-06',
maxOutput: 128_000,
pricing: {
@@ -174,6 +177,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-mythos',
generation: 'mythos-5.1',
id: 'claude-fable-5-1',
+ isOfficial: true,
knowledgeCutoff: '2026-06',
maxOutput: 128_000,
pricing: {
@@ -216,6 +220,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-mythos',
generation: 'mythos-5',
id: 'claude-fable-5',
+ isOfficial: true,
knowledgeCutoff: '2026-01',
maxOutput: 128_000,
pricing: {
@@ -255,6 +260,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-opus',
generation: 'claude-5',
id: 'claude-opus-5',
+ isOfficial: true,
knowledgeCutoff: '2026-05',
maxOutput: 128_000,
pricing: {
@@ -294,6 +300,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-sonnet',
generation: 'claude-5',
id: 'claude-sonnet-5',
+ isOfficial: true,
knowledgeCutoff: '2026-01',
maxOutput: 128_000,
// The $2 / $10 launch pricing became the standard price; the increase to $3 / $15 that was
@@ -336,6 +343,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-opus',
generation: 'claude-4.8',
id: 'claude-opus-4-8',
+ isOfficial: true,
knowledgeCutoff: '2026-01',
maxOutput: 128_000,
pricing: {
@@ -375,6 +383,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-opus',
generation: 'claude-4.7',
id: 'claude-opus-4-7',
+ isOfficial: true,
knowledgeCutoff: '2026-01',
maxOutput: 128_000,
pricing: {
@@ -413,6 +422,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-opus',
generation: 'claude-4.6',
id: 'claude-opus-4-6',
+ isOfficial: true,
knowledgeCutoff: '2025-05',
maxOutput: 128_000,
pricing: {
@@ -450,6 +460,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-sonnet',
generation: 'claude-4.6',
id: 'claude-sonnet-4-6',
+ isOfficial: true,
knowledgeCutoff: '2025-08',
maxOutput: 64_000,
pricing: {
@@ -529,6 +540,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-sonnet',
generation: 'claude-4.5',
id: 'claude-sonnet-4-5-20250929',
+ isOfficial: true,
knowledgeCutoff: '2025-01',
maxOutput: 64_000,
pricing: {
@@ -567,6 +579,7 @@ const anthropicChatModels: AIChatModelCard[] = [
family: 'claude-haiku',
generation: 'claude-4.5',
id: 'claude-haiku-4-5-20251001',
+ isOfficial: true,
knowledgeCutoff: '2025-02',
maxOutput: 64_000,
pricing: {
diff --git a/packages/model-bank/src/aiModels/chatGPT.ts b/packages/model-bank/src/aiModels/chatGPT.ts
index c4dd6bb9769..41b72de5d46 100644
--- a/packages/model-bank/src/aiModels/chatGPT.ts
+++ b/packages/model-bank/src/aiModels/chatGPT.ts
@@ -15,12 +15,12 @@ const CHATGPT_MODEL_IDS = new Set([
/**
* Models available through ChatGPT subscription authentication use the Codex
* backend rather than the usage-billed OpenAI Platform API. Reuse the OpenAI
- * model metadata, but omit per-token pricing and cap the context window to the
- * current Codex catalog limit.
+ * model metadata, but omit per-token pricing and `isOfficial` (these cards carry no list price)
+ * and cap the context window to the current Codex catalog limit.
*/
const chatGPTChatModels: AIChatModelCard[] = openaiChatModels
.filter(({ id }) => CHATGPT_MODEL_IDS.has(id))
- .map(({ pricing: _pricing, ...model }) => ({
+ .map(({ isOfficial: _isOfficial, pricing: _pricing, ...model }) => ({
...model,
contextWindowTokens: 272_000,
settings: {
diff --git a/packages/model-bank/src/aiModels/deepseek.ts b/packages/model-bank/src/aiModels/deepseek.ts
index b83554c91d5..63a9aedcdb9 100644
--- a/packages/model-bank/src/aiModels/deepseek.ts
+++ b/packages/model-bank/src/aiModels/deepseek.ts
@@ -17,6 +17,7 @@ const deepseekChatModels: AIChatModelCard[] = [
family: 'deepseek',
generation: 'deepseek-v4',
id: 'deepseek-flash',
+ isOfficial: true,
maxOutput: 393_216,
pricing: {
currency: 'USD',
@@ -46,6 +47,7 @@ const deepseekChatModels: AIChatModelCard[] = [
family: 'deepseek',
generation: 'deepseek-v4',
id: 'deepseek-v4-flash',
+ isOfficial: true,
maxOutput: 393_216,
pricing: {
currency: 'USD',
@@ -75,6 +77,7 @@ const deepseekChatModels: AIChatModelCard[] = [
family: 'deepseek',
generation: 'deepseek-v4',
id: 'deepseek-v4-pro',
+ isOfficial: true,
maxOutput: 393_216,
pricing: {
currency: 'USD',
@@ -105,6 +108,7 @@ const deepseekChatModels: AIChatModelCard[] = [
family: 'deepseek',
generation: 'deepseek-v4',
id: 'deepseek-v4-flash-vision-exp',
+ isOfficial: true,
maxOutput: 393_216,
pricing: {
currency: 'USD',
diff --git a/packages/model-bank/src/aiModels/google/gemini25.ts b/packages/model-bank/src/aiModels/google/gemini25.ts
index f05eb4f7605..0b74a70a350 100644
--- a/packages/model-bank/src/aiModels/google/gemini25.ts
+++ b/packages/model-bank/src/aiModels/google/gemini25.ts
@@ -148,6 +148,7 @@ export const gemini25ChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-2.5',
id: 'gemini-2.5-flash-image',
+ isOfficial: true,
knowledgeCutoff: '2025-06',
maxOutput: 32_768,
pricing: {
diff --git a/packages/model-bank/src/aiModels/google/index.ts b/packages/model-bank/src/aiModels/google/index.ts
index b54de552465..ce27742c688 100644
--- a/packages/model-bank/src/aiModels/google/index.ts
+++ b/packages/model-bank/src/aiModels/google/index.ts
@@ -175,6 +175,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-4',
id: 'gemini-4-argon',
+ isOfficial: true,
knowledgeCutoff: '2026-03',
maxOutput: 65_536,
/** Introductory rates through 2026-11-30; they double afterward ($4 input, $0.20 cached input,
@@ -220,6 +221,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.8',
id: 'gemini-3.8-flash',
+ isOfficial: true,
knowledgeCutoff: '2026-03',
maxOutput: 65_536,
/** Introductory rates through 2026-12-31; standard token rates double afterward.
@@ -267,6 +269,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.7',
id: 'gemini-3.7-flash',
+ isOfficial: true,
knowledgeCutoff: '2026-03',
maxOutput: 65_536,
// Introductory pricing, in effect through 2026-12-31. From 2027-01-01 standard rates apply:
@@ -314,6 +317,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.6',
id: 'gemini-3.6-flash',
+ isOfficial: true,
knowledgeCutoff: '2026-03',
maxOutput: 65_536,
// Introductory pricing, in effect through 2026-12-31. From 2027-01-01 standard rates apply:
@@ -361,6 +365,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.5',
id: 'gemini-3.5-flash',
+ isOfficial: true,
knowledgeCutoff: '2025-01',
maxOutput: 65_536,
pricing: {
@@ -405,6 +410,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.5',
id: 'gemini-3.5-flash-lite',
+ isOfficial: true,
knowledgeCutoff: '2026-03',
maxOutput: 65_536,
pricing: {
@@ -448,6 +454,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.1',
id: 'gemini-nano-banana-2.1',
+ isOfficial: true,
maxOutput: 32_768,
// https://ai.google.dev/gemini-api/docs/pricing ($0.0336 per 1K image)
pricing: {
@@ -483,6 +490,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.1',
id: 'gemini-3.1-flash-image',
+ isOfficial: true,
knowledgeCutoff: '2025-01',
maxOutput: 32_768,
pricing: {
@@ -551,6 +559,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.1',
id: 'gemini-3.1-flash-lite-image',
+ isOfficial: true,
knowledgeCutoff: '2025-01',
maxOutput: 4_096,
pricing: {
@@ -587,6 +596,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3.1',
id: 'gemini-3.1-pro-preview',
+ isOfficial: true,
knowledgeCutoff: '2025-01',
maxOutput: 65_536,
pricing: {
@@ -794,6 +804,7 @@ const googleChatModels: AIChatModelCard[] = [
family: 'gemini',
generation: 'gemini-3',
id: 'gemini-3-pro-image-preview',
+ isOfficial: true,
knowledgeCutoff: '2025-01',
maxOutput: 32_768,
pricing: {
@@ -885,6 +896,7 @@ const googleImageModels: AIImageModelCard[] = [
{
displayName: 'Nano Banana 2.1',
id: 'gemini-nano-banana-2.1:image',
+ isOfficial: true,
type: 'image',
enabled: true,
description:
@@ -908,6 +920,7 @@ const googleImageModels: AIImageModelCard[] = [
{
displayName: 'Nano Banana 2',
id: 'gemini-3.1-flash-image:image',
+ isOfficial: true,
type: 'image',
enabled: true,
description:
@@ -944,6 +957,7 @@ const googleImageModels: AIImageModelCard[] = [
{
displayName: 'Nano Banana 2 Lite',
id: 'gemini-3.1-flash-lite-image:image',
+ isOfficial: true,
type: 'image',
enabled: true,
description:
@@ -963,6 +977,7 @@ const googleImageModels: AIImageModelCard[] = [
{
displayName: 'Nano Banana Pro',
id: 'gemini-3-pro-image-preview:image',
+ isOfficial: true,
type: 'image',
enabled: true,
description:
@@ -981,6 +996,7 @@ const googleImageModels: AIImageModelCard[] = [
{
displayName: 'Nano Banana',
id: 'gemini-2.5-flash-image:image',
+ isOfficial: true,
type: 'image',
description:
'Nano Banana is Google’s newest, fastest, and most efficient native multimodal model, enabling conversational image generation and editing.',
@@ -1068,6 +1084,7 @@ const googleVideoModels: AIVideoModelCard[] = [
displayName: 'Gemini Omni 1.1 Flash',
enabled: true,
id: 'gemini-omni-1.1-flash',
+ isOfficial: true,
parameters: {
aspectRatio: {
default: '16:9',
diff --git a/packages/model-bank/src/aiModels/isOfficial.test.ts b/packages/model-bank/src/aiModels/isOfficial.test.ts
new file mode 100644
index 00000000000..841e5e322a6
--- /dev/null
+++ b/packages/model-bank/src/aiModels/isOfficial.test.ts
@@ -0,0 +1,18 @@
+import { describe, expect, it } from 'vitest';
+
+import { LOBE_DEFAULT_MODEL_LIST } from './index';
+
+describe('isOfficial model cards', () => {
+ const officialCards = LOBE_DEFAULT_MODEL_LIST.filter((card) => card.isOfficial);
+
+ it('carry a list price, since callers use them to price usage', () => {
+ expect(
+ officialCards.filter((card) => !card.pricing).map((c) => `${c.providerId}/${c.id}`),
+ ).toEqual([]);
+ });
+
+ it('mark at most one card per model id and type', () => {
+ const keys = officialCards.map((card) => `${card.type}:${card.id}`);
+ expect(keys.filter((key, index) => keys.indexOf(key) !== index)).toEqual([]);
+ });
+});
diff --git a/packages/model-bank/src/aiModels/minimax.ts b/packages/model-bank/src/aiModels/minimax.ts
index d6baecaa532..3c83e0775e3 100644
--- a/packages/model-bank/src/aiModels/minimax.ts
+++ b/packages/model-bank/src/aiModels/minimax.ts
@@ -29,6 +29,7 @@ const minimaxChatModels: AIChatModelCard[] = [
family: 'minimax',
generation: 'minimax-m3.1',
id: 'MiniMax-M3.1-Flash',
+ isOfficial: true,
maxOutput: 524_288,
pricing: {
currency: 'USD',
@@ -60,6 +61,7 @@ const minimaxChatModels: AIChatModelCard[] = [
family: 'minimax',
generation: 'minimax-m3',
id: 'MiniMax-M3',
+ isOfficial: true,
maxOutput: 524_288,
pricing: {
currency: 'USD',
@@ -112,6 +114,7 @@ const minimaxChatModels: AIChatModelCard[] = [
family: 'minimax',
generation: 'minimax-m2.7',
id: 'MiniMax-M2.7',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -136,6 +139,7 @@ const minimaxChatModels: AIChatModelCard[] = [
family: 'minimax',
generation: 'minimax-m2.7',
id: 'MiniMax-M2.7-highspeed',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -161,6 +165,7 @@ const minimaxChatModels: AIChatModelCard[] = [
family: 'minimax',
generation: 'minimax-m2.5',
id: 'MiniMax-M2.5',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -185,6 +190,7 @@ const minimaxChatModels: AIChatModelCard[] = [
family: 'minimax',
generation: 'minimax-m2.5',
id: 'MiniMax-M2.5-highspeed',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
diff --git a/packages/model-bank/src/aiModels/moonshot.ts b/packages/model-bank/src/aiModels/moonshot.ts
index 986cbe03d71..82de0c9756a 100644
--- a/packages/model-bank/src/aiModels/moonshot.ts
+++ b/packages/model-bank/src/aiModels/moonshot.ts
@@ -17,6 +17,7 @@ const moonshotChatModels: AIChatModelCard[] = [
family: 'kimi',
generation: 'kimi-k3.1',
id: 'kimi-k3.1-pro',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -48,6 +49,7 @@ const moonshotChatModels: AIChatModelCard[] = [
family: 'kimi',
generation: 'kimi-k3.1',
id: 'kimi-k3.1-pro-highspeed',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -80,6 +82,7 @@ const moonshotChatModels: AIChatModelCard[] = [
family: 'kimi',
generation: 'kimi-k3',
id: 'kimi-k3',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -114,6 +117,7 @@ const moonshotChatModels: AIChatModelCard[] = [
family: 'kimi',
generation: 'kimi-k2.7',
id: 'kimi-k2.7-code',
+ isOfficial: true,
maxOutput: 32_768,
pricing: {
currency: 'USD',
@@ -168,6 +172,7 @@ const moonshotChatModels: AIChatModelCard[] = [
family: 'kimi',
generation: 'kimi-k2.6',
id: 'kimi-k2.6',
+ isOfficial: true,
maxOutput: 32_768,
pricing: {
currency: 'USD',
diff --git a/packages/model-bank/src/aiModels/openai/index.test.ts b/packages/model-bank/src/aiModels/openai/index.test.ts
new file mode 100644
index 00000000000..3d56c11bb3e
--- /dev/null
+++ b/packages/model-bank/src/aiModels/openai/index.test.ts
@@ -0,0 +1,31 @@
+import { describe, expect, it } from 'vitest';
+
+import { openaiChatModels } from './index';
+
+describe('openai chat model cards', () => {
+ /** @see https://developers.openai.com/api/docs/pricing */
+ it('bills gpt-5.5-pro prompts over 272K tokens at long-context rates', () => {
+ const card = openaiChatModels.find((model) => model.id === 'gpt-5.5-pro');
+
+ expect(card?.pricing?.units).toEqual([
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 30, upTo: 272_000 },
+ { rate: 60, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 180, upTo: 272_000 },
+ { rate: 270, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ]);
+ });
+});
diff --git a/packages/model-bank/src/aiModels/openai/index.ts b/packages/model-bank/src/aiModels/openai/index.ts
index 29490d1dd4b..ae612e395d4 100644
--- a/packages/model-bank/src/aiModels/openai/index.ts
+++ b/packages/model-bank/src/aiModels/openai/index.ts
@@ -1,5 +1,6 @@
import type { AIChatModelCard } from '../../types/aiModel';
import { openaiDecisionModels } from './decision';
+import { openaiLegacyChatModels } from './legacyChat';
import {
openaiASRModels,
openaiEmbeddingModels,
@@ -30,6 +31,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-6.1',
id: 'gpt-6.1-sol',
+ isOfficial: true,
knowledgeCutoff: '2026-04',
maxOutput: 128_000,
pricing: {
@@ -93,6 +95,7 @@ export const openaiChatModels: AIChatModelCard[] = [
displayName: 'GPT-6 Astra',
enabled: true,
id: 'gpt-6-astra',
+ isOfficial: true,
maxOutput: 128_000,
/** @see https://developers.openai.com/api/docs/models/gpt-6-astra */
pricing: {
@@ -160,6 +163,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-6',
id: 'gpt-6-sol',
+ isOfficial: true,
knowledgeCutoff: '2026-04',
maxOutput: 128_000,
/** @see https://developers.openai.com/api/docs/models/gpt-6-sol */
@@ -225,6 +229,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-6',
id: 'gpt-6-luna',
+ isOfficial: true,
knowledgeCutoff: '2026-05',
maxOutput: 128_000,
/** @see https://developers.openai.com/api/docs/models/gpt-6-luna */
@@ -317,6 +322,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.6',
id: 'gpt-5.6-sol',
+ isOfficial: true,
knowledgeCutoff: '2026-02',
maxOutput: 128_000,
pricing: {
@@ -382,6 +388,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.6',
id: 'gpt-5.6-terra',
+ isOfficial: true,
knowledgeCutoff: '2026-02',
maxOutput: 128_000,
pricing: {
@@ -447,6 +454,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.6',
id: 'gpt-5.6-luna',
+ isOfficial: true,
knowledgeCutoff: '2026-02',
maxOutput: 128_000,
pricing: {
@@ -511,6 +519,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.5',
id: 'gpt-5.5',
+ isOfficial: true,
knowledgeCutoff: '2025-12',
maxOutput: 128_000,
pricing: {
@@ -566,20 +575,27 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.5',
id: 'gpt-5.5-pro',
+ isOfficial: true,
knowledgeCutoff: '2025-12',
maxOutput: 128_000,
pricing: {
units: [
{
name: 'textInput',
- rate: 30,
- strategy: 'fixed',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 30, upTo: 272_000 },
+ { rate: 60, upTo: 'infinity' },
+ ],
unit: 'millionTokens',
},
{
name: 'textOutput',
- rate: 180,
- strategy: 'fixed',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 180, upTo: 272_000 },
+ { rate: 270, upTo: 'infinity' },
+ ],
unit: 'millionTokens',
},
],
@@ -606,6 +622,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.4',
id: 'gpt-5.4',
+ isOfficial: true,
knowledgeCutoff: '2025-08',
maxOutput: 128_000,
pricing: {
@@ -660,6 +677,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.4',
id: 'gpt-5.4-pro',
+ isOfficial: true,
knowledgeCutoff: '2025-08',
maxOutput: 128_000,
pricing: {
@@ -706,6 +724,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.4',
id: 'gpt-5.4-mini',
+ isOfficial: true,
knowledgeCutoff: '2025-08',
maxOutput: 128_000,
pricing: {
@@ -737,6 +756,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.4',
id: 'gpt-5.4-nano',
+ isOfficial: true,
knowledgeCutoff: '2025-08',
maxOutput: 128_000,
pricing: {
@@ -824,6 +844,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.2',
id: 'gpt-5.2',
+ isOfficial: true,
knowledgeCutoff: '2025-08',
maxOutput: 128_000,
pricing: {
@@ -907,6 +928,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5.1',
id: 'gpt-5.1',
+ isOfficial: true,
knowledgeCutoff: '2024-09',
maxOutput: 128_000,
pricing: {
@@ -967,6 +989,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5',
id: 'gpt-5',
+ isOfficial: true,
knowledgeCutoff: '2024-09',
maxOutput: 128_000,
pricing: {
@@ -998,6 +1021,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5',
id: 'gpt-5-mini',
+ isOfficial: true,
knowledgeCutoff: '2024-05',
maxOutput: 128_000,
pricing: {
@@ -1027,6 +1051,7 @@ export const openaiChatModels: AIChatModelCard[] = [
family: 'gpt',
generation: 'gpt-5',
id: 'gpt-5-nano',
+ isOfficial: true,
knowledgeCutoff: '2024-05',
maxOutput: 128_000,
pricing: {
@@ -1042,553 +1067,7 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o4-mini is the latest small o-series model, optimized for fast, effective reasoning with high efficiency in coding and vision tasks.',
- displayName: 'o4-mini',
- family: 'o-series',
- generation: 'o4',
- id: 'o4-mini',
- knowledgeCutoff: '2024-06',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-04-17',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o3-pro uses more compute to think deeper and consistently deliver better answers; available only via the Responses API.',
- displayName: 'o3-pro',
- family: 'o-series',
- generation: 'o3',
- id: 'o3-pro',
- knowledgeCutoff: '2024-06',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-06-10',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o3 is a powerful all-round model that sets a new bar for math, science, programming, and visual reasoning. It excels at technical writing and instruction following and can analyze text, code, and images for multi-step problems.',
- displayName: 'o3',
- family: 'o-series',
- generation: 'o3',
- id: 'o3',
- knowledgeCutoff: '2024-06',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-04-16',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o3-mini is our latest small reasoning model, delivering higher intelligence at the same cost and latency targets as o1-mini.',
- displayName: 'o3-mini',
- family: 'o-series',
- generation: 'o3',
- id: 'o3-mini',
- knowledgeCutoff: '2023-10',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-01-31',
- settings: {
- extendParams: ['reasoningEffort'],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'The o1 series is trained with reinforcement learning to think before answering and handle complex reasoning. o1-pro uses more compute for deeper thinking and consistently higher-quality answers.',
- displayName: 'o1-pro',
- family: 'o-series',
- generation: 'o1',
- id: 'o1-pro',
- knowledgeCutoff: '2023-10',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 150, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 600, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-03-19',
- settings: {
- extendParams: ['reasoningEffort'],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o1 is OpenAI’s new reasoning model with text+image input and text output, suited for complex tasks requiring broad knowledge. It has a 200K context window and an October 2023 knowledge cutoff.',
- displayName: 'o1',
- family: 'o-series',
- generation: 'o1',
- id: 'o1',
- knowledgeCutoff: '2023-10',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-12-17',
- settings: {
- extendParams: ['reasoningEffort'],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 1_047_576,
- description:
- 'GPT-4.1 is our flagship model for complex tasks and cross-domain problem solving.',
- displayName: 'GPT-4.1',
- family: 'gpt',
- generation: 'gpt-4.1',
- id: 'gpt-4.1',
- knowledgeCutoff: '2024-06',
- maxOutput: 32_768,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-04-14',
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 1_047_576,
- description:
- 'GPT-4.1 mini balances intelligence, speed, and cost, making it attractive for many use cases.',
- displayName: 'GPT-4.1 mini',
- family: 'gpt',
- generation: 'gpt-4.1',
- id: 'gpt-4.1-mini',
- knowledgeCutoff: '2024-06',
- maxOutput: 32_768,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-04-14',
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 1_047_576,
- description: 'GPT-4.1 nano is the fastest and most cost-effective GPT-4.1 model.',
- displayName: 'GPT-4.1 nano',
- family: 'gpt',
- generation: 'gpt-4.1',
- id: 'gpt-4.1-nano',
- knowledgeCutoff: '2024-06',
- maxOutput: 32_768,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-04-14',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'GPT-4o mini is OpenAI’s latest model after GPT-4 Omni, supporting text+image input with text output. It is their most advanced small model, far cheaper than recent frontier models and over 60% cheaper than GPT-3.5 Turbo, while maintaining top-tier intelligence (82% MMLU).',
- displayName: 'GPT-4o mini',
- family: 'gpt',
- generation: 'gpt-4o',
- id: 'gpt-4o-mini',
- knowledgeCutoff: '2023-10',
- maxOutput: 16_384,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-07-18',
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'ChatGPT-4o is a dynamic model updated in real time, combining strong understanding and generation for large-scale use cases like customer support, education, and technical support.',
- displayName: 'GPT-4o',
- family: 'gpt',
- generation: 'gpt-4o',
- id: 'gpt-4o',
- knowledgeCutoff: '2023-10',
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-05-13',
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'ChatGPT-4o is a dynamic model updated in real time, combining strong understanding and generation for large-scale use cases like customer support, education, and technical support.',
- displayName: 'GPT-4o 1120',
- family: 'gpt',
- generation: 'gpt-4o',
- id: 'gpt-4o-2024-11-20',
- knowledgeCutoff: '2023-10',
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-11-20',
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'ChatGPT-4o is a dynamic model updated in real time, combining strong understanding and generation for large-scale use cases like customer support, education, and technical support.',
- displayName: 'GPT-4o 0513',
- family: 'gpt',
- generation: 'gpt-4o',
- id: 'gpt-4o-2024-05-13',
- knowledgeCutoff: '2023-10',
- pricing: {
- units: [
- { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-05-13',
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- audio: true,
- functionCall: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'GPT Audio is a general chat model for audio input/output, supported in the Chat Completions API.',
- displayName: 'GPT Audio',
- family: 'gpt',
- generation: 'gpt-audio',
- id: 'gpt-audio',
- knowledgeCutoff: '2023-10',
- maxOutput: 16_384,
- pricing: {
- units: [
- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
-
- { name: 'audioInput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'audioOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-08-28',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',
- displayName: 'GPT-4 Turbo',
- family: 'gpt',
- generation: 'gpt-4',
- id: 'gpt-4-turbo',
- knowledgeCutoff: '2023-12',
- pricing: {
- units: [
- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',
- displayName: 'GPT-4 Turbo Vision 0409',
- family: 'gpt',
- generation: 'gpt-4',
- id: 'gpt-4-turbo-2024-04-09',
- knowledgeCutoff: '2023-12',
- pricing: {
- units: [
- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-04-09',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 8192,
- description:
- 'GPT-4 provides a larger context window to handle longer inputs, suitable for broad information synthesis and data analysis.',
- displayName: 'GPT-4',
- family: 'gpt',
- generation: 'gpt-4',
- id: 'gpt-4',
- knowledgeCutoff: '2021-09',
- pricing: {
- units: [
- { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 8192,
- description:
- 'GPT-4 provides a larger context window to handle longer inputs, suitable for broad information synthesis and data analysis.',
- displayName: 'GPT-4 0613',
- family: 'gpt',
- generation: 'gpt-4',
- id: 'gpt-4-0613',
- knowledgeCutoff: '2021-09',
- pricing: {
- units: [
- { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2023-06-13',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 16_384,
- description:
- 'GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.',
- displayName: 'GPT-3.5 Turbo',
- family: 'gpt',
- generation: 'gpt-3.5',
- id: 'gpt-3.5-turbo',
- knowledgeCutoff: '2021-09',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 16_384,
- description:
- 'GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.',
- displayName: 'GPT-3.5 Turbo 0125',
- family: 'gpt',
- generation: 'gpt-3.5',
- id: 'gpt-3.5-turbo-0125',
- knowledgeCutoff: '2021-09',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-01-25',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 16_384,
- description:
- 'GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.',
- displayName: 'GPT-3.5 Turbo 1106',
- family: 'gpt',
- generation: 'gpt-3.5',
- id: 'gpt-3.5-turbo-1106',
- knowledgeCutoff: '2021-09',
- pricing: {
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2023-11-06',
- type: 'chat',
- },
- {
- contextWindowTokens: 4096,
- description:
- 'GPT 3.5 Turbo for text generation and understanding tasks, optimized for instruction following.',
- displayName: 'GPT-3.5 Turbo Instruct',
- family: 'gpt',
- generation: 'gpt-3.5',
- id: 'gpt-3.5-turbo-instruct',
- knowledgeCutoff: '2021-09',
- pricing: {
- units: [
- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
+ ...openaiLegacyChatModels,
];
export const allModels = [
diff --git a/packages/model-bank/src/aiModels/openai/legacyChat.ts b/packages/model-bank/src/aiModels/openai/legacyChat.ts
new file mode 100644
index 00000000000..e898d4569a9
--- /dev/null
+++ b/packages/model-bank/src/aiModels/openai/legacyChat.ts
@@ -0,0 +1,560 @@
+import type { AIChatModelCard } from '../../types/aiModel';
+
+/** Chat models released before GPT-5: the o-series, GPT-4.x, gpt-audio and GPT-3.5. */
+export const openaiLegacyChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o4-mini is the latest small o-series model, optimized for fast, effective reasoning with high efficiency in coding and vision tasks.',
+ displayName: 'o4-mini',
+ family: 'o-series',
+ generation: 'o4',
+ id: 'o4-mini',
+ isOfficial: true,
+ knowledgeCutoff: '2024-06',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-17',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o3-pro uses more compute to think deeper and consistently deliver better answers; available only via the Responses API.',
+ displayName: 'o3-pro',
+ family: 'o-series',
+ generation: 'o3',
+ id: 'o3-pro',
+ knowledgeCutoff: '2024-06',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-06-10',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o3 is a powerful all-round model that sets a new bar for math, science, programming, and visual reasoning. It excels at technical writing and instruction following and can analyze text, code, and images for multi-step problems.',
+ displayName: 'o3',
+ family: 'o-series',
+ generation: 'o3',
+ id: 'o3',
+ isOfficial: true,
+ knowledgeCutoff: '2024-06',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-16',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o3-mini is our latest small reasoning model, delivering higher intelligence at the same cost and latency targets as o1-mini.',
+ displayName: 'o3-mini',
+ family: 'o-series',
+ generation: 'o3',
+ id: 'o3-mini',
+ knowledgeCutoff: '2023-10',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-01-31',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'The o1 series is trained with reinforcement learning to think before answering and handle complex reasoning. o1-pro uses more compute for deeper thinking and consistently higher-quality answers.',
+ displayName: 'o1-pro',
+ family: 'o-series',
+ generation: 'o1',
+ id: 'o1-pro',
+ knowledgeCutoff: '2023-10',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 150, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 600, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-03-19',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 200_000,
+ description:
+ 'o1 is OpenAI’s new reasoning model with text+image input and text output, suited for complex tasks requiring broad knowledge. It has a 200K context window and an October 2023 knowledge cutoff.',
+ displayName: 'o1',
+ family: 'o-series',
+ generation: 'o1',
+ id: 'o1',
+ knowledgeCutoff: '2023-10',
+ maxOutput: 100_000,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-12-17',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_047_576,
+ description:
+ 'GPT-4.1 is our flagship model for complex tasks and cross-domain problem solving.',
+ displayName: 'GPT-4.1',
+ family: 'gpt',
+ generation: 'gpt-4.1',
+ id: 'gpt-4.1',
+ isOfficial: true,
+ knowledgeCutoff: '2024-06',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-14',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_047_576,
+ description:
+ 'GPT-4.1 mini balances intelligence, speed, and cost, making it attractive for many use cases.',
+ displayName: 'GPT-4.1 mini',
+ family: 'gpt',
+ generation: 'gpt-4.1',
+ id: 'gpt-4.1-mini',
+ isOfficial: true,
+ knowledgeCutoff: '2024-06',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-14',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_047_576,
+ description: 'GPT-4.1 nano is the fastest and most cost-effective GPT-4.1 model.',
+ displayName: 'GPT-4.1 nano',
+ family: 'gpt',
+ generation: 'gpt-4.1',
+ id: 'gpt-4.1-nano',
+ isOfficial: true,
+ knowledgeCutoff: '2024-06',
+ maxOutput: 32_768,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-04-14',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'GPT-4o mini is OpenAI’s latest model after GPT-4 Omni, supporting text+image input with text output. It is their most advanced small model, far cheaper than recent frontier models and over 60% cheaper than GPT-3.5 Turbo, while maintaining top-tier intelligence (82% MMLU).',
+ displayName: 'GPT-4o mini',
+ family: 'gpt',
+ generation: 'gpt-4o',
+ id: 'gpt-4o-mini',
+ isOfficial: true,
+ knowledgeCutoff: '2023-10',
+ maxOutput: 16_384,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-07-18',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'ChatGPT-4o is a dynamic model updated in real time, combining strong understanding and generation for large-scale use cases like customer support, education, and technical support.',
+ displayName: 'GPT-4o',
+ family: 'gpt',
+ generation: 'gpt-4o',
+ id: 'gpt-4o',
+ isOfficial: true,
+ knowledgeCutoff: '2023-10',
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-05-13',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'ChatGPT-4o is a dynamic model updated in real time, combining strong understanding and generation for large-scale use cases like customer support, education, and technical support.',
+ displayName: 'GPT-4o 1120',
+ family: 'gpt',
+ generation: 'gpt-4o',
+ id: 'gpt-4o-2024-11-20',
+ knowledgeCutoff: '2023-10',
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-11-20',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'ChatGPT-4o is a dynamic model updated in real time, combining strong understanding and generation for large-scale use cases like customer support, education, and technical support.',
+ displayName: 'GPT-4o 0513',
+ family: 'gpt',
+ generation: 'gpt-4o',
+ id: 'gpt-4o-2024-05-13',
+ knowledgeCutoff: '2023-10',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-05-13',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ audio: true,
+ functionCall: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'GPT Audio is a general chat model for audio input/output, supported in the Chat Completions API.',
+ displayName: 'GPT Audio',
+ family: 'gpt',
+ generation: 'gpt-audio',
+ id: 'gpt-audio',
+ knowledgeCutoff: '2023-10',
+ maxOutput: 16_384,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+
+ { name: 'audioInput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'audioOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-28',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',
+ displayName: 'GPT-4 Turbo',
+ family: 'gpt',
+ generation: 'gpt-4',
+ id: 'gpt-4-turbo',
+ isOfficial: true,
+ knowledgeCutoff: '2023-12',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ vision: true,
+ },
+ contextWindowTokens: 128_000,
+ description:
+ 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',
+ displayName: 'GPT-4 Turbo Vision 0409',
+ family: 'gpt',
+ generation: 'gpt-4',
+ id: 'gpt-4-turbo-2024-04-09',
+ knowledgeCutoff: '2023-12',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-04-09',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 8192,
+ description:
+ 'GPT-4 provides a larger context window to handle longer inputs, suitable for broad information synthesis and data analysis.',
+ displayName: 'GPT-4',
+ family: 'gpt',
+ generation: 'gpt-4',
+ id: 'gpt-4',
+ knowledgeCutoff: '2021-09',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 8192,
+ description:
+ 'GPT-4 provides a larger context window to handle longer inputs, suitable for broad information synthesis and data analysis.',
+ displayName: 'GPT-4 0613',
+ family: 'gpt',
+ generation: 'gpt-4',
+ id: 'gpt-4-0613',
+ knowledgeCutoff: '2021-09',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2023-06-13',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 16_384,
+ description:
+ 'GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.',
+ displayName: 'GPT-3.5 Turbo',
+ family: 'gpt',
+ generation: 'gpt-3.5',
+ id: 'gpt-3.5-turbo',
+ knowledgeCutoff: '2021-09',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 16_384,
+ description:
+ 'GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.',
+ displayName: 'GPT-3.5 Turbo 0125',
+ family: 'gpt',
+ generation: 'gpt-3.5',
+ id: 'gpt-3.5-turbo-0125',
+ knowledgeCutoff: '2021-09',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-01-25',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 16_384,
+ description:
+ 'GPT 3.5 Turbo for text generation and understanding; currently points to gpt-3.5-turbo-0125.',
+ displayName: 'GPT-3.5 Turbo 1106',
+ family: 'gpt',
+ generation: 'gpt-3.5',
+ id: 'gpt-3.5-turbo-1106',
+ knowledgeCutoff: '2021-09',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2023-11-06',
+ type: 'chat',
+ },
+ {
+ contextWindowTokens: 4096,
+ description:
+ 'GPT 3.5 Turbo for text generation and understanding tasks, optimized for instruction following.',
+ displayName: 'GPT-3.5 Turbo Instruct',
+ family: 'gpt',
+ generation: 'gpt-3.5',
+ id: 'gpt-3.5-turbo-instruct',
+ knowledgeCutoff: '2021-09',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'chat',
+ },
+];
diff --git a/packages/model-bank/src/aiModels/openai/nonChat.ts b/packages/model-bank/src/aiModels/openai/nonChat.ts
index 594e4f60d8e..08454f696d3 100644
--- a/packages/model-bank/src/aiModels/openai/nonChat.ts
+++ b/packages/model-bank/src/aiModels/openai/nonChat.ts
@@ -36,6 +36,7 @@ export const openaiEmbeddingModels: AIEmbeddingModelCard[] = [
'An efficient, cost-effective next-generation embedding model for retrieval and RAG scenarios.',
displayName: 'Text Embedding 3 Small',
id: 'text-embedding-3-small',
+ isOfficial: true,
maxDimension: 1536,
pricing: {
currency: 'USD',
@@ -118,6 +119,7 @@ export const openaiASRModels: AIASRModelCard[] = [
'GPT-4o Transcribe is a speech-to-text model that transcribes audio with GPT-4o, improving word error rate, language ID, and accuracy over the original Whisper model.',
displayName: 'GPT-4o Transcribe',
id: 'gpt-4o-transcribe',
+ isOfficial: true,
maxOutput: 2000,
pricing: {
units: [
@@ -135,6 +137,7 @@ export const openaiASRModels: AIASRModelCard[] = [
displayName: 'GPT-4o Mini Transcribe',
enabled: true,
id: 'gpt-4o-mini-transcribe',
+ isOfficial: true,
maxOutput: 2000,
pricing: {
units: [
@@ -155,6 +158,7 @@ export const openaiImageModels: AIImageModelCard[] = [
displayName: 'GPT Image 2.5 Sunburst',
enabled: true,
id: 'gpt-image-2.5-sunburst',
+ isOfficial: true,
parameters: gptImage2Schema,
pricing: {
// Token rates match GPT Image 2; OpenAI publishes no per-image estimate for GPT Image 2.5,
@@ -177,6 +181,7 @@ export const openaiImageModels: AIImageModelCard[] = [
displayName: 'GPT Image 2.5 Flare',
enabled: true,
id: 'gpt-image-2.5-flare',
+ isOfficial: true,
parameters: gptImage2Schema,
pricing: {
// Token rates match GPT Image 2; OpenAI publishes no per-image estimate for GPT Image 2.5,
@@ -199,6 +204,7 @@ export const openaiImageModels: AIImageModelCard[] = [
displayName: 'GPT Image 2',
enabled: true,
id: 'gpt-image-2',
+ isOfficial: true,
parameters: gptImage2Schema,
pricing: {
// Medium quality at 1024x1024: ~1767 output tokens * $30/M = $0.053 per image.
@@ -220,6 +226,7 @@ export const openaiImageModels: AIImageModelCard[] = [
'An enhanced GPT Image 1 model with 4× faster generation, more precise editing, and improved text rendering.',
displayName: 'GPT Image 1.5',
id: 'gpt-image-1.5',
+ isOfficial: true,
parameters: gptImage1Schema,
pricing: {
approximatePricePerImage: 0.034,
@@ -239,6 +246,7 @@ export const openaiImageModels: AIImageModelCard[] = [
description: 'ChatGPT native multimodal image generation model.',
displayName: 'GPT Image 1',
id: 'gpt-image-1',
+ isOfficial: true,
parameters: gptImage1Schema,
pricing: {
approximatePricePerImage: 0.042,
diff --git a/packages/model-bank/src/aiModels/qwen/image.ts b/packages/model-bank/src/aiModels/qwen/image.ts
new file mode 100644
index 00000000000..bbbea8f0b43
--- /dev/null
+++ b/packages/model-bank/src/aiModels/qwen/image.ts
@@ -0,0 +1,605 @@
+import type { AIImageModelCard } from '../../types/aiModel';
+
+export const qwenImageModels: AIImageModelCard[] = [
+ {
+ description:
+ 'Z-Image is a lightweight text-to-image generation model that can rapidly produce images, supports both Chinese and English text rendering, and flexibly adapts to multiple resolutions and aspect ratios.',
+ displayName: 'Z-Image Turbo',
+ enabled: true,
+ id: 'z-image-turbo',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1536, max: 4096, min: 256, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 4096, min: 256, step: 1 },
+ promptExtend: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.015, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-12-19',
+ type: 'image',
+ },
+ {
+ description:
+ 'The Qwen-Image-2.0 series full-version model integrates image generation and image editing into a unified capability. It supports more professional text rendering with up to 1k token instruction capacity, delivers more delicate and realistic visual textures, enables fine-grained depiction of realistic scenes, and demonstrates stronger semantic alignment with prompts. The full-version model provides the strongest text rendering capability and the highest level of realism within the 2.0 series.',
+ displayName: 'Qwen Image 2.0 Pro 2026-04-22',
+ id: 'qwen-image-2.0-pro-2026-04-22',
+ enabled: true,
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 4096, min: 256, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 4096, min: 256, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-04-22',
+ type: 'image',
+ },
+ {
+ description:
+ 'The Qwen-Image-2.0 series full-version model integrates image generation and image editing into a unified capability. It supports more professional text rendering with up to 1k token instruction capacity, delivers more delicate and realistic visual textures, enables fine-grained depiction of realistic scenes, and demonstrates stronger semantic alignment with prompts. The full-version model provides the strongest text rendering capability and the highest level of realism within the 2.0 series.',
+ displayName: 'Qwen Image 2.0 Pro',
+ id: 'qwen-image-2.0-pro',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 4096, min: 256, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 4096, min: 256, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-03-03',
+ type: 'image',
+ },
+ {
+ description:
+ 'The Qwen-Image-2.0 series accelerated version model integrates image generation and image editing into a unified capability. It supports more professional text rendering with up to 1k token instruction capacity, provides more refined and realistic visual textures, enables fine-grained depiction of realistic scenes, and demonstrates stronger semantic adherence to prompts. The accelerated version effectively achieves the optimal balance between model quality and performance.',
+ displayName: 'Qwen Image 2.0',
+ id: 'qwen-image-2.0',
+ enabled: true,
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 4096, min: 256, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 4096, min: 256, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.035, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-03-03',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen Image Editing Model supports multi-image input and multi-image output, enabling precise in-image text editing, object addition, removal, or relocation, subject action modification, image style transfer, and enhanced visual detail.',
+ displayName: 'Qwen Image Edit Max',
+ id: 'qwen-image-edit-max',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1536, max: 2048, min: 512, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 2048, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-01-17',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen Image Editing Model supports multi-image input and multi-image output, enabling precise in-image text editing, object addition, removal, or relocation, subject action modification, image style transfer, and enhanced visual detail.',
+ displayName: 'Qwen Image Edit Plus',
+ id: 'qwen-image-edit-plus',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1536, max: 2048, min: 512, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 2048, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-12-23',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen Image Edit is an image-to-image model that edits images based on input images and text prompts, enabling precise adjustments and creative transformations.',
+ displayName: 'Qwen Image Edit',
+ id: 'qwen-image-edit',
+ organization: 'Qwen',
+ parameters: {
+ imageUrl: {
+ default: '',
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.045, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-09-18',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen Image Generation Model (Max series) delivers enhanced realism and visual naturalness compared with the Plus series, effectively reducing AI-generated artifacts, and demonstrating outstanding performance in human appearance, texture details, and text rendering.',
+ displayName: 'Qwen Image Max',
+ id: 'qwen-image-max',
+ organization: 'Qwen',
+ parameters: {
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ size: {
+ default: '1664x928',
+ enum: ['1664x928', '1472x1140', '1328x1328', '1140x1472', '928x1664'],
+ },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-12-31',
+ type: 'image',
+ },
+ {
+ description:
+ 'It supports a wide range of artistic styles and is particularly proficient at rendering complex text within images, enabling integrated image–text layout design.',
+ displayName: 'Qwen Image Plus',
+ id: 'qwen-image-plus',
+ organization: 'Qwen',
+ parameters: {
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ size: {
+ default: '1664x928',
+ enum: ['1664x928', '1472x1140', '1328x1328', '1140x1472', '928x1664'],
+ },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-01-12',
+ type: 'image',
+ },
+ {
+ description:
+ 'Qwen-Image is a general image generation model supporting multiple art styles and strong complex text rendering, especially Chinese and English. It supports multi-line layouts, paragraph-level text, and fine detail for complex text-image layouts.',
+ displayName: 'Qwen Image',
+ id: 'qwen-image',
+ organization: 'Qwen',
+ parameters: {
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ size: {
+ default: '1328x1328',
+ enum: ['1664x928', '1472x1140', '1328x1328', '1140x1472', '928x1664'],
+ },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.035, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-08-13',
+ type: 'image',
+ },
+ {
+ description: 'Wanxiang 2.7 Image Professional Edition, supports 4K high-definition output.',
+ displayName: 'Wanxiang2.7 Image Pro',
+ enabled: true,
+ id: 'wan2.7-image-pro',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 2048, max: 11_585, min: 271, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 2048, max: 11_585, min: 271, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-04-01',
+ type: 'image',
+ },
+ {
+ description: 'Wanxiang 2.7 Image, faster image generation speed.',
+ displayName: 'Wanxiang2.7 Image',
+ enabled: true,
+ id: 'wan2.7-image',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 2048, max: 5792, min: 271, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 2048, max: 5792, min: 271, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-04-01',
+ type: 'image',
+ },
+ {
+ description: 'Wanxiang 2.6 Image supports image editing and mixed image–text layout output.',
+ displayName: 'Wanxiang2.6 Image',
+ enabled: true,
+ id: 'wan2.6-image',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1280, max: 2880, min: 640, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1280, max: 2880, min: 640, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-07-28',
+ type: 'image',
+ },
+ {
+ description:
+ 'Wanxiang 2.6 T2I supports flexible selection of image dimensions within total pixel area and aspect ratio constraints (same as Wanxiang 2.5).',
+ displayName: 'Wanxiang2.6 T2I',
+ enabled: true,
+ id: 'wan2.6-t2i',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1280, max: 2880, min: 640, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1280, max: 2880, min: 640, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-12-16',
+ type: 'image',
+ },
+ {
+ description: 'Wanxiang 2.5 I2I Preview supports single-image editing and multi-image fusion.',
+ displayName: 'Wanxiang2.5 I2I Preview',
+ id: 'wan2.5-i2i-preview',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1280, max: 2560, min: 384, step: 1 },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1280, max: 2560, min: 384, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-09-23',
+ type: 'image',
+ },
+ {
+ description:
+ 'Wanxiang 2.5 T2I supports flexible selection of image dimensions within total pixel area and aspect ratio constraints.',
+ displayName: 'Wanxiang2.5 T2I Preview',
+ id: 'wan2.5-t2i-preview',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1280, max: 2880, min: 640, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1280, max: 2880, min: 640, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-09-23',
+ type: 'image',
+ },
+ {
+ description:
+ 'Wanxiang 2.2 Flash is the latest model with upgrades in creativity, stability, and realism, delivering fast generation and high value.',
+ displayName: 'Wanxiang2.2 T2I Flash',
+ id: 'wan2.2-t2i-flash',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 1440, min: 512, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 1440, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-07-28',
+ type: 'image',
+ },
+ {
+ description:
+ 'Wanxiang 2.2 Plus is the latest model with upgrades in creativity, stability, and realism, producing richer details.',
+ displayName: 'Wanxiang2.2 T2I Plus',
+ id: 'wan2.2-t2i-plus',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 1440, min: 512, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 1440, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.05, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-07-28',
+ type: 'image',
+ },
+ {
+ description:
+ 'Fully upgraded version with fast generation, strong overall quality, and high value. Corresponds to Tongyi Wanxiang 2.1 Speed.',
+ displayName: 'Wanxiang2.1 T2I Turbo',
+ id: 'wanx2.1-t2i-turbo',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 1440, min: 512, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 1440, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-01-08',
+ type: 'image',
+ },
+ {
+ description:
+ 'Fully upgraded version with richer image details and slightly slower speed. Corresponds to Tongyi Wanxiang 2.1 Pro.',
+ displayName: 'Wanxiang2.1 T2I Plus',
+ id: 'wanx2.1-t2i-plus',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 1440, min: 512, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 1440, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.05, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-01-08',
+ type: 'image',
+ },
+ {
+ description:
+ 'Excels at textured portraits with moderate speed and lower cost. Corresponds to Tongyi Wanxiang 2.0 Speed.',
+ displayName: 'Wanxiang2.0 T2I Turbo',
+ id: 'wanx2.0-t2i-turbo',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 1440, min: 512, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 1440, min: 512, step: 1 },
+ promptExtend: { default: false },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-01-17',
+ type: 'image',
+ },
+ {
+ description: 'Base text-to-image model. Corresponds to Tongyi Wanxiang 1.0 General.',
+ displayName: 'Wanxiang v1',
+ id: 'wanx-v1',
+ organization: 'Qwen',
+ parameters: {
+ height: { default: 1024, max: 1440, min: 512, step: 1 },
+ prompt: {
+ default: '',
+ },
+ seed: { default: null },
+ width: { default: 1024, max: 1440, min: 512, step: 1 },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'imageGeneration', rate: 0.16, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2024-05-22',
+ type: 'image',
+ },
+ {
+ description:
+ 'Supports up to 10 reference images, allowing you to lock subjects, elements, and color tones to ensure consistent style. Combines style transfer, portrait/character referencing, multi-image fusion, and localized inpainting for flexible control. Delivers realistic portrait details, with overall visuals that are delicate and richly layered, featuring cinematic color and atmosphere.',
+ displayName: 'Kling V3 Image Generation',
+ enabled: true,
+ id: 'kling/kling-v3-image-generation',
+ organization: 'Qwen',
+ parameters: {
+ aspectRatio: {
+ default: '16:9',
+ enum: ['16:9', '9:16', '1:1'],
+ },
+ imageUrl: {
+ default: '',
+ },
+ prompt: {
+ default: '',
+ },
+ resolution: {
+ default: '1k',
+ enum: ['1k', '2k'],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'imageGeneration', rate: 0.2, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-03-26',
+ type: 'image',
+ },
+ {
+ description:
+ 'Unlock cinematic storytelling visuals with new series image generation and direct 2K/4K output. Deeply analyzes audiovisual elements in prompts to precisely execute creative instructions. Supports flexible multi-reference inputs and comprehensive quality upgrades, ideal for storyboards, narrative concept art, and scene design.',
+ displayName: 'Kling V3 Omni Image Generation',
+ enabled: true,
+ id: 'kling/kling-v3-omni-image-generation',
+ organization: 'Qwen',
+ parameters: {
+ aspectRatio: {
+ default: '16:9',
+ enum: ['16:9', '9:16', '1:1'],
+ },
+ imageUrls: {
+ default: [],
+ },
+ prompt: {
+ default: '',
+ },
+ resolution: {
+ default: '1k',
+ enum: ['1k', '2k', '4k'],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'imageGeneration', rate: 0.2, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-03-26',
+ type: 'image',
+ },
+];
diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen/index.ts
similarity index 89%
rename from packages/model-bank/src/aiModels/qwen.ts
rename to packages/model-bank/src/aiModels/qwen/index.ts
index 4cbaf370058..ef2e26ce8ff 100644
--- a/packages/model-bank/src/aiModels/qwen.ts
+++ b/packages/model-bank/src/aiModels/qwen/index.ts
@@ -1,8 +1,5 @@
-import {
- type AIChatModelCard,
- type AIImageModelCard,
- type AIVideoModelCard,
-} from '../types/aiModel';
+import { type AIChatModelCard, type AIVideoModelCard } from '../../types/aiModel';
+import { qwenImageModels } from './image';
// https://help.aliyun.com/zh/model-studio/models?spm=a2c4g.11186623
@@ -82,6 +79,7 @@ const qwenChatModels: AIChatModelCard[] = [
family: 'qwen',
generation: 'qwen3.8',
id: 'qwen3.8-max-0902',
+ isOfficial: true,
maxOutput: 131_072,
/** @see https://www.alibabacloud.com/help/en/model-studio/qwen3-8-max */
pricing: {
@@ -117,6 +115,7 @@ const qwenChatModels: AIChatModelCard[] = [
family: 'qwen',
generation: 'qwen3.8',
id: 'qwen3.8-max',
+ isOfficial: true,
maxOutput: 131_072,
/** @see https://www.alibabacloud.com/help/en/model-studio/qwen3-8-max */
pricing: {
@@ -1966,6 +1965,7 @@ const qwenChatModels: AIChatModelCard[] = [
family: 'qwen',
generation: 'qwen3.7',
id: 'qwen3.7-plus',
+ isOfficial: true,
maxOutput: 65_536,
organization: 'Qwen',
pricing: {
@@ -2318,6 +2318,7 @@ const qwenChatModels: AIChatModelCard[] = [
family: 'qwen',
generation: 'qwen3.7',
id: 'qwen3.7-max',
+ isOfficial: true,
maxOutput: 65_536,
organization: 'Qwen',
pricing: {
@@ -3672,610 +3673,6 @@ const qwenChatModels: AIChatModelCard[] = [
},
];
-const qwenImageModels: AIImageModelCard[] = [
- {
- description:
- 'Z-Image is a lightweight text-to-image generation model that can rapidly produce images, supports both Chinese and English text rendering, and flexibly adapts to multiple resolutions and aspect ratios.',
- displayName: 'Z-Image Turbo',
- enabled: true,
- id: 'z-image-turbo',
- organization: 'Qwen',
- parameters: {
- height: { default: 1536, max: 4096, min: 256, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 4096, min: 256, step: 1 },
- promptExtend: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.015, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-12-19',
- type: 'image',
- },
- {
- description:
- 'The Qwen-Image-2.0 series full-version model integrates image generation and image editing into a unified capability. It supports more professional text rendering with up to 1k token instruction capacity, delivers more delicate and realistic visual textures, enables fine-grained depiction of realistic scenes, and demonstrates stronger semantic alignment with prompts. The full-version model provides the strongest text rendering capability and the highest level of realism within the 2.0 series.',
- displayName: 'Qwen Image 2.0 Pro 2026-04-22',
- id: 'qwen-image-2.0-pro-2026-04-22',
- enabled: true,
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 4096, min: 256, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 4096, min: 256, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-04-22',
- type: 'image',
- },
- {
- description:
- 'The Qwen-Image-2.0 series full-version model integrates image generation and image editing into a unified capability. It supports more professional text rendering with up to 1k token instruction capacity, delivers more delicate and realistic visual textures, enables fine-grained depiction of realistic scenes, and demonstrates stronger semantic alignment with prompts. The full-version model provides the strongest text rendering capability and the highest level of realism within the 2.0 series.',
- displayName: 'Qwen Image 2.0 Pro',
- id: 'qwen-image-2.0-pro',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 4096, min: 256, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 4096, min: 256, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-03-03',
- type: 'image',
- },
- {
- description:
- 'The Qwen-Image-2.0 series accelerated version model integrates image generation and image editing into a unified capability. It supports more professional text rendering with up to 1k token instruction capacity, provides more refined and realistic visual textures, enables fine-grained depiction of realistic scenes, and demonstrates stronger semantic adherence to prompts. The accelerated version effectively achieves the optimal balance between model quality and performance.',
- displayName: 'Qwen Image 2.0',
- id: 'qwen-image-2.0',
- enabled: true,
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 4096, min: 256, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 4096, min: 256, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.035, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-03-03',
- type: 'image',
- },
- {
- description:
- 'Qwen Image Editing Model supports multi-image input and multi-image output, enabling precise in-image text editing, object addition, removal, or relocation, subject action modification, image style transfer, and enhanced visual detail.',
- displayName: 'Qwen Image Edit Max',
- id: 'qwen-image-edit-max',
- organization: 'Qwen',
- parameters: {
- height: { default: 1536, max: 2048, min: 512, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 2048, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-01-17',
- type: 'image',
- },
- {
- description:
- 'Qwen Image Editing Model supports multi-image input and multi-image output, enabling precise in-image text editing, object addition, removal, or relocation, subject action modification, image style transfer, and enhanced visual detail.',
- displayName: 'Qwen Image Edit Plus',
- id: 'qwen-image-edit-plus',
- organization: 'Qwen',
- parameters: {
- height: { default: 1536, max: 2048, min: 512, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 2048, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-12-23',
- type: 'image',
- },
- {
- description:
- 'Qwen Image Edit is an image-to-image model that edits images based on input images and text prompts, enabling precise adjustments and creative transformations.',
- displayName: 'Qwen Image Edit',
- id: 'qwen-image-edit',
- organization: 'Qwen',
- parameters: {
- imageUrl: {
- default: '',
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.045, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-09-18',
- type: 'image',
- },
- {
- description:
- 'Qwen Image Generation Model (Max series) delivers enhanced realism and visual naturalness compared with the Plus series, effectively reducing AI-generated artifacts, and demonstrating outstanding performance in human appearance, texture details, and text rendering.',
- displayName: 'Qwen Image Max',
- id: 'qwen-image-max',
- organization: 'Qwen',
- parameters: {
- prompt: {
- default: '',
- },
- seed: { default: null },
- size: {
- default: '1664x928',
- enum: ['1664x928', '1472x1140', '1328x1328', '1140x1472', '928x1664'],
- },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-12-31',
- type: 'image',
- },
- {
- description:
- 'It supports a wide range of artistic styles and is particularly proficient at rendering complex text within images, enabling integrated image–text layout design.',
- displayName: 'Qwen Image Plus',
- id: 'qwen-image-plus',
- organization: 'Qwen',
- parameters: {
- prompt: {
- default: '',
- },
- seed: { default: null },
- size: {
- default: '1664x928',
- enum: ['1664x928', '1472x1140', '1328x1328', '1140x1472', '928x1664'],
- },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-01-12',
- type: 'image',
- },
- {
- description:
- 'Qwen-Image is a general image generation model supporting multiple art styles and strong complex text rendering, especially Chinese and English. It supports multi-line layouts, paragraph-level text, and fine detail for complex text-image layouts.',
- displayName: 'Qwen Image',
- id: 'qwen-image',
- organization: 'Qwen',
- parameters: {
- prompt: {
- default: '',
- },
- seed: { default: null },
- size: {
- default: '1328x1328',
- enum: ['1664x928', '1472x1140', '1328x1328', '1140x1472', '928x1664'],
- },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.035, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-08-13',
- type: 'image',
- },
- {
- description: 'Wanxiang 2.7 Image Professional Edition, supports 4K high-definition output.',
- displayName: 'Wanxiang2.7 Image Pro',
- enabled: true,
- id: 'wan2.7-image-pro',
- organization: 'Qwen',
- parameters: {
- height: { default: 2048, max: 11_585, min: 271, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 2048, max: 11_585, min: 271, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.075, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-04-01',
- type: 'image',
- },
- {
- description: 'Wanxiang 2.7 Image, faster image generation speed.',
- displayName: 'Wanxiang2.7 Image',
- enabled: true,
- id: 'wan2.7-image',
- organization: 'Qwen',
- parameters: {
- height: { default: 2048, max: 5792, min: 271, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 2048, max: 5792, min: 271, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-04-01',
- type: 'image',
- },
- {
- description: 'Wanxiang 2.6 Image supports image editing and mixed image–text layout output.',
- displayName: 'Wanxiang2.6 Image',
- enabled: true,
- id: 'wan2.6-image',
- organization: 'Qwen',
- parameters: {
- height: { default: 1280, max: 2880, min: 640, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1280, max: 2880, min: 640, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-07-28',
- type: 'image',
- },
- {
- description:
- 'Wanxiang 2.6 T2I supports flexible selection of image dimensions within total pixel area and aspect ratio constraints (same as Wanxiang 2.5).',
- displayName: 'Wanxiang2.6 T2I',
- enabled: true,
- id: 'wan2.6-t2i',
- organization: 'Qwen',
- parameters: {
- height: { default: 1280, max: 2880, min: 640, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1280, max: 2880, min: 640, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-12-16',
- type: 'image',
- },
- {
- description: 'Wanxiang 2.5 I2I Preview supports single-image editing and multi-image fusion.',
- displayName: 'Wanxiang2.5 I2I Preview',
- id: 'wan2.5-i2i-preview',
- organization: 'Qwen',
- parameters: {
- height: { default: 1280, max: 2560, min: 384, step: 1 },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1280, max: 2560, min: 384, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-09-23',
- type: 'image',
- },
- {
- description:
- 'Wanxiang 2.5 T2I supports flexible selection of image dimensions within total pixel area and aspect ratio constraints.',
- displayName: 'Wanxiang2.5 T2I Preview',
- id: 'wan2.5-t2i-preview',
- organization: 'Qwen',
- parameters: {
- height: { default: 1280, max: 2880, min: 640, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1280, max: 2880, min: 640, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.03, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-09-23',
- type: 'image',
- },
- {
- description:
- 'Wanxiang 2.2 Flash is the latest model with upgrades in creativity, stability, and realism, delivering fast generation and high value.',
- displayName: 'Wanxiang2.2 T2I Flash',
- id: 'wan2.2-t2i-flash',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 1440, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 1440, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-07-28',
- type: 'image',
- },
- {
- description:
- 'Wanxiang 2.2 Plus is the latest model with upgrades in creativity, stability, and realism, producing richer details.',
- displayName: 'Wanxiang2.2 T2I Plus',
- id: 'wan2.2-t2i-plus',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 1440, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 1440, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.05, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-07-28',
- type: 'image',
- },
- {
- description:
- 'Fully upgraded version with fast generation, strong overall quality, and high value. Corresponds to Tongyi Wanxiang 2.1 Speed.',
- displayName: 'Wanxiang2.1 T2I Turbo',
- id: 'wanx2.1-t2i-turbo',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 1440, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 1440, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-01-08',
- type: 'image',
- },
- {
- description:
- 'Fully upgraded version with richer image details and slightly slower speed. Corresponds to Tongyi Wanxiang 2.1 Pro.',
- displayName: 'Wanxiang2.1 T2I Plus',
- id: 'wanx2.1-t2i-plus',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 1440, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 1440, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.05, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-01-08',
- type: 'image',
- },
- {
- description:
- 'Excels at textured portraits with moderate speed and lower cost. Corresponds to Tongyi Wanxiang 2.0 Speed.',
- displayName: 'Wanxiang2.0 T2I Turbo',
- id: 'wanx2.0-t2i-turbo',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 1440, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 1440, min: 512, step: 1 },
- promptExtend: { default: false },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-01-17',
- type: 'image',
- },
- {
- description: 'Base text-to-image model. Corresponds to Tongyi Wanxiang 1.0 General.',
- displayName: 'Wanxiang v1',
- id: 'wanx-v1',
- organization: 'Qwen',
- parameters: {
- height: { default: 1024, max: 1440, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- width: { default: 1024, max: 1440, min: 512, step: 1 },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0.16, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2024-05-22',
- type: 'image',
- },
- {
- description:
- 'Supports up to 10 reference images, allowing you to lock subjects, elements, and color tones to ensure consistent style. Combines style transfer, portrait/character referencing, multi-image fusion, and localized inpainting for flexible control. Delivers realistic portrait details, with overall visuals that are delicate and richly layered, featuring cinematic color and atmosphere.',
- displayName: 'Kling V3 Image Generation',
- enabled: true,
- id: 'kling/kling-v3-image-generation',
- organization: 'Qwen',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16', '1:1'],
- },
- imageUrl: {
- default: '',
- },
- prompt: {
- default: '',
- },
- resolution: {
- default: '1k',
- enum: ['1k', '2k'],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0.2, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-03-26',
- type: 'image',
- },
- {
- description:
- 'Unlock cinematic storytelling visuals with new series image generation and direct 2K/4K output. Deeply analyzes audiovisual elements in prompts to precisely execute creative instructions. Supports flexible multi-reference inputs and comprehensive quality upgrades, ideal for storyboards, narrative concept art, and scene design.',
- displayName: 'Kling V3 Omni Image Generation',
- enabled: true,
- id: 'kling/kling-v3-omni-image-generation',
- organization: 'Qwen',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16', '1:1'],
- },
- imageUrls: {
- default: [],
- },
- prompt: {
- default: '',
- },
- resolution: {
- default: '1k',
- enum: ['1k', '2k', '4k'],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0.2, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-03-26',
- type: 'image',
- },
-];
-
const qwenVideoModels: AIVideoModelCard[] = [
{
description:
diff --git a/packages/model-bank/src/aiModels/xai.test.ts b/packages/model-bank/src/aiModels/xai.test.ts
new file mode 100644
index 00000000000..5f3a795f543
--- /dev/null
+++ b/packages/model-bank/src/aiModels/xai.test.ts
@@ -0,0 +1,40 @@
+import { describe, expect, it } from 'vitest';
+
+import { allModels } from './xai';
+
+describe('xai model cards', () => {
+ /** @see https://docs.x.ai/developers/pricing */
+ it('bills grok-4.5 prompts of 200K+ tokens at double rates', () => {
+ const card = allModels.find((model) => model.id === 'grok-4.5');
+
+ expect(card?.pricing?.units).toEqual([
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.3, upTo: 199_999 },
+ { rate: 0.6, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2, upTo: 199_999 },
+ { rate: 4, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 6, upTo: 199_999 },
+ { rate: 12, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ]);
+ });
+});
diff --git a/packages/model-bank/src/aiModels/xai.ts b/packages/model-bank/src/aiModels/xai.ts
index e33e9cddc4f..a716eefc698 100644
--- a/packages/model-bank/src/aiModels/xai.ts
+++ b/packages/model-bank/src/aiModels/xai.ts
@@ -16,6 +16,7 @@ const xaiChatModels: AIChatModelCard[] = [
displayName: 'Grok 4.7',
enabled: true,
id: 'grok-4.7',
+ isOfficial: true,
/** @see https://docs.x.ai/developers/models/grok-4.7 */
pricing: {
units: [
@@ -72,6 +73,7 @@ const xaiChatModels: AIChatModelCard[] = [
displayName: 'Grok 4.6',
enabled: true,
id: 'grok-4.6',
+ isOfficial: true,
/** @see https://docs.x.ai/developers/models/grok-4.6 */
pricing: {
units: [
@@ -130,11 +132,36 @@ const xaiChatModels: AIChatModelCard[] = [
family: 'grok',
generation: 'grok-4.5',
id: 'grok-4.5',
+ isOfficial: true,
pricing: {
units: [
- { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.3, upTo: 199_999 },
+ { rate: 0.6, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 2, upTo: 199_999 },
+ { rate: 4, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 6, upTo: 199_999 },
+ { rate: 12, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
],
},
releasedAt: '2026-07-08',
@@ -158,6 +185,7 @@ const xaiChatModels: AIChatModelCard[] = [
family: 'grok',
generation: 'grok-4.3',
id: 'grok-4.3',
+ isOfficial: true,
knowledgeCutoff: '2025-12',
pricing: {
units: [
@@ -362,6 +390,7 @@ const xaiImageModels: AIImageModelCard[] = [
displayName: 'Grok Imagine Image 2.0',
enabled: true,
id: 'grok-imagine-image-2.0',
+ isOfficial: true,
parameters: {
aspectRatio: {
default: 'auto',
diff --git a/packages/model-bank/src/aiModels/xiaomimimo.ts b/packages/model-bank/src/aiModels/xiaomimimo.ts
index 5227d2c63c7..17b65d2c8da 100644
--- a/packages/model-bank/src/aiModels/xiaomimimo.ts
+++ b/packages/model-bank/src/aiModels/xiaomimimo.ts
@@ -20,6 +20,7 @@ const xiaomimimoChatModels: AIChatModelCard[] = [
family: 'mimo',
generation: 'mimo-v2.6',
id: 'mimo-v2.6-pro',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -54,6 +55,7 @@ const xiaomimimoChatModels: AIChatModelCard[] = [
family: 'mimo',
generation: 'mimo-v2.6',
id: 'mimo-v2.6-pro-ultraspeed',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -88,6 +90,7 @@ const xiaomimimoChatModels: AIChatModelCard[] = [
family: 'mimo',
generation: 'mimo-v2.6',
id: 'mimo-v2.6-flash',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
diff --git a/packages/model-bank/src/aiModels/zhipu.ts b/packages/model-bank/src/aiModels/zhipu/index.ts
similarity index 70%
rename from packages/model-bank/src/aiModels/zhipu.ts
rename to packages/model-bank/src/aiModels/zhipu/index.ts
index 84a1204cb58..86a03150b51 100644
--- a/packages/model-bank/src/aiModels/zhipu.ts
+++ b/packages/model-bank/src/aiModels/zhipu/index.ts
@@ -1,8 +1,5 @@
-import {
- type AIChatModelCard,
- type AIImageModelCard,
- type AIVideoModelCard,
-} from '../types/aiModel';
+import { type AIChatModelCard } from '../../types/aiModel';
+import { zhipuImageModels, zhipuVideoModels } from './nonChat';
// USD price: https://docs.z.ai/guides/overview/pricing
// CNY price (cards z.ai does not sell): https://bigmodel.cn/pricing
@@ -24,6 +21,7 @@ const zhipuChatModels: AIChatModelCard[] = [
family: 'glm',
generation: 'glm-5.3',
id: 'glm-5.3',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -57,6 +55,7 @@ const zhipuChatModels: AIChatModelCard[] = [
family: 'glm',
generation: 'glm-5.3',
id: 'glm-5.3-flash',
+ isOfficial: true,
maxOutput: 131_072,
// List price; the 50% launch promo ends 2026-09-09, so it is intentionally not encoded here.
// https://docs.bigmodel.cn/cn/guide/models/vlm/glm-5.3-flash
@@ -89,6 +88,7 @@ const zhipuChatModels: AIChatModelCard[] = [
family: 'glm',
generation: 'glm-5.2',
id: 'glm-5.2',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -118,6 +118,7 @@ const zhipuChatModels: AIChatModelCard[] = [
family: 'glm',
generation: 'glm-5.1',
id: 'glm-5.1',
+ isOfficial: true,
maxOutput: 131_072,
pricing: {
currency: 'USD',
@@ -1024,381 +1025,6 @@ const zhipuChatModels: AIChatModelCard[] = [
},
];
-const zhipuImageModels: AIImageModelCard[] = [
- {
- description:
- 'GLM-Image is Zhipu’s new flagship image generation model. The model was trained end-to-end on domestically produced chips and adopts an original hybrid architecture that combines autoregressive modeling with a diffusion decoder. This design enables strong global instruction understanding alongside fine-grained local detail rendering, overcoming long-standing challenges in generating knowledge-dense content such as posters, presentations, and educational diagrams. It represents an important exploration toward a new generation of “cognitive generative” technology paradigms, exemplified by Nano Banana Pro.',
- displayName: 'GLM-Image',
- enabled: true,
- id: 'glm-image',
- parameters: {
- prompt: {
- default: '',
- },
- resolution: {
- default: 'hd',
- enum: ['hd'],
- },
- size: {
- default: '1280x1280',
- enum: [
- '1280x1280',
- '1568x1056',
- '1056x1568',
- '1472x1088',
- '1088x1472',
- '1728x960',
- '960x1728',
- ],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.015, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2026-01-14',
- type: 'image',
- },
- {
- description:
- 'CogView-4 is Zhipu’s first open-source text-to-image model that can generate Chinese characters. It improves semantic understanding, image quality, and Chinese/English text rendering, supports arbitrary-length bilingual prompts, and can generate images at any resolution within specified ranges.',
- displayName: 'CogView-4',
- enabled: true,
- id: 'cogview-4',
- parameters: {
- prompt: {
- default: '',
- },
- resolution: {
- default: 'standard',
- enum: ['hd', 'standard'],
- },
- size: {
- default: '1024x1024',
- enum: ['1024x1024', '768x1344', '864x1152', '1344x768', '1152x864', '1440x720', '720x1440'],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'imageGeneration', rate: 0.01, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-03-04',
- type: 'image',
- },
- {
- description:
- 'CogView-3-Flash is a free image generation model launched by Zhipu. It generates images that align with user instructions while achieving higher aesthetic quality scores. CogView-3-Flash is primarily used in fields such as artistic creation, design reference, game development, and virtual reality, helping users rapidly convert text descriptions into images.',
- displayName: 'CogView-3-Flash',
- enabled: true,
- id: 'cogview-3-flash',
- parameters: {
- prompt: {
- default: '',
- },
- resolution: {
- default: 'standard',
- enum: ['hd', 'standard'],
- },
- size: {
- default: '1024x1024',
- enum: ['1024x1024', '768x1344', '864x1152', '1344x768', '1152x864', '1440x720', '720x1440'],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
- },
- type: 'image',
- },
-];
-
-const zhipuVideoModels: AIVideoModelCard[] = [
- {
- description:
- 'Vidu 2 is a video generation foundation model designed to balance speed and quality. It focuses on image-to-video generation and start–end frame control, supporting 4-second videos at 720P resolution. The generation speed is significantly improved while costs are substantially reduced. Image-to-video generation fixes previous color shift issues, delivering stable and controllable visuals suitable for e-commerce and similar applications. In addition, semantic understanding of start and end frames and consistency across multiple reference images have been enhanced, making it an efficient tool for large-scale content production in general entertainment, internet media, animated short dramas, and advertising.',
- displayName: 'Vidu 2 Reference',
- enabled: true,
- id: 'vidu2-reference',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16', '1:1'],
- },
- duration: { default: 4, enum: [4] },
- generateAudio: { default: true },
- imageUrls: {
- default: [],
- maxCount: 3,
- },
- prompt: { default: '' },
- size: {
- default: '1280x720',
- enum: ['1280x720'],
- },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 1.25, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-06-18',
- type: 'video',
- },
- {
- description:
- 'Vidu 2 is a video generation foundation model designed to balance speed and quality. It focuses on image-to-video generation and start–end frame control, supporting 4-second videos at 720P resolution. The generation speed is significantly improved while costs are substantially reduced. Image-to-video generation fixes previous color shift issues, delivering stable and controllable visuals suitable for e-commerce and similar applications. In addition, semantic understanding of start and end frames and consistency across multiple reference images have been enhanced, making it an efficient tool for large-scale content production in general entertainment, internet media, animated short dramas, and advertising.',
- displayName: 'Vidu 2 Start End',
- enabled: true,
- id: 'vidu2-start-end',
- parameters: {
- duration: { default: 5, enum: [5] },
- endImageUrl: {
- default: null,
- },
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- size: {
- default: '1920x1080',
- enum: ['1920x1080'],
- },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 1.25, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-06-18',
- type: 'video',
- },
- {
- description:
- 'Vidu Q1 is Vidu’s next-generation video generation foundation model, focused on high-quality video creation. It produces content with fixed specifications of 5 seconds, 24 FPS, and 1080P resolution. Through deep optimization of visual clarity, the overall image quality and texture are significantly improved, while issues such as hand deformation and frame jitter are greatly reduced. The realistic style closely approaches real-world scenes, and 2D animation styles are preserved with high fidelity. Transitions between start and end frames are smoother, making it well suited for high-demand creative scenarios such as film production, advertising, and animated short dramas.',
- displayName: 'Vidu Q1 Start End',
- id: 'viduq1-start-end',
- parameters: {
- duration: { default: 5, enum: [5] },
- endImageUrl: {
- default: null,
- },
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- size: {
- default: '1920x1080',
- enum: ['1920x1080'],
- },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 2.5, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-06-18',
- type: 'video',
- },
- {
- description:
- 'Vidu 2 is a video generation foundation model designed to balance speed and quality. It focuses on image-to-video generation and start–end frame control, supporting 4-second videos at 720P resolution. The generation speed is significantly improved while costs are substantially reduced. Image-to-video generation fixes previous color shift issues, delivering stable and controllable visuals suitable for e-commerce and similar applications. In addition, semantic understanding of start and end frames and consistency across multiple reference images have been enhanced, making it an efficient tool for large-scale content production in general entertainment, internet media, animated short dramas, and advertising.',
- displayName: 'Vidu 2 Image',
- enabled: true,
- id: 'vidu2-image',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['21:9', '16:9', '4:3', '1:1', '3:4', '9:16'],
- },
- duration: { default: 5, enum: [5] },
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- size: {
- default: '1920x1080',
- enum: ['1920x1080'],
- },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 1.25, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-06-18',
- type: 'video',
- },
- {
- description:
- 'Vidu Q1 is Vidu’s next-generation video generation foundation model, focused on high-quality video creation. It produces content with fixed specifications of 5 seconds, 24 FPS, and 1080P resolution. Through deep optimization of visual clarity, the overall image quality and texture are significantly improved, while issues such as hand deformation and frame jitter are greatly reduced. The realistic style closely approaches real-world scenes, and 2D animation styles are preserved with high fidelity. Transitions between start and end frames are smoother, making it well suited for high-demand creative scenarios such as film production, advertising, and animated short dramas.',
- displayName: 'Vidu Q1 Image',
- id: 'viduq1-image',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['21:9', '16:9', '4:3', '1:1', '3:4', '9:16'],
- },
- duration: { default: 5, enum: [5] },
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- size: {
- default: '1920x1080',
- enum: ['1920x1080'],
- },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 2.5, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-06-18',
- type: 'video',
- },
- {
- description:
- 'Vidu Q1 is Vidu’s next-generation video generation foundation model, focused on high-quality video creation. It produces content with fixed specifications of 5 seconds, 24 FPS, and 1080P resolution. Through deep optimization of visual clarity, the overall image quality and texture are significantly improved, while issues such as hand deformation and frame jitter are greatly reduced. The realistic style closely approaches real-world scenes, and 2D animation styles are preserved with high fidelity. Transitions between start and end frames are smoother, making it well suited for high-demand creative scenarios such as film production, advertising, and animated short dramas.',
- displayName: 'Vidu Q1 Text',
- enabled: true,
- id: 'viduq1-text',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16', '1:1'],
- },
- duration: { default: 5, enum: [5] },
- prompt: { default: '' },
- size: {
- default: '1920x1080',
- enum: ['1920x1080'],
- },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 2.5, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-06-18',
- type: 'video',
- },
- {
- description:
- 'CogVideoX-3 adds a start-and-end frame generation feature, significantly improving visual stability and clarity. It enables smooth and natural large-scale subject motion, offers better instruction adherence and more realistic physical simulation, and further enhances performance in high-definition realistic and 3D-style scenes.',
- displayName: 'CogVideoX-3',
- enabled: true,
- id: 'cogvideox-3',
- parameters: {
- duration: { default: 5, enum: [5, 10] },
- endImageUrl: {
- default: null,
- },
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- resolution: {
- default: 'speed',
- enum: ['speed', 'quality'],
- },
- size: {
- default: '1920x1080',
- enum: [
- '1280x720',
- '720x1280',
- '1024x1024',
- '1920x1080',
- '1080x1920',
- '2048x1080',
- '3840x2160',
- ],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'USD',
- units: [{ name: 'videoGeneration', rate: 0.2, strategy: 'fixed', unit: 'video' }],
- },
- releasedAt: '2025-07-15',
- type: 'video',
- },
- {
- description:
- 'CogVideoX-2 is Zhipu’s new-generation video generation foundation model, with image-to-video capabilities improved by 38%. It delivers significant enhancements in large-scale motion handling, visual stability, instruction adherence, artistic style, and overall visual aesthetics.',
- displayName: 'CogVideoX-2',
- id: 'cogvideox-2',
- parameters: {
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- resolution: {
- default: 'speed',
- enum: ['speed', 'quality'],
- },
- size: {
- default: '1920x1080',
- enum: [
- '720x480',
- '1024x1024',
- '1280x960',
- '960x1280',
- '1920x1080',
- '1080x1920',
- '2048x1080',
- '3840x2160',
- ],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 0.5, strategy: 'fixed', unit: 'video' }],
- },
- type: 'video',
- },
- {
- description:
- 'CogVideoX-Flash is a free video generation model released by Zhipu, capable of generating videos that follow user instructions while achieving higher aesthetic quality scores.',
- displayName: 'CogVideoX-Flash',
- enabled: true,
- id: 'cogvideox-flash',
- parameters: {
- generateAudio: { default: true },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- resolution: {
- default: 'speed',
- enum: ['speed', 'quality'],
- },
- size: {
- default: '1920x1080',
- enum: [
- '720x480',
- '1024x1024',
- '1280x960',
- '960x1280',
- '1920x1080',
- '1080x1920',
- '2048x1080',
- '3840x2160',
- ],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'videoGeneration', rate: 0, strategy: 'fixed', unit: 'video' }],
- },
- type: 'video',
- },
-];
-
export const allModels = [...zhipuChatModels, ...zhipuImageModels, ...zhipuVideoModels];
export default allModels;
diff --git a/packages/model-bank/src/aiModels/zhipu/nonChat.ts b/packages/model-bank/src/aiModels/zhipu/nonChat.ts
new file mode 100644
index 00000000000..c9d5ce65de1
--- /dev/null
+++ b/packages/model-bank/src/aiModels/zhipu/nonChat.ts
@@ -0,0 +1,376 @@
+import type { AIImageModelCard, AIVideoModelCard } from '../../types/aiModel';
+
+export const zhipuImageModels: AIImageModelCard[] = [
+ {
+ description:
+ 'GLM-Image is Zhipu’s new flagship image generation model. The model was trained end-to-end on domestically produced chips and adopts an original hybrid architecture that combines autoregressive modeling with a diffusion decoder. This design enables strong global instruction understanding alongside fine-grained local detail rendering, overcoming long-standing challenges in generating knowledge-dense content such as posters, presentations, and educational diagrams. It represents an important exploration toward a new generation of “cognitive generative” technology paradigms, exemplified by Nano Banana Pro.',
+ displayName: 'GLM-Image',
+ enabled: true,
+ id: 'glm-image',
+ parameters: {
+ prompt: {
+ default: '',
+ },
+ resolution: {
+ default: 'hd',
+ enum: ['hd'],
+ },
+ size: {
+ default: '1280x1280',
+ enum: [
+ '1280x1280',
+ '1568x1056',
+ '1056x1568',
+ '1472x1088',
+ '1088x1472',
+ '1728x960',
+ '960x1728',
+ ],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.015, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2026-01-14',
+ type: 'image',
+ },
+ {
+ description:
+ 'CogView-4 is Zhipu’s first open-source text-to-image model that can generate Chinese characters. It improves semantic understanding, image quality, and Chinese/English text rendering, supports arbitrary-length bilingual prompts, and can generate images at any resolution within specified ranges.',
+ displayName: 'CogView-4',
+ enabled: true,
+ id: 'cogview-4',
+ parameters: {
+ prompt: {
+ default: '',
+ },
+ resolution: {
+ default: 'standard',
+ enum: ['hd', 'standard'],
+ },
+ size: {
+ default: '1024x1024',
+ enum: ['1024x1024', '768x1344', '864x1152', '1344x768', '1152x864', '1440x720', '720x1440'],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'imageGeneration', rate: 0.01, strategy: 'fixed', unit: 'image' }],
+ },
+ releasedAt: '2025-03-04',
+ type: 'image',
+ },
+ {
+ description:
+ 'CogView-3-Flash is a free image generation model launched by Zhipu. It generates images that align with user instructions while achieving higher aesthetic quality scores. CogView-3-Flash is primarily used in fields such as artistic creation, design reference, game development, and virtual reality, helping users rapidly convert text descriptions into images.',
+ displayName: 'CogView-3-Flash',
+ enabled: true,
+ id: 'cogview-3-flash',
+ parameters: {
+ prompt: {
+ default: '',
+ },
+ resolution: {
+ default: 'standard',
+ enum: ['hd', 'standard'],
+ },
+ size: {
+ default: '1024x1024',
+ enum: ['1024x1024', '768x1344', '864x1152', '1344x768', '1152x864', '1440x720', '720x1440'],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
+ },
+ type: 'image',
+ },
+];
+
+export const zhipuVideoModels: AIVideoModelCard[] = [
+ {
+ description:
+ 'Vidu 2 is a video generation foundation model designed to balance speed and quality. It focuses on image-to-video generation and start–end frame control, supporting 4-second videos at 720P resolution. The generation speed is significantly improved while costs are substantially reduced. Image-to-video generation fixes previous color shift issues, delivering stable and controllable visuals suitable for e-commerce and similar applications. In addition, semantic understanding of start and end frames and consistency across multiple reference images have been enhanced, making it an efficient tool for large-scale content production in general entertainment, internet media, animated short dramas, and advertising.',
+ displayName: 'Vidu 2 Reference',
+ enabled: true,
+ id: 'vidu2-reference',
+ parameters: {
+ aspectRatio: {
+ default: '16:9',
+ enum: ['16:9', '9:16', '1:1'],
+ },
+ duration: { default: 4, enum: [4] },
+ generateAudio: { default: true },
+ imageUrls: {
+ default: [],
+ maxCount: 3,
+ },
+ prompt: { default: '' },
+ size: {
+ default: '1280x720',
+ enum: ['1280x720'],
+ },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 1.25, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-06-18',
+ type: 'video',
+ },
+ {
+ description:
+ 'Vidu 2 is a video generation foundation model designed to balance speed and quality. It focuses on image-to-video generation and start–end frame control, supporting 4-second videos at 720P resolution. The generation speed is significantly improved while costs are substantially reduced. Image-to-video generation fixes previous color shift issues, delivering stable and controllable visuals suitable for e-commerce and similar applications. In addition, semantic understanding of start and end frames and consistency across multiple reference images have been enhanced, making it an efficient tool for large-scale content production in general entertainment, internet media, animated short dramas, and advertising.',
+ displayName: 'Vidu 2 Start End',
+ enabled: true,
+ id: 'vidu2-start-end',
+ parameters: {
+ duration: { default: 5, enum: [5] },
+ endImageUrl: {
+ default: null,
+ },
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ size: {
+ default: '1920x1080',
+ enum: ['1920x1080'],
+ },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 1.25, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-06-18',
+ type: 'video',
+ },
+ {
+ description:
+ 'Vidu Q1 is Vidu’s next-generation video generation foundation model, focused on high-quality video creation. It produces content with fixed specifications of 5 seconds, 24 FPS, and 1080P resolution. Through deep optimization of visual clarity, the overall image quality and texture are significantly improved, while issues such as hand deformation and frame jitter are greatly reduced. The realistic style closely approaches real-world scenes, and 2D animation styles are preserved with high fidelity. Transitions between start and end frames are smoother, making it well suited for high-demand creative scenarios such as film production, advertising, and animated short dramas.',
+ displayName: 'Vidu Q1 Start End',
+ id: 'viduq1-start-end',
+ parameters: {
+ duration: { default: 5, enum: [5] },
+ endImageUrl: {
+ default: null,
+ },
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ size: {
+ default: '1920x1080',
+ enum: ['1920x1080'],
+ },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 2.5, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-06-18',
+ type: 'video',
+ },
+ {
+ description:
+ 'Vidu 2 is a video generation foundation model designed to balance speed and quality. It focuses on image-to-video generation and start–end frame control, supporting 4-second videos at 720P resolution. The generation speed is significantly improved while costs are substantially reduced. Image-to-video generation fixes previous color shift issues, delivering stable and controllable visuals suitable for e-commerce and similar applications. In addition, semantic understanding of start and end frames and consistency across multiple reference images have been enhanced, making it an efficient tool for large-scale content production in general entertainment, internet media, animated short dramas, and advertising.',
+ displayName: 'Vidu 2 Image',
+ enabled: true,
+ id: 'vidu2-image',
+ parameters: {
+ aspectRatio: {
+ default: '16:9',
+ enum: ['21:9', '16:9', '4:3', '1:1', '3:4', '9:16'],
+ },
+ duration: { default: 5, enum: [5] },
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ size: {
+ default: '1920x1080',
+ enum: ['1920x1080'],
+ },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 1.25, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-06-18',
+ type: 'video',
+ },
+ {
+ description:
+ 'Vidu Q1 is Vidu’s next-generation video generation foundation model, focused on high-quality video creation. It produces content with fixed specifications of 5 seconds, 24 FPS, and 1080P resolution. Through deep optimization of visual clarity, the overall image quality and texture are significantly improved, while issues such as hand deformation and frame jitter are greatly reduced. The realistic style closely approaches real-world scenes, and 2D animation styles are preserved with high fidelity. Transitions between start and end frames are smoother, making it well suited for high-demand creative scenarios such as film production, advertising, and animated short dramas.',
+ displayName: 'Vidu Q1 Image',
+ id: 'viduq1-image',
+ parameters: {
+ aspectRatio: {
+ default: '16:9',
+ enum: ['21:9', '16:9', '4:3', '1:1', '3:4', '9:16'],
+ },
+ duration: { default: 5, enum: [5] },
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ size: {
+ default: '1920x1080',
+ enum: ['1920x1080'],
+ },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 2.5, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-06-18',
+ type: 'video',
+ },
+ {
+ description:
+ 'Vidu Q1 is Vidu’s next-generation video generation foundation model, focused on high-quality video creation. It produces content with fixed specifications of 5 seconds, 24 FPS, and 1080P resolution. Through deep optimization of visual clarity, the overall image quality and texture are significantly improved, while issues such as hand deformation and frame jitter are greatly reduced. The realistic style closely approaches real-world scenes, and 2D animation styles are preserved with high fidelity. Transitions between start and end frames are smoother, making it well suited for high-demand creative scenarios such as film production, advertising, and animated short dramas.',
+ displayName: 'Vidu Q1 Text',
+ enabled: true,
+ id: 'viduq1-text',
+ parameters: {
+ aspectRatio: {
+ default: '16:9',
+ enum: ['16:9', '9:16', '1:1'],
+ },
+ duration: { default: 5, enum: [5] },
+ prompt: { default: '' },
+ size: {
+ default: '1920x1080',
+ enum: ['1920x1080'],
+ },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 2.5, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-06-18',
+ type: 'video',
+ },
+ {
+ description:
+ 'CogVideoX-3 adds a start-and-end frame generation feature, significantly improving visual stability and clarity. It enables smooth and natural large-scale subject motion, offers better instruction adherence and more realistic physical simulation, and further enhances performance in high-definition realistic and 3D-style scenes.',
+ displayName: 'CogVideoX-3',
+ enabled: true,
+ id: 'cogvideox-3',
+ parameters: {
+ duration: { default: 5, enum: [5, 10] },
+ endImageUrl: {
+ default: null,
+ },
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ resolution: {
+ default: 'speed',
+ enum: ['speed', 'quality'],
+ },
+ size: {
+ default: '1920x1080',
+ enum: [
+ '1280x720',
+ '720x1280',
+ '1024x1024',
+ '1920x1080',
+ '1080x1920',
+ '2048x1080',
+ '3840x2160',
+ ],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'USD',
+ units: [{ name: 'videoGeneration', rate: 0.2, strategy: 'fixed', unit: 'video' }],
+ },
+ releasedAt: '2025-07-15',
+ type: 'video',
+ },
+ {
+ description:
+ 'CogVideoX-2 is Zhipu’s new-generation video generation foundation model, with image-to-video capabilities improved by 38%. It delivers significant enhancements in large-scale motion handling, visual stability, instruction adherence, artistic style, and overall visual aesthetics.',
+ displayName: 'CogVideoX-2',
+ id: 'cogvideox-2',
+ parameters: {
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ resolution: {
+ default: 'speed',
+ enum: ['speed', 'quality'],
+ },
+ size: {
+ default: '1920x1080',
+ enum: [
+ '720x480',
+ '1024x1024',
+ '1280x960',
+ '960x1280',
+ '1920x1080',
+ '1080x1920',
+ '2048x1080',
+ '3840x2160',
+ ],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 0.5, strategy: 'fixed', unit: 'video' }],
+ },
+ type: 'video',
+ },
+ {
+ description:
+ 'CogVideoX-Flash is a free video generation model released by Zhipu, capable of generating videos that follow user instructions while achieving higher aesthetic quality scores.',
+ displayName: 'CogVideoX-Flash',
+ enabled: true,
+ id: 'cogvideox-flash',
+ parameters: {
+ generateAudio: { default: true },
+ imageUrl: {
+ default: null,
+ },
+ prompt: { default: '' },
+ resolution: {
+ default: 'speed',
+ enum: ['speed', 'quality'],
+ },
+ size: {
+ default: '1920x1080',
+ enum: [
+ '720x480',
+ '1024x1024',
+ '1280x960',
+ '960x1280',
+ '1920x1080',
+ '1080x1920',
+ '2048x1080',
+ '3840x2160',
+ ],
+ },
+ watermark: { default: false },
+ },
+ pricing: {
+ currency: 'CNY',
+ units: [{ name: 'videoGeneration', rate: 0, strategy: 'fixed', unit: 'video' }],
+ },
+ type: 'video',
+ },
+];
diff --git a/packages/model-bank/src/exports.test.ts b/packages/model-bank/src/exports.test.ts
index ace0161c282..8b0120d1738 100644
--- a/packages/model-bank/src/exports.test.ts
+++ b/packages/model-bank/src/exports.test.ts
@@ -1,4 +1,4 @@
-import { readdirSync, readFileSync } from 'node:fs';
+import { existsSync, readdirSync, readFileSync } from 'node:fs';
import path from 'node:path';
import { describe, expect, it } from 'vitest';
@@ -13,20 +13,27 @@ describe('model-bank package.json exports should cover all aiModels files', () =
exports?: Record<string, string>;
};
- const allModelFiles = readdirSync(aiModelsDir)
- .filter((f) => f.endsWith('.ts') && !f.endsWith('.test.ts'))
- .map((f) => f.replace(/\.ts$/, ''))
- // Exclude non-provider entry files.
- .filter((name) => !['index'].includes(name));
+ const entries = readdirSync(aiModelsDir, { withFileTypes: true });
+
+ /** Provider id → expected export path; a provider split into a directory exports its `index.ts`. */
+ const expectedExports = new Map<string, string>([
+ ...entries
+ .filter((e) => e.isFile() && e.name.endsWith('.ts') && !e.name.endsWith('.test.ts'))
+ .map((e) => e.name.replace(/\.ts$/, ''))
+ // Exclude non-provider entry files.
+ .filter((name) => !['index'].includes(name))
+ .map((name): [string, string] => [name, `./src/aiModels/${name}.ts`]),
+ ...entries
+ .filter((e) => e.isDirectory() && existsSync(path.resolve(aiModelsDir, e.name, 'index.ts')))
+ .map((e): [string, string] => [e.name, `./src/aiModels/${e.name}/index.ts`]),
+ ]);
it('every aiModels file should be exported in package.json.exports', () => {
const exportsMap = packageJson.exports ?? {};
- const missing = allModelFiles.filter((name) => {
- const key = `./${name}`;
- const expectedPath = `./src/aiModels/${name}.ts`;
- return !(key in exportsMap) || exportsMap[key] !== expectedPath;
- });
+ const missing = [...expectedExports]
+ .filter(([name, expectedPath]) => exportsMap[`./${name}`] !== expectedPath)
+ .map(([name]) => name);
if (missing.length > 0) {
console.error('Missing exports for aiModels files:', missing);
diff --git a/packages/model-bank/src/types/aiModel.ts b/packages/model-bank/src/types/aiModel.ts
index 5d242f008d2..09160a61d5b 100644
--- a/packages/model-bank/src/types/aiModel.ts
+++ b/packages/model-bank/src/types/aiModel.ts
@@ -316,6 +316,12 @@ export interface AIBaseModelCard {
*/
generation?: string;
id: string;
+ /**
+ * Whether this card is listed by the vendor that makes the model, so its `pricing` is the
+ * official list price. Resellers that list another vendor's model (e.g. DeepSeek on Qwen)
+ * leave it unset. Unset also means "not checked yet", so treat it as unknown, not as false.
+ */
+ isOfficial?: boolean;
/**
* knowledge cutoff date (YYYY-MM). When the provider distinguishes a "reliable
* knowledge cutoff" from the broader training-data cutoff, use the reliable one.