diff --git a/README.md b/README.md index 3279442..2ff6e1f 100644 --- a/README.md +++ b/README.md @@ -49,16 +49,14 @@ Then start OpenABCode: openabcode ``` -Inside the interactive CLI: +To set up Route mode: -```text -/login Sign in to OpenABCode or another provider -/model Select fixed models and Route family models -/route-model Select the model that classifies Route tasks -/route Turn automatic task routing on or off -``` +1. Run `/login` and configure the providers you want to use. +2. Run `/route-model` and select the authenticated model that classifies tasks. This does not change the active execution model. +3. Run `/model` and pick one specific model per family — e.g. `gpt-6-astra` for OpenAI, `gemini-3.8-flash` for Google, `claude-fable-5` for Anthropic. Route always executes tasks with the exact model you picked for the chosen family. +4. Run `/route` and select `on`. -When Route is on, the footer shows the configured execution models. Every completed routing decision is also stored in the session JSONL for audit. +When Route is on, the footer shows the configured execution models. Route works as long as at least two model families are configured — with a family missing, routing degrades to the available ones. Every completed routing decision is stored in the session JSONL for audit, and manually overriding a routed model is recorded as veto feedback. ## Customizing Route Rules @@ -69,16 +67,15 @@ Route rules, heuristic keywords, file extension mappings, project markers, and t "router": { "rules": { "openai": "Test and automation — algorithms, code review, testing, data analysis, scripting", - "google": "Google ecosystem — Android, Flutter, Firebase, Google Cloud, Kotlin", + "google": "Google ecosystem — Android, Flutter, Firebase, Google Cloud", "anthropic": "General development — all code writing, editing, debugging, architecture, UI" }, "keywords": { "openai": ["algorithm", "unit test", "benchmark", "data analysis", "pipeline"], "google": ["android", "flutter", "dart", "firebase", "gcp"], - "anthropic": ["refactor", "debug", "architecture", "implement", "fix"] + "anthropic": ["refactor", "debug", "architecture", "migration"] }, "fileExtensions": { - ".kt": "google", ".dart": "google", ".rs": "anthropic", ".ts": "anthropic", diff --git a/package-lock.json b/package-lock.json index bae77c7..911d829 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5116,10 +5116,10 @@ }, "packages/agent": { "name": "@openabcode/agent-core", - "version": "1.0.9", + "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { - "@openabcode/ai": "^1.0.9", + "@openabcode/ai": "^1.1.0", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" @@ -5468,7 +5468,7 @@ }, "packages/ai": { "name": "@openabcode/ai", - "version": "1.0.9", + "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/sdk": "0.91.1", @@ -5774,12 +5774,12 @@ }, "packages/coding-agent": { "name": "@openabcode/coding-agent", - "version": "1.0.9", + "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { - "@openabcode/agent-core": "^1.0.9", - "@openabcode/ai": "^1.0.9", - "@openabcode/tui": "^1.0.9", + "@openabcode/agent-core": "^1.1.0", + "@openabcode/ai": "^1.1.0", + "@openabcode/tui": "^1.1.0", "@silvia-odwyer/photon-node": "0.3.4", "chalk": "5.6.2", "cross-spawn": "7.0.6", @@ -5820,32 +5820,32 @@ }, "packages/coding-agent/examples/extensions/custom-provider-anthropic": { "name": "openabcode-extension-custom-provider-anthropic", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "@anthropic-ai/sdk": "0.52.0" } }, "packages/coding-agent/examples/extensions/custom-provider-gitlab-duo": { "name": "openabcode-extension-custom-provider-gitlab-duo", - "version": "1.0.9" + "version": "1.1.0" }, "packages/coding-agent/examples/extensions/gondolin": { "name": "openabcode-extension-gondolin", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "@earendil-works/gondolin": "0.12.0" } }, "packages/coding-agent/examples/extensions/sandbox": { "name": "openabcode-extension-sandbox", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "@anthropic-ai/sandbox-runtime": "0.0.26" } }, "packages/coding-agent/examples/extensions/with-deps": { "name": "openabcode-extension-with-deps", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "ms": "2.1.3" }, @@ -6141,10 +6141,10 @@ }, "packages/orchestrator": { "name": "@openabcode/orchestrator", - "version": "1.0.9", + "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { - "@openabcode/coding-agent": "^1.0.9" + "@openabcode/coding-agent": "^1.1.0" }, "devDependencies": { "shx": "0.4.0" @@ -6155,7 +6155,7 @@ }, "packages/tui": { "name": "@openabcode/tui", - "version": "1.0.9", + "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { "get-east-asian-width": "1.6.0", diff --git a/packages/agent/CHANGELOG.md b/packages/agent/CHANGELOG.md index bbf092d..a0143b6 100644 --- a/packages/agent/CHANGELOG.md +++ b/packages/agent/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [1.1.0] - 2026-09-16 + ## [1.0.9] - 2026-07-19 ## [1.0.8] - 2026-07-19 diff --git a/packages/agent/package.json b/packages/agent/package.json index 6e44223..603d074 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/agent-core", - "version": "1.0.9", + "version": "1.1.0", "description": "General-purpose agent with transport abstraction, state management, and attachment support", "type": "module", "main": "./dist/index.js", @@ -30,7 +30,7 @@ "prepublishOnly": "npm run clean && npm run build" }, "dependencies": { - "@openabcode/ai": "^1.0.9", + "@openabcode/ai": "^1.1.0", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 63a17b8..16e0633 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -2,6 +2,17 @@ ## [Unreleased] +## [1.1.0] - 2026-09-16 + +### Changed + +- Refreshed all generated model catalogs from upstream: removed retired models (`glm-4.5-air`, `k2p7`, `gpt-5.2-codex`, `gpt-5.1-codex-max`, dated Claude aliases, and others) and added current replacements. +- Cloudflare AI Gateway now serves only `/anthropic` and `/openai` upstreams; the workers-ai `/compat` completions path was removed from the catalog and the provider no longer registers the completions API. + +### Added + +- `supportsReasoningEffort` compat flag for OpenAI Responses models; when false the `reasoning.effort` request field is omitted (used by OpenCode Grok Build). + ## [1.0.9] - 2026-07-19 ## [1.0.8] - 2026-07-19 diff --git a/packages/ai/package.json b/packages/ai/package.json index fe019e9..1fad3fa 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/ai", - "version": "1.0.9", + "version": "1.1.0", "description": "Unified LLM API with automatic model discovery and provider configuration", "type": "module", "main": "./dist/index.js", diff --git a/packages/ai/src/api/openai-responses.ts b/packages/ai/src/api/openai-responses.ts index 146a309..d386158 100644 --- a/packages/ai/src/api/openai-responses.ts +++ b/packages/ai/src/api/openai-responses.ts @@ -62,6 +62,7 @@ function getCompat(model: Model<"openai-responses">): Required, context: Context, options params.tools = convertResponsesTools(context.tools); } - if (model.reasoning) { + if (model.reasoning && (model.compat?.supportsReasoningEffort ?? true)) { if (options?.reasoningEffort || options?.reasoningSummary) { const effort = options?.reasoningEffort ? (model.thinkingLevelMap?.[options.reasoningEffort] ?? options.reasoningEffort) diff --git a/packages/ai/src/image-models.generated.ts b/packages/ai/src/image-models.generated.ts index beb469e..85a6c8f 100644 --- a/packages/ai/src/image-models.generated.ts +++ b/packages/ai/src/image-models.generated.ts @@ -80,6 +80,36 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "bytedance-seed/seedream-5-0-lite": { + id: "bytedance-seed/seedream-5-0-lite", + name: "ByteDance Seed: Seedream 5.0 Lite", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "bytedance-seed/seedream-5-0-pro": { + id: "bytedance-seed/seedream-5-0-pro", + name: "ByteDance Seed: Seedream 5.0 Pro", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "google/gemini-2.5-flash-image": { id: "google/gemini-2.5-flash-image", name: "Google: Nano Banana (Gemini 2.5 Flash Image)", @@ -92,7 +122,7 @@ export const IMAGE_MODELS = { input: 0.3, output: 2.5, cacheRead: 0.03, - cacheWrite: 0.08333333333333334, + cacheWrite: 0.0833333333333333, }, } satisfies ImagesModel<"openrouter-images">, "google/gemini-3-pro-image": { @@ -170,9 +200,84 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "krea/krea-2-large": { + id: "krea/krea-2-large", + name: "Krea: Krea 2 Large", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "krea/krea-2-medium": { + id: "krea/krea-2-medium", + name: "Krea: Krea 2 Medium", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "krea/krea-2-medium-turbo": { + id: "krea/krea-2-medium-turbo", + name: "Krea: Krea 2 Medium Turbo", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "meta/muse-image": { + id: "meta/muse-image", + name: "Meta: Muse Image", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "microsoft/mai-image-2.5": { id: "microsoft/mai-image-2.5", - name: "Microsoft: MAI-Image-2.5", + name: "Microsoft AI: MAI-Image-2.5", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 5, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "microsoft/mai-image-2.5-pro": { + id: "microsoft/mai-image-2.5-pro", + name: "Microsoft AI: MAI-Image-2.5 Pro", api: "openrouter-images", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -185,6 +290,36 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "microsoft/mai-image-2.6": { + id: "microsoft/mai-image-2.6", + name: "Microsoft AI: MAI-Image-2.6", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 5, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "microsoft/mai-image-2.6-flash": { + id: "microsoft/mai-image-2.6-flash", + name: "Microsoft AI: MAI-Image-2.6 Flash", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 1.75, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "openai/gpt-5-image": { id: "openai/gpt-5-image", name: "OpenAI: GPT-5 Image", @@ -275,6 +410,36 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "openai/gpt-image-2.5-flare": { + id: "openai/gpt-image-2.5-flare", + name: "OpenAI: GPT Image 2.5 Flare", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 8, + output: 8, + cacheRead: 2, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "openai/gpt-image-2.5-sunburst": { + id: "openai/gpt-image-2.5-sunburst", + name: "OpenAI: GPT Image 2.5 Sunburst", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 8, + output: 8, + cacheRead: 2, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "openrouter/auto": { id: "openrouter/auto", name: "Auto Router", @@ -305,6 +470,36 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "qwen/qwen-image-3": { + id: "qwen/qwen-image-3", + name: "Qwen: Qwen Image 3", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "qwen/qwen-image-3-pro": { + id: "qwen/qwen-image-3-pro", + name: "Qwen: Qwen Image 3 Pro", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "recraft/recraft-v3": { id: "recraft/recraft-v3", name: "Recraft: Recraft V3", @@ -365,6 +560,66 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "recraft/recraft-v4-styles": { + id: "recraft/recraft-v4-styles", + name: "Recraft: Recraft V4 Styles", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "recraft/recraft-v4-styles-pro": { + id: "recraft/recraft-v4-styles-pro", + name: "Recraft: Recraft V4 Styles Pro", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "recraft/recraft-v4-styles-pro-vector": { + id: "recraft/recraft-v4-styles-pro-vector", + name: "Recraft: Recraft V4 Styles Pro Vector", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "recraft/recraft-v4-styles-vector": { + id: "recraft/recraft-v4-styles-vector", + name: "Recraft: Recraft V4 Styles Vector", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "recraft/recraft-v4-vector": { id: "recraft/recraft-v4-vector", name: "Recraft: Recraft V4 Vector", @@ -530,9 +785,24 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "x-ai/grok-imagine-image-2.0": { + id: "x-ai/grok-imagine-image-2.0", + name: "xAI: Grok Imagine Image 2.0", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text", "image"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "x-ai/grok-imagine-image-quality": { id: "x-ai/grok-imagine-image-quality", - name: "xAI: Grok Imagine Image Quality", + name: "SpaceXAI: Grok Imagine Image Quality", api: "openrouter-images", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", diff --git a/packages/ai/src/providers/amazon-bedrock.models.ts b/packages/ai/src/providers/amazon-bedrock.models.ts index a3bc916..c769028 100644 --- a/packages/ai/src/providers/amazon-bedrock.models.ts +++ b/packages/ai/src/providers/amazon-bedrock.models.ts @@ -15,11 +15,11 @@ export const AMAZON_BEDROCK_MODELS = { cost: { input: 0.33, output: 2.75, - cacheRead: 0, - cacheWrite: 0, + cacheRead: 0.0825, + cacheWrite: 0.33, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 1000000, + maxTokens: 65535, } satisfies Model<"bedrock-converse-stream">, "amazon.nova-lite-v1:0": { id: "amazon.nova-lite-v1:0", @@ -33,10 +33,10 @@ export const AMAZON_BEDROCK_MODELS = { input: 0.06, output: 0.24, cacheRead: 0.015, - cacheWrite: 0, + cacheWrite: 0.06, }, contextWindow: 300000, - maxTokens: 8192, + maxTokens: 10000, } satisfies Model<"bedrock-converse-stream">, "amazon.nova-micro-v1:0": { id: "amazon.nova-micro-v1:0", @@ -50,10 +50,10 @@ export const AMAZON_BEDROCK_MODELS = { input: 0.035, output: 0.14, cacheRead: 0.00875, - cacheWrite: 0, + cacheWrite: 0.035, }, contextWindow: 128000, - maxTokens: 8192, + maxTokens: 10000, } satisfies Model<"bedrock-converse-stream">, "amazon.nova-pro-v1:0": { id: "amazon.nova-pro-v1:0", @@ -67,10 +67,10 @@ export const AMAZON_BEDROCK_MODELS = { input: 0.8, output: 3.2, cacheRead: 0.2, - cacheWrite: 0, + cacheWrite: 0.8, }, contextWindow: 300000, - maxTokens: 8192, + maxTokens: 10000, } satisfies Model<"bedrock-converse-stream">, "anthropic.claude-fable-5": { id: "anthropic.claude-fable-5", @@ -90,6 +90,24 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "anthropic.claude-fable-5-1": { + id: "anthropic.claude-fable-5-1", + name: "Claude Fable 5.1", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "anthropic.claude-haiku-4-5-20251001-v1:0": { id: "anthropic.claude-haiku-4-5-20251001-v1:0", name: "Claude Haiku 4.5", @@ -151,10 +169,10 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -195,6 +213,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "anthropic.claude-opus-5": { + id: "anthropic.claude-opus-5", + name: "Claude Opus 5", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "anthropic.claude-sonnet-4-5-20250929-v1:0": { id: "anthropic.claude-sonnet-4-5-20250929-v1:0", name: "Claude Sonnet 4.5", @@ -222,13 +257,13 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"max":"max"}, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 3.3, + output: 16.5, + cacheRead: 0.33, + cacheWrite: 4.125, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "anthropic.claude-sonnet-5": { id: "anthropic.claude-sonnet-5", @@ -248,6 +283,74 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "apac.amazon.nova-lite-v1:0": { + id: "apac.amazon.nova-lite-v1:0", + name: "Nova Lite (APAC)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.063, + output: 0.252, + cacheRead: 0.01575, + cacheWrite: 0.063, + }, + contextWindow: 300000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "apac.amazon.nova-micro-v1:0": { + id: "apac.amazon.nova-micro-v1:0", + name: "Nova Micro (APAC)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text"], + cost: { + input: 0.037, + output: 0.148, + cacheRead: 0.00925, + cacheWrite: 0.037, + }, + contextWindow: 128000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "apac.amazon.nova-pro-v1:0": { + id: "apac.amazon.nova-pro-v1:0", + name: "Nova Pro (APAC)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.84, + output: 3.36, + cacheRead: 0.21, + cacheWrite: 0.84, + }, + contextWindow: 300000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "apac.anthropic.claude-sonnet-4-20250514-v1:0": { + id: "apac.anthropic.claude-sonnet-4-20250514-v1:0", + name: "Claude Sonnet 4 (APAC)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 3.75, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"bedrock-converse-stream">, "au.anthropic.claude-haiku-4-5-20251001-v1:0": { id: "au.anthropic.claude-haiku-4-5-20251001-v1:0", name: "Claude Haiku 4.5 (AU)", @@ -257,10 +360,10 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 1.1, + output: 5.5, + cacheRead: 0.11, + cacheWrite: 1.375, }, contextWindow: 200000, maxTokens: 64000, @@ -275,10 +378,28 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"max":"max"}, input: ["text", "image"], cost: { - input: 16.5, - output: 82.5, - cacheRead: 1.65, - cacheWrite: 20.625, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "au.anthropic.claude-opus-4-7": { + id: "au.anthropic.claude-opus-4-7", + name: "Claude Opus 4.7 (AU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -293,10 +414,27 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "au.anthropic.claude-opus-5": { + id: "au.anthropic.claude-opus-5", + name: "Claude Opus 5 (AU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -310,10 +448,10 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 3.3, + output: 16.5, + cacheRead: 0.33, + cacheWrite: 4.125, }, contextWindow: 200000, maxTokens: 64000, @@ -346,30 +484,30 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2, - output: 10, - cacheRead: 0.2, - cacheWrite: 2.5, + input: 2.2, + output: 11, + cacheRead: 0.22, + cacheWrite: 2.75, }, contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, - "deepseek.r1-v1:0": { - id: "deepseek.r1-v1:0", - name: "DeepSeek-R1", + "ca.amazon.nova-lite-v1:0": { + id: "ca.amazon.nova-lite-v1:0", + name: "Nova Lite (CA)", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: true, - input: ["text"], + reasoning: false, + input: ["text", "image"], cost: { - input: 1.35, - output: 5.4, - cacheRead: 0, - cacheWrite: 0, + input: 0.064, + output: 0.256, + cacheRead: 0.016, + cacheWrite: 0.064, }, - contextWindow: 128000, - maxTokens: 32768, + contextWindow: 300000, + maxTokens: 10000, } satisfies Model<"bedrock-converse-stream">, "deepseek.v3-v1:0": { id: "deepseek.v3-v1:0", @@ -390,7 +528,7 @@ export const AMAZON_BEDROCK_MODELS = { } satisfies Model<"bedrock-converse-stream">, "deepseek.v3.2": { id: "deepseek.v3.2", - name: "DeepSeek-V3.2", + name: "DeepSeek V3.2", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -405,6 +543,74 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 163840, maxTokens: 81920, } satisfies Model<"bedrock-converse-stream">, + "eu.amazon.nova-2-lite-v1:0": { + id: "eu.amazon.nova-2-lite-v1:0", + name: "Nova 2 Lite (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.374, + output: 3.157, + cacheRead: 0.0935, + cacheWrite: 0.374, + }, + contextWindow: 1000000, + maxTokens: 65535, + } satisfies Model<"bedrock-converse-stream">, + "eu.amazon.nova-lite-v1:0": { + id: "eu.amazon.nova-lite-v1:0", + name: "Nova Lite (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.069, + output: 0.276, + cacheRead: 0.01725, + cacheWrite: 0.069, + }, + contextWindow: 300000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "eu.amazon.nova-micro-v1:0": { + id: "eu.amazon.nova-micro-v1:0", + name: "Nova Micro (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: false, + input: ["text"], + cost: { + input: 0.04, + output: 0.16, + cacheRead: 0.01, + cacheWrite: 0.04, + }, + contextWindow: 128000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "eu.amazon.nova-pro-v1:0": { + id: "eu.amazon.nova-pro-v1:0", + name: "Nova Pro (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.92, + output: 3.68, + cacheRead: 0.23, + cacheWrite: 0.92, + }, + contextWindow: 300000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, "eu.anthropic.claude-fable-5": { id: "eu.anthropic.claude-fable-5", name: "Claude Fable 5 (EU)", @@ -511,6 +717,40 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "eu.anthropic.claude-opus-5": { + id: "eu.anthropic.claude-opus-5", + name: "Claude Opus 5 (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "eu.anthropic.claude-sonnet-4-20250514-v1:0": { + id: "eu.anthropic.claude-sonnet-4-20250514-v1:0", + name: "Claude Sonnet 4 (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 3.75, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"bedrock-converse-stream">, "eu.anthropic.claude-sonnet-4-5-20250929-v1:0": { id: "eu.anthropic.claude-sonnet-4-5-20250929-v1:0", name: "Claude Sonnet 4.5 (EU)", @@ -544,7 +784,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 4.125, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "eu.anthropic.claude-sonnet-5": { id: "eu.anthropic.claude-sonnet-5", @@ -564,20 +804,72 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, - "global.anthropic.claude-fable-5": { - id: "global.anthropic.claude-fable-5", - name: "Claude Fable 5 (Global)", + "eu.mistral.pixtral-large-2502-v1:0": { + id: "eu.mistral.pixtral-large-2502-v1:0", + name: "Pixtral Large (25.02) (EU)", api: "bedrock-converse-stream", provider: "amazon-bedrock", - baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: true, - thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: false, input: ["text", "image"], cost: { - input: 10, - output: 50, - cacheRead: 1, - cacheWrite: 12.5, + input: 2, + output: 6, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 8192, + } satisfies Model<"bedrock-converse-stream">, + "global.amazon.nova-2-lite-v1:0": { + id: "global.amazon.nova-2-lite-v1:0", + name: "Nova 2 Lite (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.3, + output: 2.5, + cacheRead: 0.075, + cacheWrite: 0.3, + }, + contextWindow: 1000000, + maxTokens: 65535, + } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-fable-5": { + id: "global.anthropic.claude-fable-5", + name: "Claude Fable 5 (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-fable-5-1": { + id: "global.anthropic.claude-fable-5-1", + name: "Claude Fable 5.1 (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, }, contextWindow: 1000000, maxTokens: 128000, @@ -670,6 +962,40 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-opus-5": { + id: "global.anthropic.claude-opus-5", + name: "Claude Opus 5 (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-sonnet-4-20250514-v1:0": { + id: "global.anthropic.claude-sonnet-4-20250514-v1:0", + name: "Claude Sonnet 4 (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 3.75, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"bedrock-converse-stream">, "global.anthropic.claude-sonnet-4-5-20250929-v1:0": { id: "global.anthropic.claude-sonnet-4-5-20250929-v1:0", name: "Claude Sonnet 4.5 (Global)", @@ -703,7 +1029,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 3.75, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "global.anthropic.claude-sonnet-5": { id: "global.anthropic.claude-sonnet-5", @@ -723,30 +1049,135 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, - "google.gemma-3-27b-it": { - id: "google.gemma-3-27b-it", - name: "Google Gemma 3 27B Instruct", + "global.openai.gpt-5.6-luna": { + id: "global.openai.gpt-5.6-luna", + name: "GPT-5.6 Luna (Global)", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: false, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 0.12, - output: 0.2, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.openai.gpt-5.6-sol": { + id: "global.openai.gpt-5.6-sol", + name: "GPT-5.6 Sol (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.openai.gpt-5.6-terra": { + id: "global.openai.gpt-5.6-terra", + name: "GPT-5.6 Terra (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.openai.gpt-6-astra": { + id: "global.openai.gpt-6-astra", + name: "GPT-6 Astra (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.xai.grok-4.6": { + id: "global.xai.grok-4.6", + name: "Grok 4.6 (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"bedrock-converse-stream">, + "google.gemma-4-26b-a4b": { + id: "google.gemma-4-26b-a4b", + name: "Gemma 4 26B A4B IT", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.13, + output: 0.4, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 202752, - maxTokens: 8192, + contextWindow: 262144, + maxTokens: 32768, } satisfies Model<"bedrock-converse-stream">, - "google.gemma-3-4b-it": { - id: "google.gemma-3-4b-it", - name: "Gemma 3 4B IT", + "google.gemma-4-31b": { + id: "google.gemma-4-31b", + name: "Gemma 4 31B IT", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: false, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.14, + output: 0.4, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"bedrock-converse-stream">, + "google.gemma-4-e2b": { + id: "google.gemma-4-e2b", + name: "Gemma 4 E2B IT", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, input: ["text", "image"], cost: { input: 0.04, @@ -754,8 +1185,61 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 131072, + maxTokens: 8192, + } satisfies Model<"bedrock-converse-stream">, + "in.openai.gpt-5.6-luna": { + id: "in.openai.gpt-5.6-luna", + name: "GPT-5.6 Luna (India)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.22, + output: 1.32, + cacheRead: 0.022, + cacheWrite: 0.275, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "in.openai.gpt-5.6-terra": { + id: "in.openai.gpt-5.6-terra", + name: "GPT-5.6 Terra (India)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 2.2, + output: 13.2, + cacheRead: 0.22, + cacheWrite: 2.75, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "jp.amazon.nova-2-lite-v1:0": { + id: "jp.amazon.nova-2-lite-v1:0", + name: "Nova 2 Lite (JP)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.396, + output: 3.311, + cacheRead: 0.099, + cacheWrite: 0.396, + }, + contextWindow: 1000000, + maxTokens: 65535, } satisfies Model<"bedrock-converse-stream">, "jp.anthropic.claude-haiku-4-5-20251001-v1:0": { id: "jp.anthropic.claude-haiku-4-5-20251001-v1:0", @@ -766,10 +1250,10 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 1.1, + output: 5.5, + cacheRead: 0.11, + cacheWrite: 1.375, }, contextWindow: 200000, maxTokens: 64000, @@ -784,10 +1268,10 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -802,10 +1286,27 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "jp.anthropic.claude-opus-5": { + id: "jp.anthropic.claude-opus-5", + name: "Claude Opus 5 (JP)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -819,10 +1320,10 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 3.3, + output: 16.5, + cacheRead: 0.33, + cacheWrite: 4.125, }, contextWindow: 200000, maxTokens: 64000, @@ -837,13 +1338,13 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"max":"max"}, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 3.3, + output: 16.5, + cacheRead: 0.33, + cacheWrite: 4.125, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "jp.anthropic.claude-sonnet-5": { id: "jp.anthropic.claude-sonnet-5", @@ -855,10 +1356,10 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2, - output: 10, - cacheRead: 0.2, - cacheWrite: 2.5, + input: 2.2, + output: 11, + cacheRead: 0.22, + cacheWrite: 2.75, }, contextWindow: 1000000, maxTokens: 128000, @@ -929,7 +1430,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 16384, + maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "meta.llama4-scout-17b-instruct-v1:0": { id: "meta.llama4-scout-17b-instruct-v1:0", @@ -945,12 +1446,12 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 3500000, - maxTokens: 16384, + contextWindow: 10000000, + maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "minimax.minimax-m2": { id: "minimax.minimax-m2", - name: "MiniMax M2", + name: "MiniMax-M2", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -967,7 +1468,7 @@ export const AMAZON_BEDROCK_MODELS = { } satisfies Model<"bedrock-converse-stream">, "minimax.minimax-m2.1": { id: "minimax.minimax-m2.1", - name: "MiniMax M2.1", + name: "MiniMax-M2.1", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -984,7 +1485,7 @@ export const AMAZON_BEDROCK_MODELS = { } satisfies Model<"bedrock-converse-stream">, "minimax.minimax-m2.5": { id: "minimax.minimax-m2.5", - name: "MiniMax M2.5", + name: "MiniMax-M2.5", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -1040,7 +1541,7 @@ export const AMAZON_BEDROCK_MODELS = { provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.2, output: 0.2, @@ -1074,7 +1575,7 @@ export const AMAZON_BEDROCK_MODELS = { provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.15, output: 0.15, @@ -1132,7 +1633,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 32768, maxTokens: 4096, } satisfies Model<"bedrock-converse-stream">, "mistral.voxtral-small-24b-2507": { @@ -1144,12 +1645,12 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.15, - output: 0.35, + input: 0.1, + output: 0.3, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 32000, + contextWindow: 32768, maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "moonshot.kimi-k2-thinking": { @@ -1184,7 +1685,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 0, }, contextWindow: 262143, - maxTokens: 16000, + maxTokens: 16384, } satisfies Model<"bedrock-converse-stream">, "nvidia.nemotron-nano-12b-v2": { id: "nvidia.nemotron-nano-12b-v2", @@ -1201,7 +1702,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 0, }, contextWindow: 128000, - maxTokens: 4096, + maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "nvidia.nemotron-nano-3-30b": { id: "nvidia.nemotron-nano-3-30b", @@ -1217,8 +1718,8 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 262144, + maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "nvidia.nemotron-nano-9b-v2": { id: "nvidia.nemotron-nano-9b-v2", @@ -1234,8 +1735,8 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 131072, + maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "nvidia.nemotron-super-3-120b": { id: "nvidia.nemotron-super-3-120b", @@ -1300,12 +1801,12 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.22, + output: 1.32, + cacheRead: 0.022, + cacheWrite: 0.275, }, - contextWindow: 272000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-5.6-sol": { @@ -1318,12 +1819,12 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 4.4, + output: 22, + cacheRead: 0.44, + cacheWrite: 5.5, }, - contextWindow: 272000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-5.6-terra": { @@ -1336,12 +1837,29 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 2.2, + output: 13.2, + cacheRead: 0.22, + cacheWrite: 2.75, }, - contextWindow: 272000, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "openai.gpt-6-astra": { + id: "openai.gpt-6-astra", + name: "GPT-6 Astra", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 11, + output: 55, + cacheRead: 1.1, + cacheWrite: 13.75, + }, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-oss-120b": { @@ -1418,7 +1936,7 @@ export const AMAZON_BEDROCK_MODELS = { api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: false, + reasoning: true, input: ["text"], cost: { input: 0.15, @@ -1435,7 +1953,7 @@ export const AMAZON_BEDROCK_MODELS = { api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: false, + reasoning: true, input: ["text"], cost: { input: 0.07, @@ -1448,7 +1966,7 @@ export const AMAZON_BEDROCK_MODELS = { } satisfies Model<"bedrock-converse-stream">, "qwen.qwen3-235b-a22b-2507-v1:0": { id: "qwen.qwen3-235b-a22b-2507-v1:0", - name: "Qwen3 235B A22B 2507", + name: "Qwen3 235B-A22B Instruct 2507", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -1465,7 +1983,7 @@ export const AMAZON_BEDROCK_MODELS = { } satisfies Model<"bedrock-converse-stream">, "qwen.qwen3-32b-v1:0": { id: "qwen.qwen3-32b-v1:0", - name: "Qwen3 32B (dense)", + name: "Qwen3 32B", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -1477,12 +1995,12 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 16384, + contextWindow: 32768, maxTokens: 16384, } satisfies Model<"bedrock-converse-stream">, "qwen.qwen3-coder-30b-a3b-v1:0": { id: "qwen.qwen3-coder-30b-a3b-v1:0", - name: "Qwen3 Coder 30B A3B Instruct", + name: "Qwen3-Coder 30B-A3B Instruct", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -1499,14 +2017,14 @@ export const AMAZON_BEDROCK_MODELS = { } satisfies Model<"bedrock-converse-stream">, "qwen.qwen3-coder-480b-a35b-v1:0": { id: "qwen.qwen3-coder-480b-a35b-v1:0", - name: "Qwen3 Coder 480B A35B Instruct", + name: "Qwen3-Coder 480B-A35B Instruct", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", reasoning: false, input: ["text"], cost: { - input: 0.22, + input: 0.45, output: 1.8, cacheRead: 0, cacheWrite: 0, @@ -1520,54 +2038,191 @@ export const AMAZON_BEDROCK_MODELS = { api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: true, + reasoning: false, input: ["text"], cost: { - input: 0.22, - output: 1.8, + input: 0.5, + output: 1.2, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, + contextWindow: 262144, maxTokens: 65536, } satisfies Model<"bedrock-converse-stream">, "qwen.qwen3-next-80b-a3b": { id: "qwen.qwen3-next-80b-a3b", - name: "Qwen/Qwen3-Next-80B-A3B-Instruct", + name: "Qwen3-Next 80B-A3B Instruct", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", reasoning: false, input: ["text"], cost: { - input: 0.14, - output: 1.4, + input: 0.15, + output: 1.2, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262000, + contextWindow: 262144, maxTokens: 262000, } satisfies Model<"bedrock-converse-stream">, "qwen.qwen3-vl-235b-a22b": { id: "qwen.qwen3-vl-235b-a22b", - name: "Qwen/Qwen3-VL-235B-A22B-Instruct", + name: "Qwen3 VL 235B A22B Instruct", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", reasoning: false, input: ["text", "image"], cost: { - input: 0.3, - output: 1.5, + input: 0.53, + output: 2.66, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262000, + } satisfies Model<"bedrock-converse-stream">, + "us-gov.openai.gpt-oss-120b-1:0": { + id: "us-gov.openai.gpt-oss-120b-1:0", + name: "gpt-oss-120b (GovCloud)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text"], + cost: { + input: 0.18, + output: 0.72, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"bedrock-converse-stream">, + "us-gov.openai.gpt-oss-20b-1:0": { + id: "us-gov.openai.gpt-oss-20b-1:0", + name: "gpt-oss-20b (GovCloud)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text"], + cost: { + input: 0.084, + output: 0.36, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262000, - maxTokens: 262000, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"bedrock-converse-stream">, + "us.amazon.nova-2-lite-v1:0": { + id: "us.amazon.nova-2-lite-v1:0", + name: "Nova 2 Lite (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.33, + output: 2.75, + cacheRead: 0.0825, + cacheWrite: 0.33, + }, + contextWindow: 1000000, + maxTokens: 65535, + } satisfies Model<"bedrock-converse-stream">, + "us.amazon.nova-lite-v1:0": { + id: "us.amazon.nova-lite-v1:0", + name: "Nova Lite (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.06, + output: 0.24, + cacheRead: 0.015, + cacheWrite: 0.06, + }, + contextWindow: 300000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "us.amazon.nova-micro-v1:0": { + id: "us.amazon.nova-micro-v1:0", + name: "Nova Micro (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text"], + cost: { + input: 0.035, + output: 0.14, + cacheRead: 0.00875, + cacheWrite: 0.035, + }, + contextWindow: 128000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "us.amazon.nova-premier-v1:0": { + id: "us.amazon.nova-premier-v1:0", + name: "Nova Premier (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 2.5, + output: 12.5, + cacheRead: 0.625, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "us.amazon.nova-pro-v1:0": { + id: "us.amazon.nova-pro-v1:0", + name: "Nova Pro (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.8, + output: 3.2, + cacheRead: 0.2, + cacheWrite: 0.8, + }, + contextWindow: 300000, + maxTokens: 10000, + } satisfies Model<"bedrock-converse-stream">, + "us.anthropic.claude-fable-5": { + id: "us.anthropic.claude-fable-5", + name: "Claude Fable 5 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 11, + output: 55, + cacheRead: 1.1, + cacheWrite: 13.75, + }, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, - "us.anthropic.claude-fable-5": { - id: "us.anthropic.claude-fable-5", - name: "Claude Fable 5 (US)", + "us.anthropic.claude-fable-5-1": { + id: "us.anthropic.claude-fable-5-1", + name: "Claude Fable 5.1 (US)", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -1575,10 +2230,10 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 10, - output: 50, - cacheRead: 1, - cacheWrite: 12.5, + input: 11, + output: 55, + cacheRead: 0.275, + cacheWrite: 13.75, }, contextWindow: 1000000, maxTokens: 128000, @@ -1592,10 +2247,10 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 1.1, + output: 5.5, + cacheRead: 0.11, + cacheWrite: 1.375, }, contextWindow: 200000, maxTokens: 64000, @@ -1626,10 +2281,10 @@ export const AMAZON_BEDROCK_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 200000, maxTokens: 64000, @@ -1644,10 +2299,10 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -1662,10 +2317,10 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, @@ -1680,17 +2335,34 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, }, contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, - "us.anthropic.claude-sonnet-4-5-20250929-v1:0": { - id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0", - name: "Claude Sonnet 4.5 (US)", + "us.anthropic.claude-opus-5": { + id: "us.anthropic.claude-opus-5", + name: "Claude Opus 5 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5.5, + output: 27.5, + cacheRead: 0.55, + cacheWrite: 6.875, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.anthropic.claude-sonnet-4-20250514-v1:0": { + id: "us.anthropic.claude-sonnet-4-20250514-v1:0", + name: "Claude Sonnet 4 (US)", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", @@ -1705,6 +2377,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "us.anthropic.claude-sonnet-4-5-20250929-v1:0": { + id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0", + name: "Claude Sonnet 4.5 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 3.3, + output: 16.5, + cacheRead: 0.33, + cacheWrite: 4.125, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"bedrock-converse-stream">, "us.anthropic.claude-sonnet-4-6": { id: "us.anthropic.claude-sonnet-4-6", name: "Claude Sonnet 4.6 (US)", @@ -1715,13 +2404,13 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"max":"max"}, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 3.3, + output: 16.5, + cacheRead: 0.33, + cacheWrite: 4.125, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "us.anthropic.claude-sonnet-5": { id: "us.anthropic.claude-sonnet-5", @@ -1733,30 +2422,64 @@ export const AMAZON_BEDROCK_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2, - output: 10, - cacheRead: 0.2, - cacheWrite: 2.5, + input: 2.2, + output: 11, + cacheRead: 0.22, + cacheWrite: 2.75, }, contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, - "us.deepseek.r1-v1:0": { - id: "us.deepseek.r1-v1:0", - name: "DeepSeek-R1 (US)", + "us.meta.llama3-1-70b-instruct-v1:0": { + id: "us.meta.llama3-1-70b-instruct-v1:0", + name: "Llama 3.1 70B Instruct (US)", api: "bedrock-converse-stream", provider: "amazon-bedrock", baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", - reasoning: true, + reasoning: false, input: ["text"], cost: { - input: 1.35, - output: 5.4, + input: 0.72, + output: 0.72, cacheRead: 0, cacheWrite: 0, }, contextWindow: 128000, - maxTokens: 32768, + maxTokens: 4096, + } satisfies Model<"bedrock-converse-stream">, + "us.meta.llama3-1-8b-instruct-v1:0": { + id: "us.meta.llama3-1-8b-instruct-v1:0", + name: "Llama 3.1 8B Instruct (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text"], + cost: { + input: 0.22, + output: 0.22, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 4096, + } satisfies Model<"bedrock-converse-stream">, + "us.meta.llama3-3-70b-instruct-v1:0": { + id: "us.meta.llama3-3-70b-instruct-v1:0", + name: "Llama 3.3 70B Instruct (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text"], + cost: { + input: 0.72, + output: 0.72, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 4096, } satisfies Model<"bedrock-converse-stream">, "us.meta.llama4-maverick-17b-instruct-v1:0": { id: "us.meta.llama4-maverick-17b-instruct-v1:0", @@ -1773,7 +2496,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 16384, + maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "us.meta.llama4-scout-17b-instruct-v1:0": { id: "us.meta.llama4-scout-17b-instruct-v1:0", @@ -1789,8 +2512,147 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 3500000, - maxTokens: 16384, + contextWindow: 10000000, + maxTokens: 8192, + } satisfies Model<"bedrock-converse-stream">, + "us.mistral.pixtral-large-2502-v1:0": { + id: "us.mistral.pixtral-large-2502-v1:0", + name: "Pixtral Large (25.02) (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: false, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 8192, + } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-5.6-luna": { + id: "us.openai.gpt-5.6-luna", + name: "GPT-5.6 Luna (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.22, + output: 1.32, + cacheRead: 0.022, + cacheWrite: 0.275, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-5.6-sol": { + id: "us.openai.gpt-5.6-sol", + name: "GPT-5.6 Sol (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 4.4, + output: 22, + cacheRead: 0.44, + cacheWrite: 5.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-5.6-terra": { + id: "us.openai.gpt-5.6-terra", + name: "GPT-5.6 Terra (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 2.2, + output: 13.2, + cacheRead: 0.22, + cacheWrite: 2.75, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-6-astra": { + id: "us.openai.gpt-6-astra", + name: "GPT-6 Astra (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 11, + output: 55, + cacheRead: 1.1, + cacheWrite: 13.75, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.writer.palmyra-x4-v1:0": { + id: "us.writer.palmyra-x4-v1:0", + name: "Palmyra X4 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text"], + cost: { + input: 2.5, + output: 10, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 122880, + maxTokens: 8192, + } satisfies Model<"bedrock-converse-stream">, + "us.writer.palmyra-x5-v1:0": { + id: "us.writer.palmyra-x5-v1:0", + name: "Palmyra X5 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text"], + cost: { + input: 0.6, + output: 6, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1040000, + maxTokens: 8192, + } satisfies Model<"bedrock-converse-stream">, + "us.xai.grok-4.6": { + id: "us.xai.grok-4.6", + name: "Grok 4.6 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2.2, + output: 6.6, + cacheRead: 0.55, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, } satisfies Model<"bedrock-converse-stream">, "writer.palmyra-x4-v1:0": { id: "writer.palmyra-x4-v1:0", @@ -1843,6 +2705,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, + "xai.grok-4.6": { + id: "xai.grok-4.6", + name: "Grok 4.6", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2.2, + output: 6.6, + cacheRead: 0.55, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"bedrock-converse-stream">, "zai.glm-4.7": { id: "zai.glm-4.7", name: "GLM-4.7", @@ -1892,6 +2771,6 @@ export const AMAZON_BEDROCK_MODELS = { cacheWrite: 0, }, contextWindow: 202752, - maxTokens: 101376, + maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, } as const; diff --git a/packages/ai/src/providers/anthropic.models.ts b/packages/ai/src/providers/anthropic.models.ts index 23c79b3..662b539 100644 --- a/packages/ai/src/providers/anthropic.models.ts +++ b/packages/ai/src/providers/anthropic.models.ts @@ -23,6 +23,25 @@ export const ANTHROPIC_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-fable-5-1": { + id: "claude-fable-5-1", + name: "Claude Fable 5.1", + api: "anthropic-messages", + provider: "anthropic", + baseUrl: "https://api.anthropic.com", + compat: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-haiku-4-5": { id: "claude-haiku-4-5", name: "Claude Haiku 4.5 (latest)", @@ -57,40 +76,6 @@ export const ANTHROPIC_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "claude-opus-4-1": { - id: "claude-opus-4-1", - name: "Claude Opus 4.1 (latest)", - api: "anthropic-messages", - provider: "anthropic", - baseUrl: "https://api.anthropic.com", - reasoning: true, - input: ["text", "image"], - cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, - }, - contextWindow: 200000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, - "claude-opus-4-1-20250805": { - id: "claude-opus-4-1-20250805", - name: "Claude Opus 4.1", - api: "anthropic-messages", - provider: "anthropic", - baseUrl: "https://api.anthropic.com", - reasoning: true, - input: ["text", "image"], - cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, - }, - contextWindow: 200000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, "claude-opus-4-5": { id: "claude-opus-4-5", name: "Claude Opus 4.5 (latest)", @@ -182,6 +167,23 @@ export const ANTHROPIC_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-opus-5": { + id: "claude-opus-5", + name: "Claude Opus 5", + api: "anthropic-messages", + provider: "anthropic", + baseUrl: "https://api.anthropic.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-sonnet-4-5": { id: "claude-sonnet-4-5", name: "Claude Sonnet 4.5 (latest)", diff --git a/packages/ai/src/providers/azure-openai-responses.models.ts b/packages/ai/src/providers/azure-openai-responses.models.ts index 96f00b2..a2759e8 100644 --- a/packages/ai/src/providers/azure-openai-responses.models.ts +++ b/packages/ai/src/providers/azure-openai-responses.models.ts @@ -210,24 +210,6 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"azure-openai-responses">, - "gpt-5-codex": { - id: "gpt-5-codex", - name: "GPT-5-Codex", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"azure-openai-responses">, "gpt-5-mini": { id: "gpt-5-mini", name: "GPT-5 Mini", @@ -300,78 +282,6 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"azure-openai-responses">, - "gpt-5.1-chat-latest": { - id: "gpt-5.1-chat-latest", - name: "GPT-5.1 Chat", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 16384, - } satisfies Model<"azure-openai-responses">, - "gpt-5.1-codex": { - id: "gpt-5.1-codex", - name: "GPT-5.1 Codex", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"azure-openai-responses">, - "gpt-5.1-codex-max": { - id: "gpt-5.1-codex-max", - name: "GPT-5.1 Codex Max", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"azure-openai-responses">, - "gpt-5.1-codex-mini": { - id: "gpt-5.1-codex-mini", - name: "GPT-5.1 Codex mini", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 0.25, - output: 2, - cacheRead: 0.025, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"azure-openai-responses">, "gpt-5.2": { id: "gpt-5.2", name: "GPT-5.2", @@ -408,24 +318,6 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"azure-openai-responses">, - "gpt-5.2-codex": { - id: "gpt-5.2-codex", - name: "GPT-5.2 Codex", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - thinkingLevelMap: {"off":null,"xhigh":"xhigh"}, - input: ["text", "image"], - cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"azure-openai-responses">, "gpt-5.2-pro": { id: "gpt-5.2-pro", name: "GPT-5.2 Pro", @@ -616,10 +508,10 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, contextWindow: 1050000, maxTokens: 128000, @@ -634,10 +526,10 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -652,10 +544,27 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"azure-openai-responses">, + "gpt-6-astra": { + id: "gpt-6-astra", + name: "GPT-6 Astra", + api: "azure-openai-responses", + provider: "azure-openai-responses", + baseUrl: "", + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, }, contextWindow: 1050000, maxTokens: 128000, @@ -728,23 +637,6 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"azure-openai-responses">, - "o3-deep-research": { - id: "o3-deep-research", - name: "o3-deep-research", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - input: ["text", "image"], - cost: { - input: 10, - output: 40, - cacheRead: 2.5, - cacheWrite: 0, - }, - contextWindow: 200000, - maxTokens: 100000, - } satisfies Model<"azure-openai-responses">, "o3-mini": { id: "o3-mini", name: "o3-mini", @@ -796,21 +688,4 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"azure-openai-responses">, - "o4-mini-deep-research": { - id: "o4-mini-deep-research", - name: "o4-mini-deep-research", - api: "azure-openai-responses", - provider: "azure-openai-responses", - baseUrl: "", - reasoning: true, - input: ["text", "image"], - cost: { - input: 2, - output: 8, - cacheRead: 0.5, - cacheWrite: 0, - }, - contextWindow: 200000, - maxTokens: 100000, - } satisfies Model<"azure-openai-responses">, } as const; diff --git a/packages/ai/src/providers/cerebras.models.ts b/packages/ai/src/providers/cerebras.models.ts index 7428d53..da24271 100644 --- a/packages/ai/src/providers/cerebras.models.ts +++ b/packages/ai/src/providers/cerebras.models.ts @@ -4,24 +4,6 @@ import type { Model } from "../types.ts"; export const CEREBRAS_MODELS = { - "gemma-4-31b": { - id: "gemma-4-31b", - name: "Gemma 4 31B IT", - api: "openai-completions", - provider: "cerebras", - baseUrl: "https://api.cerebras.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.99, - output: 1.49, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 40960, - } satisfies Model<"openai-completions">, "gpt-oss-120b": { id: "gpt-oss-120b", name: "GPT OSS 120B", @@ -40,22 +22,22 @@ export const CEREBRAS_MODELS = { contextWindow: 131072, maxTokens: 40960, } satisfies Model<"openai-completions">, - "zai-glm-4.7": { - id: "zai-glm-4.7", - name: "Z.AI GLM-4.7", + "qwen-3.8-27b": { + id: "qwen-3.8-27b", + name: "Qwen3.8 27B", api: "openai-completions", provider: "cerebras", baseUrl: "https://api.cerebras.ai/v1", compat: {"supportsStore":false,"supportsDeveloperRole":false}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 2.25, - output: 2.75, - cacheRead: 2.25, + input: 0.99, + output: 1.49, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 40960, + contextWindow: 65536, + maxTokens: 32768, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/cloudflare-ai-gateway.models.ts b/packages/ai/src/providers/cloudflare-ai-gateway.models.ts index dd04956..a2cee6a 100644 --- a/packages/ai/src/providers/cloudflare-ai-gateway.models.ts +++ b/packages/ai/src/providers/cloudflare-ai-gateway.models.ts @@ -4,117 +4,28 @@ import type { Model } from "../types.ts"; export const CLOUDFLARE_AI_GATEWAY_MODELS = { - "claude-3-5-haiku": { - id: "claude-3-5-haiku", - name: "Claude Haiku 3.5 (latest)", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.8, - output: 4, - cacheRead: 0.08, - cacheWrite: 1, - }, - contextWindow: 200000, - maxTokens: 8192, - } satisfies Model<"anthropic-messages">, - "claude-3-haiku": { - id: "claude-3-haiku", - name: "Claude Haiku 3", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.25, - output: 1.25, - cacheRead: 0.03, - cacheWrite: 0.3, - }, - contextWindow: 200000, - maxTokens: 4096, - } satisfies Model<"anthropic-messages">, - "claude-3-opus": { - id: "claude-3-opus", - name: "Claude Opus 3", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, - }, - contextWindow: 200000, - maxTokens: 4096, - } satisfies Model<"anthropic-messages">, - "claude-3-sonnet": { - id: "claude-3-sonnet", - name: "Claude Sonnet 3", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 0.3, - }, - contextWindow: 200000, - maxTokens: 4096, - } satisfies Model<"anthropic-messages">, - "claude-3.5-haiku": { - id: "claude-3.5-haiku", - name: "Claude Haiku 3.5 (latest)", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.8, - output: 4, - cacheRead: 0.08, - cacheWrite: 1, - }, - contextWindow: 200000, - maxTokens: 8192, - } satisfies Model<"anthropic-messages">, - "claude-3.5-sonnet": { - id: "claude-3.5-sonnet", - name: "Claude Sonnet 3.5 v2", + "claude-fable-5": { + id: "claude-fable-5", + name: "Claude Fable 5", api: "anthropic-messages", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: false, + compat: {"sendSessionAffinityHeaders":true,"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, }, - contextWindow: 200000, - maxTokens: 8192, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-fable-5": { - id: "claude-fable-5", - name: "Claude Fable 5", + "claude-fable-5.1": { + id: "claude-fable-5.1", + name: "Claude Fable 5.1", api: "anthropic-messages", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", @@ -125,14 +36,14 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cost: { input: 10, output: 50, - cacheRead: 1, + cacheRead: 0.25, cacheWrite: 12.5, }, contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-haiku-4-5": { - id: "claude-haiku-4-5", + "claude-haiku-4.5": { + id: "claude-haiku-4.5", name: "Claude Haiku 4.5 (latest)", api: "anthropic-messages", provider: "cloudflare-ai-gateway", @@ -149,44 +60,8 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "claude-opus-4": { - id: "claude-opus-4", - name: "Claude Opus 4 (latest)", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, - }, - contextWindow: 200000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, - "claude-opus-4-1": { - id: "claude-opus-4-1", - name: "Claude Opus 4.1 (latest)", - api: "anthropic-messages", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - compat: {"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, - }, - contextWindow: 200000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, - "claude-opus-4-5": { - id: "claude-opus-4-5", + "claude-opus-4.5": { + id: "claude-opus-4.5", name: "Claude Opus 4.5 (latest)", api: "anthropic-messages", provider: "cloudflare-ai-gateway", @@ -203,9 +78,9 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "claude-opus-4-6": { - id: "claude-opus-4-6", - name: "Claude Opus 4.6 (latest)", + "claude-opus-4.6": { + id: "claude-opus-4.6", + name: "Claude Opus 4.6", api: "anthropic-messages", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", @@ -222,8 +97,8 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-opus-4-7": { - id: "claude-opus-4-7", + "claude-opus-4.7": { + id: "claude-opus-4.7", name: "Claude Opus 4.7", api: "anthropic-messages", provider: "cloudflare-ai-gateway", @@ -241,8 +116,8 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-opus-4-8": { - id: "claude-opus-4-8", + "claude-opus-4.8": { + id: "claude-opus-4.8", name: "Claude Opus 4.8", api: "anthropic-messages", provider: "cloudflare-ai-gateway", @@ -260,9 +135,9 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-sonnet-4": { - id: "claude-sonnet-4", - name: "Claude Sonnet 4 (latest)", + "claude-opus-5": { + id: "claude-opus-5", + name: "Claude Opus 5", api: "anthropic-messages", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", @@ -270,16 +145,16 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, }, - contextWindow: 200000, - maxTokens: 64000, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-sonnet-4-5": { - id: "claude-sonnet-4-5", + "claude-sonnet-4.5": { + id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5 (latest)", api: "anthropic-messages", provider: "cloudflare-ai-gateway", @@ -293,11 +168,11 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cacheRead: 0.3, cacheWrite: 3.75, }, - contextWindow: 200000, + contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "claude-sonnet-4-6": { - id: "claude-sonnet-4-6", + "claude-sonnet-4.6": { + id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6", api: "anthropic-messages", provider: "cloudflare-ai-gateway", @@ -313,7 +188,7 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cacheWrite: 3.75, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, "claude-sonnet-5": { id: "claude-sonnet-5", @@ -334,39 +209,56 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "gpt-4": { - id: "gpt-4", - name: "GPT-4", + "gpt-4.1": { + id: "gpt-4.1", + name: "GPT-4.1", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { - input: 30, - output: 60, - cacheRead: 0, + input: 2, + output: 8, + cacheRead: 0.5, cacheWrite: 0, }, - contextWindow: 8192, - maxTokens: 8192, + contextWindow: 1047576, + maxTokens: 32768, } satisfies Model<"openai-responses">, - "gpt-4-turbo": { - id: "gpt-4-turbo", - name: "GPT-4 Turbo", + "gpt-4.1-mini": { + id: "gpt-4.1-mini", + name: "GPT-4.1 mini", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", reasoning: false, input: ["text", "image"], cost: { - input: 10, - output: 30, - cacheRead: 0, + input: 0.4, + output: 1.6, + cacheRead: 0.1, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"openai-responses">, + "gpt-4.1-nano": { + id: "gpt-4.1-nano", + name: "GPT-4.1 nano", + api: "openai-responses", + provider: "cloudflare-ai-gateway", + baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.4, + cacheRead: 0.025, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 32768, } satisfies Model<"openai-responses">, "gpt-4o": { id: "gpt-4o", @@ -377,9 +269,9 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 2.5, - output: 10, - cacheRead: 1.25, + input: 1.25, + output: 5, + cacheRead: 0.625, cacheWrite: 0, }, contextWindow: 128000, @@ -394,17 +286,17 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 0.15, - output: 0.6, - cacheRead: 0.08, + input: 0.075, + output: 0.3, + cacheRead: 0.0375, cacheWrite: 0, }, contextWindow: 128000, maxTokens: 16384, } satisfies Model<"openai-responses">, - "gpt-5.1": { - id: "gpt-5.1", - name: "GPT-5.1", + "gpt-5": { + id: "gpt-5", + name: "GPT-5", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", @@ -414,15 +306,51 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cost: { input: 1.25, output: 10, - cacheRead: 0.13, + cacheRead: 0.125, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-5-mini": { + id: "gpt-5-mini", + name: "GPT-5 Mini", + api: "openai-responses", + provider: "cloudflare-ai-gateway", + baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.25, + output: 2, + cacheRead: 0.025, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-5-nano": { + id: "gpt-5-nano", + name: "GPT-5 Nano", + api: "openai-responses", + provider: "cloudflare-ai-gateway", + baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.4, + cacheRead: 0.005, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 128000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "gpt-5.1-codex": { - id: "gpt-5.1-codex", - name: "GPT-5.1 Codex", + "gpt-5.1": { + id: "gpt-5.1", + name: "GPT-5.1", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", @@ -435,12 +363,12 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cacheRead: 0.125, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 128000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "gpt-5.2": { - id: "gpt-5.2", - name: "GPT-5.2", + "gpt-5.4": { + id: "gpt-5.4", + name: "GPT-5.4", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", @@ -448,17 +376,17 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 2.5, + output: 15, + cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "gpt-5.2-codex": { - id: "gpt-5.2-codex", - name: "GPT-5.2 Codex", + "gpt-5.4-mini": { + id: "gpt-5.4-mini", + name: "GPT-5.4 mini", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", @@ -466,17 +394,17 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 0.75, + output: 4.5, + cacheRead: 0.075, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 128000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "gpt-5.3-codex": { - id: "gpt-5.3-codex", - name: "GPT-5.3 Codex", + "gpt-5.4-nano": { + id: "gpt-5.4-nano", + name: "GPT-5.4 nano", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", @@ -484,17 +412,17 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 0.2, + output: 1.25, + cacheRead: 0.02, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 128000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "gpt-5.4": { - id: "gpt-5.4", - name: "GPT-5.4", + "gpt-5.4-pro": { + id: "gpt-5.4-pro", + name: "GPT-5.4 Pro", api: "openai-responses", provider: "cloudflare-ai-gateway", baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", @@ -502,12 +430,12 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, + input: 30, + output: 180, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1050000, + contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-responses">, "gpt-5.5": { @@ -522,10 +450,28 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cost: { input: 5, output: 30, - cacheRead: 0.5, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1050000, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-5.5-pro": { + id: "gpt-5.5-pro", + name: "GPT-5.5 Pro", + api: "openai-responses", + provider: "cloudflare-ai-gateway", + baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","minimal":null,"low":null}, + input: ["text", "image"], + cost: { + input: 30, + output: 180, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-responses">, "gpt-5.6-luna": { @@ -538,10 +484,10 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 0, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, contextWindow: 1050000, maxTokens: 128000, @@ -556,10 +502,10 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 0, + input: 2, + output: 10, + cacheRead: 0.25, + cacheWrite: 3.125, }, contextWindow: 1050000, maxTokens: 128000, @@ -574,31 +520,14 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 0, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "o1": { - id: "o1", - name: "o1", - api: "openai-responses", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", - reasoning: true, - input: ["text", "image"], - cost: { - input: 15, - output: 60, - cacheRead: 7.5, - cacheWrite: 0, - }, - contextWindow: 200000, - maxTokens: 100000, - } satisfies Model<"openai-responses">, "o3": { id: "o3", name: "o3", @@ -633,23 +562,6 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-responses">, - "o3-pro": { - id: "o3-pro", - name: "o3-pro", - api: "openai-responses", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai", - reasoning: true, - input: ["text", "image"], - cost: { - input: 20, - output: 80, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 200000, - maxTokens: 100000, - } satisfies Model<"openai-responses">, "o4-mini": { id: "o4-mini", name: "o4-mini", @@ -661,100 +573,10 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cost: { input: 1.1, output: 4.4, - cacheRead: 0.28, + cacheRead: 0.275, cacheWrite: 0, }, contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-responses">, - "workers-ai/@cf/moonshotai/kimi-k2.5": { - id: "workers-ai/@cf/moonshotai/kimi-k2.5", - name: "Kimi K2.5", - api: "openai-completions", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.6, - output: 3, - cacheRead: 0.1, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 256000, - } satisfies Model<"openai-completions">, - "workers-ai/@cf/moonshotai/kimi-k2.6": { - id: "workers-ai/@cf/moonshotai/kimi-k2.6", - name: "Kimi K2.6", - api: "openai-completions", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.95, - output: 4, - cacheRead: 0.16, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 256000, - } satisfies Model<"openai-completions">, - "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": { - id: "workers-ai/@cf/nvidia/nemotron-3-120b-a12b", - name: "Nemotron 3 Super 120B", - api: "openai-completions", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text"], - cost: { - input: 0.5, - output: 1.5, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 256000, - } satisfies Model<"openai-completions">, - "workers-ai/@cf/zai-org/glm-4.7-flash": { - id: "workers-ai/@cf/zai-org/glm-4.7-flash", - name: "GLM-4.7-Flash", - api: "openai-completions", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text"], - cost: { - input: 0.06, - output: 0.4, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 131072, - } satisfies Model<"openai-completions">, - "workers-ai/@cf/zai-org/glm-5.2": { - id: "workers-ai/@cf/zai-org/glm-5.2", - name: "Glm 5.2", - api: "openai-completions", - provider: "cloudflare-ai-gateway", - baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, - reasoning: true, - input: ["text"], - cost: { - input: 1.4, - output: 4.4, - cacheRead: 0.26, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/cloudflare-ai-gateway.ts b/packages/ai/src/providers/cloudflare-ai-gateway.ts index 9f6ff5f..29380c9 100644 --- a/packages/ai/src/providers/cloudflare-ai-gateway.ts +++ b/packages/ai/src/providers/cloudflare-ai-gateway.ts @@ -1,13 +1,10 @@ import { anthropicMessagesApi } from "../api/anthropic-messages.lazy.ts"; -import { openAICompletionsApi } from "../api/openai-completions.lazy.ts"; import { openAIResponsesApi } from "../api/openai-responses.lazy.ts"; import { createProvider, type Provider } from "../models.ts"; import { CLOUDFLARE_AI_GATEWAY_MODELS } from "./cloudflare-ai-gateway.models.ts"; import { cloudflareAIGatewayAuth } from "./cloudflare-auth.ts"; -export function cloudflareAIGatewayProvider(): Provider< - "anthropic-messages" | "openai-completions" | "openai-responses" -> { +export function cloudflareAIGatewayProvider(): Provider<"anthropic-messages" | "openai-responses"> { return createProvider({ id: "cloudflare-ai-gateway", name: "Cloudflare AI Gateway", @@ -15,7 +12,6 @@ export function cloudflareAIGatewayProvider(): Provider< models: Object.values(CLOUDFLARE_AI_GATEWAY_MODELS), api: { "anthropic-messages": anthropicMessagesApi(), - "openai-completions": openAICompletionsApi(), "openai-responses": openAIResponsesApi(), }, }); diff --git a/packages/ai/src/providers/cloudflare-workers-ai.models.ts b/packages/ai/src/providers/cloudflare-workers-ai.models.ts index 3adfee6..f004c3c 100644 --- a/packages/ai/src/providers/cloudflare-workers-ai.models.ts +++ b/packages/ai/src/providers/cloudflare-workers-ai.models.ts @@ -4,6 +4,44 @@ import type { Model } from "../types.ts"; export const CLOUDFLARE_WORKERS_AI_MODELS = { + "@cf/deepseek-ai/deepseek-v4-flash-0731": { + id: "@cf/deepseek-ai/deepseek-v4-flash-0731", + name: "DeepSeek V4 Flash 0731", + api: "openai-completions", + provider: "cloudflare-workers-ai", + baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, + input: ["text"], + cost: { + input: 0.44, + output: 1.32, + cacheRead: 0.014, + cacheWrite: 0, + }, + contextWindow: 1310720, + maxTokens: 1048576, + } satisfies Model<"openai-completions">, + "@cf/deepseek-ai/deepseek-v4-pro-0813": { + id: "@cf/deepseek-ai/deepseek-v4-pro-0813", + name: "DeepSeek V4 Pro 0813", + api: "openai-completions", + provider: "cloudflare-workers-ai", + baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, + input: ["text"], + cost: { + input: 1.32, + output: 3.96, + cacheRead: 0.044, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"openai-completions">, "@cf/google/gemma-4-26b-a4b-it": { id: "@cf/google/gemma-4-26b-a4b-it", name: "Gemma 4 26B A4B IT", @@ -202,6 +240,24 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { contextWindow: 32768, maxTokens: 32768, } satisfies Model<"openai-completions">, + "@cf/qwen/qwen3.8-27b": { + id: "@cf/qwen/qwen3.8-27b", + name: "Qwen3.8 27B", + api: "openai-completions", + provider: "cloudflare-workers-ai", + baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.45, + output: 3.2, + cacheRead: 0.05, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"openai-completions">, "@cf/zai-org/glm-4.7-flash": { id: "@cf/zai-org/glm-4.7-flash", name: "GLM-4.7-Flash", @@ -236,6 +292,42 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 256000, + } satisfies Model<"openai-completions">, + "@cf/zai-org/glm-5.3": { + id: "@cf/zai-org/glm-5.3", + name: "Glm 5.3", + api: "openai-completions", + provider: "cloudflare-workers-ai", + baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1310720, + maxTokens: 1310720, + } satisfies Model<"openai-completions">, + "@cf/zai-org/glm-5.3-flash": { + id: "@cf/zai-org/glm-5.3-flash", + name: "Glm 5.3 Flash", + api: "openai-completions", + provider: "cloudflare-workers-ai", + baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1310720, + maxTokens: 1048576, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/fireworks.models.ts b/packages/ai/src/providers/fireworks.models.ts index 1cc83bc..123114f 100644 --- a/packages/ai/src/providers/fireworks.models.ts +++ b/packages/ai/src/providers/fireworks.models.ts @@ -4,9 +4,9 @@ import type { Model } from "../types.ts"; export const FIREWORKS_MODELS = { - "accounts/fireworks/models/deepseek-v4-flash": { - id: "accounts/fireworks/models/deepseek-v4-flash", - name: "DeepSeek V4 Flash", + "accounts/fireworks/models/deepseek-v4-flash-0731": { + id: "accounts/fireworks/models/deepseek-v4-flash-0731", + name: "DeepSeek V4 Flash 0731", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -14,9 +14,27 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.14, - output: 0.28, - cacheRead: 0.028, + input: 0.22, + output: 0.66, + cacheRead: 0.007, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/deepseek-v4-flash-vision-exp": { + id: "accounts/fireworks/models/deepseek-v4-flash-vision-exp", + name: "DeepSeek V4 Flash Vision Exp", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.22, + output: 0.66, + cacheRead: 0.007, cacheWrite: 0, }, contextWindow: 1000000, @@ -32,17 +50,17 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.74, - output: 3.48, - cacheRead: 0.145, + input: 1.2, + output: 1.2, + cacheRead: 0.6, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 384000, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/models/glm-5p1": { - id: "accounts/fireworks/models/glm-5p1", - name: "GLM 5.1", + "accounts/fireworks/models/deepseek-v4-pro-0813": { + id: "accounts/fireworks/models/deepseek-v4-pro-0813", + name: "DeepSeek V4 Pro 0813", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -50,13 +68,31 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.4, - output: 4.4, - cacheRead: 0.26, + input: 1.32, + output: 3.96, + cacheRead: 0.044, cacheWrite: 0, }, - contextWindow: 202800, - maxTokens: 131072, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/deepseek-v4p1-flash": { + id: "accounts/fireworks/models/deepseek-v4p1-flash", + name: "DeepSeek V4.1 Flash", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.22, + output: 0.66, + cacheRead: 0.007, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/glm-5p2": { id: "accounts/fireworks/models/glm-5p2", @@ -77,6 +113,42 @@ export const FIREWORKS_MODELS = { contextWindow: 1048575, maxTokens: 131072, } satisfies Model<"openai-completions">, + "accounts/fireworks/models/glm-5p3": { + id: "accounts/fireworks/models/glm-5p3", + name: "GLM 5.3", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1048573, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/glm-5p3-flash": { + id: "accounts/fireworks/models/glm-5p3-flash", + name: "GLM 5.3 Flash", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048573, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/gpt-oss-120b": { id: "accounts/fireworks/models/gpt-oss-120b", name: "GPT OSS 120B", @@ -95,23 +167,23 @@ export const FIREWORKS_MODELS = { contextWindow: 131072, maxTokens: 32768, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/models/gpt-oss-20b": { - id: "accounts/fireworks/models/gpt-oss-20b", - name: "GPT OSS 20B", + "accounts/fireworks/models/inkling": { + id: "accounts/fireworks/models/inkling", + name: "Inkling", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.07, - output: 0.3, - cacheRead: 0.035, + input: 1, + output: 4.05, + cacheRead: 0.17, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 1048576, + maxTokens: 1048576, } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/kimi-k2p6": { id: "accounts/fireworks/models/kimi-k2p6", @@ -149,6 +221,24 @@ export const FIREWORKS_MODELS = { contextWindow: 262000, maxTokens: 262000, } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/kimi-k3": { + id: "accounts/fireworks/models/kimi-k3", + name: "Kimi K3", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/minimax-m2p7": { id: "accounts/fireworks/models/minimax-m2p7", name: "MiniMax-M2.7", @@ -159,13 +249,13 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.3, + input: 1.2, output: 1.2, - cacheRead: 0.06, + cacheRead: 0.6, cacheWrite: 0, }, contextWindow: 196608, - maxTokens: 196608, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/minimax-m3": { id: "accounts/fireworks/models/minimax-m3", @@ -185,6 +275,78 @@ export const FIREWORKS_MODELS = { contextWindow: 512000, maxTokens: 512000, } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/mistral-large-3-fp8": { + id: "accounts/fireworks/models/mistral-large-3-fp8", + name: "Mistral Large 3 675B Instruct 2512", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/muse-glimmer-30b": { + id: "accounts/fireworks/models/muse-glimmer-30b", + name: "Muse Glimmer 30B", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.35, + output: 1.5, + cacheRead: 0.04, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/nemotron-3-ultra-nvfp4": { + id: "accounts/fireworks/models/nemotron-3-ultra-nvfp4", + name: "Nemotron 3 Ultra 550B A55B", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.6, + output: 2.4, + cacheRead: 0.12, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/nemotron-lightning-3p5-30b-a3b": { + id: "accounts/fireworks/models/nemotron-lightning-3p5-30b-a3b", + name: "Nemotron 3.5 Lightning 30B A3B", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.05, + output: 0.2, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/qwen3p7-plus": { id: "accounts/fireworks/models/qwen3p7-plus", name: "Qwen 3.7 Plus", @@ -203,9 +365,9 @@ export const FIREWORKS_MODELS = { contextWindow: 262144, maxTokens: 65536, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/routers/glm-5p1-fast": { - id: "accounts/fireworks/routers/glm-5p1-fast", - name: "GLM 5.1 Fast", + "accounts/fireworks/models/qwen3p8-2p4t-a95b": { + id: "accounts/fireworks/models/qwen3p8-2p4t-a95b", + name: "Qwen3.8 2.4T A95B", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -213,14 +375,68 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text"], cost: { - input: 2.8, - output: 8.8, - cacheRead: 0.52, + input: 2, + output: 6, + cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 202800, + contextWindow: 262144, maxTokens: 131072, } satisfies Model<"anthropic-messages">, + "accounts/fireworks/models/qwen3p8-max": { + id: "accounts/fireworks/models/qwen3p8-max", + name: "Qwen3.8 Max", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/deepseek-flash-latest": { + id: "accounts/fireworks/routers/deepseek-flash-latest", + name: "DeepSeek Flash Latest", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.22, + output: 0.66, + cacheRead: 0.007, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/deepseek-pro-latest": { + id: "accounts/fireworks/routers/deepseek-pro-latest", + name: "DeepSeek Pro Latest", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 1.32, + output: 3.96, + cacheRead: 0.044, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, "accounts/fireworks/routers/glm-5p2-fast": { id: "accounts/fireworks/routers/glm-5p2-fast", name: "GLM 5.2 Fast", @@ -240,9 +456,45 @@ export const FIREWORKS_MODELS = { contextWindow: 1048575, maxTokens: 131072, } satisfies Model<"openai-completions">, - "accounts/fireworks/routers/kimi-k2p6-fast": { - id: "accounts/fireworks/routers/kimi-k2p6-fast", - name: "Kimi K2.6 Fast", + "accounts/fireworks/routers/glm-5p3-fast": { + id: "accounts/fireworks/routers/glm-5p3-fast", + name: "GLM 5.3 Fast", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 2.1, + output: 6.6, + cacheRead: 0.39, + cacheWrite: 0, + }, + contextWindow: 1048572, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/glm-fast-latest": { + id: "accounts/fireworks/routers/glm-fast-latest", + name: "GLM 5.3 Fast (Latest)", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 2.1, + output: 6.6, + cacheRead: 0.39, + cacheWrite: 0, + }, + contextWindow: 1048572, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/glm-flash-latest": { + id: "accounts/fireworks/routers/glm-flash-latest", + name: "GLM Flash Latest (GLM 5.3 Flash)", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -250,17 +502,35 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2, - output: 8, - cacheRead: 0.3, + input: 0.15, + output: 0.5, + cacheRead: 0.03, cacheWrite: 0, }, - contextWindow: 262000, - maxTokens: 262000, + contextWindow: 1048573, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/glm-latest": { + id: "accounts/fireworks/routers/glm-latest", + name: "GLM Latest", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1048573, + maxTokens: 262144, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/routers/kimi-k2p6-turbo": { - id: "accounts/fireworks/routers/kimi-k2p6-turbo", - name: "Kimi K2.6 Turbo", + "accounts/fireworks/routers/kimi-fast-latest": { + id: "accounts/fireworks/routers/kimi-fast-latest", + name: "Kimi Fast Latest", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -268,17 +538,71 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2, - output: 8, + input: 4.5, + output: 22.5, + cacheRead: 0.45, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/kimi-k3-fast": { + id: "accounts/fireworks/routers/kimi-k3-fast", + name: "Kimi K3 Fast", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 4.5, + output: 22.5, + cacheRead: 0.45, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/kimi-latest": { + id: "accounts/fireworks/routers/kimi-latest", + name: "Kimi Latest", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, cacheRead: 0.3, cacheWrite: 0, }, - contextWindow: 262000, - maxTokens: 262000, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "accounts/fireworks/routers/minimax-latest": { + id: "accounts/fireworks/routers/minimax-latest", + name: "MiniMax Latest", + api: "anthropic-messages", + provider: "fireworks", + baseUrl: "https://api.fireworks.ai/inference", + compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0.06, + cacheWrite: 0, + }, + contextWindow: 512000, + maxTokens: 512000, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/routers/kimi-k2p7-code-fast": { - id: "accounts/fireworks/routers/kimi-k2p7-code-fast", - name: "Kimi K2.7 Code Fast", + "accounts/fireworks/routers/qwen-max-latest": { + id: "accounts/fireworks/routers/qwen-max-latest", + name: "Qwen Max Latest (Qwen3.8 Max)", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -286,12 +610,12 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1.9, - output: 8, - cacheRead: 0.38, + input: 2, + output: 6, + cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 262000, - maxTokens: 262000, + contextWindow: 262144, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, } as const; diff --git a/packages/ai/src/providers/github-copilot.models.ts b/packages/ai/src/providers/github-copilot.models.ts index ecf46bb..8d9a3c0 100644 --- a/packages/ai/src/providers/github-copilot.models.ts +++ b/packages/ai/src/providers/github-copilot.models.ts @@ -23,6 +23,25 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "claude-fable-5.1": { + id: "claude-fable-5.1", + name: "Claude Fable 5.1", + api: "openai-completions", + provider: "github-copilot", + baseUrl: "https://api.individual.githubcopilot.com", + headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "claude-haiku-4.5": { id: "claude-haiku-4.5", name: "Claude Haiku 4.5 (latest)", @@ -42,44 +61,6 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "claude-opus-4.5": { - id: "claude-opus-4.5", - name: "Claude Opus 4.5 (latest)", - api: "anthropic-messages", - provider: "github-copilot", - baseUrl: "https://api.individual.githubcopilot.com", - headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, - }, - contextWindow: 200000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, - "claude-opus-4.6": { - id: "claude-opus-4.6", - name: "Claude Opus 4.6", - api: "anthropic-messages", - provider: "github-copilot", - baseUrl: "https://api.individual.githubcopilot.com", - headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - compat: {"forceAdaptiveThinking":true}, - reasoning: true, - thinkingLevelMap: {"max":"max"}, - input: ["text", "image"], - cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, - }, - contextWindow: 1000000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, "claude-opus-4.7": { id: "claude-opus-4.7", name: "Claude Opus 4.7", @@ -120,43 +101,23 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "claude-sonnet-4": { - id: "claude-sonnet-4", - name: "Claude Sonnet 4 (latest)", - api: "anthropic-messages", - provider: "github-copilot", - baseUrl: "https://api.individual.githubcopilot.com", - headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - compat: {"supportsEagerToolInputStreaming":false}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, - }, - contextWindow: 216000, - maxTokens: 16000, - } satisfies Model<"anthropic-messages">, - "claude-sonnet-4.5": { - id: "claude-sonnet-4.5", - name: "Claude Sonnet 4.5 (latest)", + "claude-opus-5": { + id: "claude-opus-5", + name: "Claude Opus 5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - compat: {"supportsEagerToolInputStreaming":false}, reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, }, - contextWindow: 200000, - maxTokens: 32000, + contextWindow: 1000000, + maxTokens: 64000, } satisfies Model<"anthropic-messages">, "claude-sonnet-4.6": { id: "claude-sonnet-4.6", @@ -198,9 +159,9 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "gemini-2.5-pro": { - id: "gemini-2.5-pro", - name: "Gemini 2.5 Pro", + "gemini-3.5-flash": { + id: "gemini-3.5-flash", + name: "Gemini 3.5 Flash", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", @@ -209,17 +170,17 @@ export const GITHUB_COPILOT_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, + input: 1.5, + output: 9, + cacheRead: 0.15, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 200000, maxTokens: 64000, } satisfies Model<"openai-completions">, - "gemini-3-flash-preview": { - id: "gemini-3-flash-preview", - name: "Gemini 3 Flash Preview", + "gemini-3.6-flash": { + id: "gemini-3.6-flash", + name: "Gemini 3.6 Flash", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", @@ -228,17 +189,17 @@ export const GITHUB_COPILOT_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.5, - output: 3, - cacheRead: 0.05, + input: 0.75, + output: 3.75, + cacheRead: 0.075, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"openai-completions">, - "gemini-3.1-pro-preview": { - id: "gemini-3.1-pro-preview", - name: "Gemini 3.1 Pro Preview", + "gemini-3.7-flash": { + id: "gemini-3.7-flash", + name: "Gemini 3.7 Flash", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", @@ -247,17 +208,17 @@ export const GITHUB_COPILOT_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2, - output: 12, - cacheRead: 0.2, + input: 0.75, + output: 3.75, + cacheRead: 0.075, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"openai-completions">, - "gemini-3.5-flash": { - id: "gemini-3.5-flash", - name: "Gemini 3.5 Flash", + "gemini-3.8-flash": { + id: "gemini-3.8-flash", + name: "Gemini 3.8 Flash", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", @@ -266,33 +227,14 @@ export const GITHUB_COPILOT_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1.5, - output: 9, - cacheRead: 0.15, + input: 0.75, + output: 3.75, + cacheRead: 0.075, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"openai-completions">, - "gpt-4.1": { - id: "gpt-4.1", - name: "GPT-4.1", - api: "openai-completions", - provider: "github-copilot", - baseUrl: "https://api.individual.githubcopilot.com", - headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 2, - output: 8, - cacheRead: 0.5, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 16384, - } satisfies Model<"openai-completions">, "gpt-5-mini": { id: "gpt-5-mini", name: "GPT-5 Mini", @@ -312,44 +254,6 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 264000, maxTokens: 64000, } satisfies Model<"openai-responses">, - "gpt-5.2": { - id: "gpt-5.2", - name: "GPT-5.2", - api: "openai-responses", - provider: "github-copilot", - baseUrl: "https://api.individual.githubcopilot.com", - headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - reasoning: true, - thinkingLevelMap: {"off":null,"minimal":"low","xhigh":"xhigh"}, - input: ["text", "image"], - cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, - "gpt-5.2-codex": { - id: "gpt-5.2-codex", - name: "GPT-5.2 Codex", - api: "openai-responses", - provider: "github-copilot", - baseUrl: "https://api.individual.githubcopilot.com", - headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, - reasoning: true, - thinkingLevelMap: {"off":null,"minimal":"low","xhigh":"xhigh"}, - input: ["text", "image"], - cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, "gpt-5.3-codex": { id: "gpt-5.3-codex", name: "GPT-5.3 Codex", @@ -456,10 +360,10 @@ export const GITHUB_COPILOT_MODELS = { thinkingLevelMap: {"off":null,"minimal":"low","xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, contextWindow: 1050000, maxTokens: 128000, @@ -475,10 +379,10 @@ export const GITHUB_COPILOT_MODELS = { thinkingLevelMap: {"off":null,"minimal":"low","xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -494,14 +398,71 @@ export const GITHUB_COPILOT_MODELS = { thinkingLevelMap: {"off":null,"minimal":"low","xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, + "gpt-6-astra": { + id: "gpt-6-astra", + name: "GPT-6 Astra", + api: "openai-completions", + provider: "github-copilot", + baseUrl: "https://api.individual.githubcopilot.com", + headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "grok-4.5": { + id: "grok-4.5", + name: "Grok 4.5", + api: "openai-completions", + provider: "github-copilot", + baseUrl: "https://api.individual.githubcopilot.com", + headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "grok-4.6": { + id: "grok-4.6", + name: "Grok 4.6", + api: "openai-completions", + provider: "github-copilot", + baseUrl: "https://api.individual.githubcopilot.com", + headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "kimi-k2.7-code": { id: "kimi-k2.7-code", name: "Kimi K2.7 Code", @@ -521,6 +482,25 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 256000, maxTokens: 32000, } satisfies Model<"openai-completions">, + "kimi-k3": { + id: "kimi-k3", + name: "Kimi K3", + api: "openai-completions", + provider: "github-copilot", + baseUrl: "https://api.individual.githubcopilot.com", + headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "mai-code-1-flash-picker": { id: "mai-code-1-flash-picker", name: "MAI-Code-1-Flash", @@ -540,4 +520,23 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 256000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "mai-code-1.1-flash": { + id: "mai-code-1.1-flash", + name: "MAI-Code-1.1-Flash", + api: "openai-completions", + provider: "github-copilot", + baseUrl: "https://api.individual.githubcopilot.com", + headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/google-vertex.models.ts b/packages/ai/src/providers/google-vertex.models.ts index 8dfa241..a4ca1a5 100644 --- a/packages/ai/src/providers/google-vertex.models.ts +++ b/packages/ai/src/providers/google-vertex.models.ts @@ -145,6 +145,78 @@ export const GOOGLE_VERTEX_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-vertex">, + "gemini-3.5-flash-lite": { + id: "gemini-3.5-flash-lite", + name: "Gemini 3.5 Flash Lite", + api: "google-vertex", + provider: "google-vertex", + baseUrl: "https://{location}-aiplatform.googleapis.com", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.3, + output: 2.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-vertex">, + "gemini-3.6-flash": { + id: "gemini-3.6-flash", + name: "Gemini 3.6 Flash", + api: "google-vertex", + provider: "google-vertex", + baseUrl: "https://{location}-aiplatform.googleapis.com", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-vertex">, + "gemini-3.7-flash": { + id: "gemini-3.7-flash", + name: "Gemini 3.7 Flash", + api: "google-vertex", + provider: "google-vertex", + baseUrl: "https://{location}-aiplatform.googleapis.com", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-vertex">, + "gemini-3.8-flash": { + id: "gemini-3.8-flash", + name: "Gemini 3.8 Flash", + api: "google-vertex", + provider: "google-vertex", + baseUrl: "https://{location}-aiplatform.googleapis.com", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-vertex">, "gemini-flash-latest": { id: "gemini-flash-latest", name: "Gemini Flash Latest", diff --git a/packages/ai/src/providers/google.models.ts b/packages/ai/src/providers/google.models.ts index 334e3b4..6def441 100644 --- a/packages/ai/src/providers/google.models.ts +++ b/packages/ai/src/providers/google.models.ts @@ -4,39 +4,56 @@ import type { Model } from "../types.ts"; export const GOOGLE_MODELS = { - "gemini-2.0-flash": { - id: "gemini-2.0-flash", - name: "Gemini 2.0 Flash", + "deep-research-max-preview-04-2026": { + id: "deep-research-max-preview-04-2026", + name: "Deep Research Max Preview (Apr-21-2026)", api: "google-generative-ai", provider: "google", baseUrl: "https://generativelanguage.googleapis.com/v1beta", - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { - input: 0.1, - output: 0.4, - cacheRead: 0.025, + input: 2, + output: 12, + cacheRead: 0.2, cacheWrite: 0, }, - contextWindow: 1048576, - maxTokens: 8192, + contextWindow: 131072, + maxTokens: 65536, } satisfies Model<"google-generative-ai">, - "gemini-2.0-flash-lite": { - id: "gemini-2.0-flash-lite", - name: "Gemini 2.0 Flash-Lite", + "deep-research-preview-04-2026": { + id: "deep-research-preview-04-2026", + name: "Deep Research Preview (Apr-21-2026)", api: "google-generative-ai", provider: "google", baseUrl: "https://generativelanguage.googleapis.com/v1beta", - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { - input: 0.075, - output: 0.3, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-2.5-computer-use-preview-10-2025": { + id: "gemini-2.5-computer-use-preview-10-2025", + name: "Gemini 2.5 Computer Use Preview 10-2025", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 10, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1048576, - maxTokens: 8192, + contextWindow: 131072, + maxTokens: 65536, } satisfies Model<"google-generative-ai">, "gemini-2.5-flash": { id: "gemini-2.5-flash", @@ -107,27 +124,27 @@ export const GOOGLE_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, - "gemini-3-pro-preview": { - id: "gemini-3-pro-preview", - name: "Gemini 3 Pro Preview", + "gemini-3.1-flash-lite": { + id: "gemini-3.1-flash-lite", + name: "Gemini 3.1 Flash Lite", api: "google-generative-ai", provider: "google", baseUrl: "https://generativelanguage.googleapis.com/v1beta", reasoning: true, - thinkingLevelMap: {"off":null,"minimal":null,"low":"LOW","medium":null,"high":"HIGH"}, + thinkingLevelMap: {"off":null}, input: ["text", "image"], cost: { - input: 2, - output: 12, - cacheRead: 0.2, + input: 0.25, + output: 1.5, + cacheRead: 0.025, cacheWrite: 0, }, contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, - "gemini-3.1-flash-lite": { - id: "gemini-3.1-flash-lite", - name: "Gemini 3.1 Flash Lite", + "gemini-3.1-flash-lite-image": { + id: "gemini-3.1-flash-lite-image", + name: "Nano Banana 2 Lite", api: "google-generative-ai", provider: "google", baseUrl: "https://generativelanguage.googleapis.com/v1beta", @@ -136,11 +153,11 @@ export const GOOGLE_MODELS = { input: ["text", "image"], cost: { input: 0.25, - output: 1.5, - cacheRead: 0.025, + output: 30, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1048576, + contextWindow: 65536, maxTokens: 65536, } satisfies Model<"google-generative-ai">, "gemini-3.1-flash-lite-preview": { @@ -161,6 +178,24 @@ export const GOOGLE_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, + "gemini-3.1-flash-live-preview": { + id: "gemini-3.1-flash-live-preview", + name: "Gemini 3.1 Flash Live Preview", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 4.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, "gemini-3.1-pro-preview": { id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview", @@ -215,6 +250,78 @@ export const GOOGLE_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, + "gemini-3.5-flash-lite": { + id: "gemini-3.5-flash-lite", + name: "Gemini 3.5 Flash Lite", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.3, + output: 2.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-3.6-flash": { + id: "gemini-3.6-flash", + name: "Gemini 3.6 Flash", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-3.7-flash": { + id: "gemini-3.7-flash", + name: "Gemini 3.7 Flash", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-3.8-flash": { + id: "gemini-3.8-flash", + name: "Gemini 3.8 Flash", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, "gemini-flash-latest": { id: "gemini-flash-latest", name: "Gemini Flash Latest", diff --git a/packages/ai/src/providers/groq.models.ts b/packages/ai/src/providers/groq.models.ts index 6b0e3da..988645b 100644 --- a/packages/ai/src/providers/groq.models.ts +++ b/packages/ai/src/providers/groq.models.ts @@ -38,23 +38,6 @@ export const GROQ_MODELS = { contextWindow: 131072, maxTokens: 32768, } satisfies Model<"openai-completions">, - "meta-llama/llama-4-scout-17b-16e-instruct": { - id: "meta-llama/llama-4-scout-17b-16e-instruct", - name: "Llama 4 Scout 17B 16E", - api: "openai-completions", - provider: "groq", - baseUrl: "https://api.groq.com/openai/v1", - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.11, - output: 0.34, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 8192, - } satisfies Model<"openai-completions">, "openai/gpt-oss-120b": { id: "openai/gpt-oss-120b", name: "GPT OSS 120B", @@ -106,22 +89,38 @@ export const GROQ_MODELS = { contextWindow: 131072, maxTokens: 65536, } satisfies Model<"openai-completions">, - "qwen/qwen3-32b": { - id: "qwen/qwen3-32b", - name: "Qwen3-32B", + "qwen/qwen3.6-27b": { + id: "qwen/qwen3.6-27b", + name: "Qwen3.6 27B", api: "openai-completions", provider: "groq", baseUrl: "https://api.groq.com/openai/v1", reasoning: true, - thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"default"}, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.29, - output: 0.59, - cacheRead: 0, + input: 0.6, + output: 3, + cacheRead: 0.3, cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 40960, + maxTokens: 16384, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-27b": { + id: "qwen/qwen3.8-27b", + name: "Qwen3.8 27B", + api: "openai-completions", + provider: "groq", + baseUrl: "https://api.groq.com/openai/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.8, + output: 4, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131042, + maxTokens: 16384, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/huggingface.models.ts b/packages/ai/src/providers/huggingface.models.ts index f38b38f..b0bccdf 100644 --- a/packages/ai/src/providers/huggingface.models.ts +++ b/packages/ai/src/providers/huggingface.models.ts @@ -20,7 +20,7 @@ export const HUGGINGFACE_MODELS = { cacheWrite: 0, }, contextWindow: 204800, - maxTokens: 128000, + maxTokens: 131072, } satisfies Model<"openai-completions">, "MiniMaxAI/MiniMax-M2.1": { id: "MiniMaxAI/MiniMax-M2.1", @@ -92,7 +92,25 @@ export const HUGGINGFACE_MODELS = { cacheWrite: 0, }, contextWindow: 524288, - maxTokens: 128000, + maxTokens: 512000, + } satisfies Model<"openai-completions">, + "Qwen/Qwen2.5-Coder-32B-Instruct": { + id: "Qwen/Qwen2.5-Coder-32B-Instruct", + name: "Qwen2.5-Coder-32B-Instruct", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text"], + cost: { + input: 0.06, + output: 0.2, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 8192, } satisfies Model<"openai-completions">, "Qwen/Qwen3-235B-A22B": { id: "Qwen/Qwen3-235B-A22B", @@ -112,6 +130,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 40960, maxTokens: 16384, } satisfies Model<"openai-completions">, + "Qwen/Qwen3-235B-A22B-Instruct-2507": { + id: "Qwen/Qwen3-235B-A22B-Instruct-2507", + name: "Qwen3 235B-A22B Instruct 2507", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text"], + cost: { + input: 0.855, + output: 2.565, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 16384, + } satisfies Model<"openai-completions">, "Qwen/Qwen3-235B-A22B-Thinking-2507": { id: "Qwen/Qwen3-235B-A22B-Thinking-2507", name: "Qwen3-235B-A22B-Thinking-2507", @@ -130,6 +166,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 131072, } satisfies Model<"openai-completions">, + "Qwen/Qwen3-30B-A3B": { + id: "Qwen/Qwen3-30B-A3B", + name: "Qwen3 30B A3B", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.12, + output: 0.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 40960, + maxTokens: 16384, + } satisfies Model<"openai-completions">, "Qwen/Qwen3-32B": { id: "Qwen/Qwen3-32B", name: "Qwen3 32B", @@ -238,6 +292,42 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 131072, } satisfies Model<"openai-completions">, + "Qwen/Qwen3-VL-235B-A22B-Instruct": { + id: "Qwen/Qwen3-VL-235B-A22B-Instruct", + name: "Qwen3 VL 235B A22B Instruct", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.3, + output: 1.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "Qwen/Qwen3-VL-235B-A22B-Thinking": { + id: "Qwen/Qwen3-VL-235B-A22B-Thinking", + name: "Qwen3 VL 235B A22B Thinking", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.98, + output: 3.95, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "Qwen/Qwen3.5-122B-A10B": { id: "Qwen/Qwen3.5-122B-A10B", name: "Qwen3.5 122B-A10B", @@ -364,6 +454,42 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 65536, } satisfies Model<"openai-completions">, + "Qwen/Qwen3.8-2.4T-A95B": { + id: "Qwen/Qwen3.8-2.4T-A95B", + name: "Qwen3.8 2.4T A95B", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 2.5, + output: 6.25, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "Qwen/Qwen3.8-27B": { + id: "Qwen/Qwen3.8-27B", + name: "Qwen3.8 27B", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.4, + output: 3, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "XiaomiMiMo/MiMo-V2-Flash": { id: "XiaomiMiMo/MiMo-V2-Flash", name: "MiMo-V2-Flash", @@ -382,6 +508,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 4096, } satisfies Model<"openai-completions">, + "XiaomiMiMo/MiMo-V2.5": { + id: "XiaomiMiMo/MiMo-V2.5", + name: "MiMo-V2.5", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.4, + output: 2, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "XiaomiMiMo/MiMo-V2.5-Pro": { id: "XiaomiMiMo/MiMo-V2.5-Pro", name: "MiMo-V2.5-Pro", @@ -436,6 +580,60 @@ export const HUGGINGFACE_MODELS = { contextWindow: 163840, maxTokens: 163840, } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V3": { + id: "deepseek-ai/DeepSeek-V3", + name: "DeepSeek-V3", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text"], + cost: { + input: 0.4, + output: 1.3, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 64000, + maxTokens: 8192, + } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V3-0324": { + id: "deepseek-ai/DeepSeek-V3-0324", + name: "DeepSeek V3 0324", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text"], + cost: { + input: 0.27, + output: 1.12, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 163840, + maxTokens: 163840, + } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V3.1": { + id: "deepseek-ai/DeepSeek-V3.1", + name: "DeepSeek-V3.1", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.27, + output: 1, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 8192, + } satisfies Model<"openai-completions">, "deepseek-ai/DeepSeek-V3.2": { id: "deepseek-ai/DeepSeek-V3.2", name: "DeepSeek-V3.2", @@ -472,6 +670,42 @@ export const HUGGINGFACE_MODELS = { contextWindow: 1048576, maxTokens: 384000, } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4-Flash-0731": { + id: "deepseek-ai/DeepSeek-V4-Flash-0731", + name: "DeepSeek V4 Flash 0731", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.14, + output: 0.28, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4-Flash-Vision-Exp": { + id: "deepseek-ai/DeepSeek-V4-Flash-Vision-Exp", + name: "DeepSeek V4 Flash Vision Exp", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.44, + output: 1.32, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 384000, + } satisfies Model<"openai-completions">, "deepseek-ai/DeepSeek-V4-Pro": { id: "deepseek-ai/DeepSeek-V4-Pro", name: "DeepSeek V4 Pro", @@ -490,6 +724,96 @@ export const HUGGINGFACE_MODELS = { contextWindow: 1048576, maxTokens: 393216, } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4-Pro-0813": { + id: "deepseek-ai/DeepSeek-V4-Pro-0813", + name: "DeepSeek V4 Pro 0813", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 1.32, + output: 3.96, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4.1-Flash": { + id: "deepseek-ai/DeepSeek-V4.1-Flash", + name: "DeepSeek V4.1 Flash", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "google/gemma-3-12b-it": { + id: "google/gemma-3-12b-it", + name: "Gemma 3 12B IT", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.15, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "google/gemma-3-27b-it": { + id: "google/gemma-3-27b-it", + name: "Gemma 3 27B IT", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.08, + output: 0.16, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "google/gemma-3-4b-it": { + id: "google/gemma-3-4b-it", + name: "Gemma 3 4B IT", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.1, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "google/gemma-4-26B-A4B-it": { id: "google/gemma-4-26B-A4B-it", name: "Gemma 4 26B A4B IT", @@ -526,6 +850,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 32768, } satisfies Model<"openai-completions">, + "meta-llama/Llama-3.1-8B-Instruct": { + id: "meta-llama/Llama-3.1-8B-Instruct", + name: "Llama-3.1-8B-Instruct", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text"], + cost: { + input: 0.06, + output: 0.06, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 4096, + } satisfies Model<"openai-completions">, "meta-llama/Llama-3.3-70B-Instruct": { id: "meta-llama/Llama-3.3-70B-Instruct", name: "Llama-3.3-70B-Instruct", @@ -652,6 +994,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"openai-completions">, + "moonshotai/Kimi-K3": { + id: "moonshotai/Kimi-K3", + name: "Kimi K3", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "openai/gpt-oss-120b": { id: "openai/gpt-oss-120b", name: "GPT OSS 120B", @@ -724,6 +1084,60 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 256000, } satisfies Model<"openai-completions">, + "tencent/Hy3": { + id: "tencent/Hy3", + name: "Hy3", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.14, + output: 0.58, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "thinkingmachines/Inkling": { + id: "thinkingmachines/Inkling", + name: "Inkling", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 4.05, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"openai-completions">, + "thinkingmachines/Inkling-Small": { + id: "thinkingmachines/Inkling-Small", + name: "Inkling Small", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 1.2, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 524288, + maxTokens: 1048576, + } satisfies Model<"openai-completions">, "zai-org/GLM-4.5": { id: "zai-org/GLM-4.5", name: "GLM-4.5", @@ -796,6 +1210,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 204800, maxTokens: 131072, } satisfies Model<"openai-completions">, + "zai-org/GLM-4.6V-Flash": { + id: "zai-org/GLM-4.6V-Flash", + name: "GLM-4.6V-Flash", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.3, + output: 0.9, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "zai-org/GLM-4.7": { id: "zai-org/GLM-4.7", name: "GLM-4.7", @@ -886,4 +1318,40 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 131072, } satisfies Model<"openai-completions">, + "zai-org/GLM-5.3": { + id: "zai-org/GLM-5.3", + name: "GLM-5.3", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "zai-org/GLM-5.3-Flash": { + id: "zai-org/GLM-5.3-Flash", + name: "GLM-5.3-Flash", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/kimi-coding.models.ts b/packages/ai/src/providers/kimi-coding.models.ts index 395b8fa..6e6db20 100644 --- a/packages/ai/src/providers/kimi-coding.models.ts +++ b/packages/ai/src/providers/kimi-coding.models.ts @@ -4,9 +4,27 @@ import type { Model } from "../types.ts"; export const KIMI_CODING_MODELS = { - "k2p7": { - id: "k2p7", - name: "Kimi K2.7 Code", + "k3": { + id: "k3", + name: "Kimi K3", + api: "anthropic-messages", + provider: "kimi-coding", + baseUrl: "https://api.kimi.com/coding", + headers: {"User-Agent":"KimiCLI/1.5"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "k3-256k": { + id: "k3-256k", + name: "Kimi K3-256K", api: "anthropic-messages", provider: "kimi-coding", baseUrl: "https://api.kimi.com/coding", @@ -20,11 +38,11 @@ export const KIMI_CODING_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 32768, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, - "k3": { - id: "k3", - name: "Kimi K3", + "kimi-for-coding": { + id: "kimi-for-coding", + name: "kimi-for-coding", api: "anthropic-messages", provider: "kimi-coding", baseUrl: "https://api.kimi.com/coding", @@ -38,7 +56,7 @@ export const KIMI_CODING_MODELS = { cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 131072, + maxTokens: 32768, } satisfies Model<"anthropic-messages">, "kimi-for-coding-highspeed": { id: "kimi-for-coding-highspeed", diff --git a/packages/ai/src/providers/minimax-cn.models.ts b/packages/ai/src/providers/minimax-cn.models.ts index d6af804..2017128 100644 --- a/packages/ai/src/providers/minimax-cn.models.ts +++ b/packages/ai/src/providers/minimax-cn.models.ts @@ -52,7 +52,7 @@ export const MINIMAX_CN_MODELS = { cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 128000, + contextWindow: 1048576, + maxTokens: 512000, } satisfies Model<"anthropic-messages">, } as const; diff --git a/packages/ai/src/providers/minimax.models.ts b/packages/ai/src/providers/minimax.models.ts index 7ea1b01..60ec9d9 100644 --- a/packages/ai/src/providers/minimax.models.ts +++ b/packages/ai/src/providers/minimax.models.ts @@ -52,7 +52,7 @@ export const MINIMAX_MODELS = { cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 128000, + contextWindow: 1048576, + maxTokens: 512000, } satisfies Model<"anthropic-messages">, } as const; diff --git a/packages/ai/src/providers/mistral.models.ts b/packages/ai/src/providers/mistral.models.ts index 439517a..6a492b1 100644 --- a/packages/ai/src/providers/mistral.models.ts +++ b/packages/ai/src/providers/mistral.models.ts @@ -514,4 +514,38 @@ export const MISTRAL_MODELS = { contextWindow: 128000, maxTokens: 128000, } satisfies Model<"mistral-conversations">, + "voxtral-small-latest": { + id: "voxtral-small-latest", + name: "Voxtral Small (latest)", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: false, + input: ["text"], + cost: { + input: 0.1, + output: 0.3, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 32000, + maxTokens: 32000, + } satisfies Model<"mistral-conversations">, + "zai-glm-5-2": { + id: "zai-glm-5-2", + name: "GLM-5.2", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.14, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"mistral-conversations">, } as const; diff --git a/packages/ai/src/providers/moonshotai-cn.models.ts b/packages/ai/src/providers/moonshotai-cn.models.ts index effdd2c..cba6d87 100644 --- a/packages/ai/src/providers/moonshotai-cn.models.ts +++ b/packages/ai/src/providers/moonshotai-cn.models.ts @@ -4,114 +4,6 @@ import type { Model } from "../types.ts"; export const MOONSHOTAI_CN_MODELS = { - "kimi-k2-0711-preview": { - id: "kimi-k2-0711-preview", - name: "Kimi K2 0711", - api: "openai-completions", - provider: "moonshotai-cn", - baseUrl: "https://api.moonshot.cn/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.6, - output: 2.5, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 16384, - } satisfies Model<"openai-completions">, - "kimi-k2-0905-preview": { - id: "kimi-k2-0905-preview", - name: "Kimi K2 0905", - api: "openai-completions", - provider: "moonshotai-cn", - baseUrl: "https://api.moonshot.cn/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.6, - output: 2.5, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2-thinking": { - id: "kimi-k2-thinking", - name: "Kimi K2 Thinking", - api: "openai-completions", - provider: "moonshotai-cn", - baseUrl: "https://api.moonshot.cn/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.6, - output: 2.5, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2-thinking-turbo": { - id: "kimi-k2-thinking-turbo", - name: "Kimi K2 Thinking Turbo", - api: "openai-completions", - provider: "moonshotai-cn", - baseUrl: "https://api.moonshot.cn/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: true, - input: ["text"], - cost: { - input: 1.15, - output: 8, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2-turbo-preview": { - id: "kimi-k2-turbo-preview", - name: "Kimi K2 Turbo", - api: "openai-completions", - provider: "moonshotai-cn", - baseUrl: "https://api.moonshot.cn/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: false, - input: ["text"], - cost: { - input: 2.4, - output: 10, - cacheRead: 0.6, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2.5": { - id: "kimi-k2.5", - name: "Kimi K2.5", - api: "openai-completions", - provider: "moonshotai-cn", - baseUrl: "https://api.moonshot.cn/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.6, - output: 3, - cacheRead: 0.1, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, "kimi-k2.6": { id: "kimi-k2.6", name: "Kimi K2.6", diff --git a/packages/ai/src/providers/moonshotai.models.ts b/packages/ai/src/providers/moonshotai.models.ts index 01c6704..9de9e71 100644 --- a/packages/ai/src/providers/moonshotai.models.ts +++ b/packages/ai/src/providers/moonshotai.models.ts @@ -4,114 +4,6 @@ import type { Model } from "../types.ts"; export const MOONSHOTAI_MODELS = { - "kimi-k2-0711-preview": { - id: "kimi-k2-0711-preview", - name: "Kimi K2 0711", - api: "openai-completions", - provider: "moonshotai", - baseUrl: "https://api.moonshot.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.6, - output: 2.5, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 16384, - } satisfies Model<"openai-completions">, - "kimi-k2-0905-preview": { - id: "kimi-k2-0905-preview", - name: "Kimi K2 0905", - api: "openai-completions", - provider: "moonshotai", - baseUrl: "https://api.moonshot.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.6, - output: 2.5, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2-thinking": { - id: "kimi-k2-thinking", - name: "Kimi K2 Thinking", - api: "openai-completions", - provider: "moonshotai", - baseUrl: "https://api.moonshot.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.6, - output: 2.5, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2-thinking-turbo": { - id: "kimi-k2-thinking-turbo", - name: "Kimi K2 Thinking Turbo", - api: "openai-completions", - provider: "moonshotai", - baseUrl: "https://api.moonshot.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: true, - input: ["text"], - cost: { - input: 1.15, - output: 8, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2-turbo-preview": { - id: "kimi-k2-turbo-preview", - name: "Kimi K2 Turbo", - api: "openai-completions", - provider: "moonshotai", - baseUrl: "https://api.moonshot.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: false, - input: ["text"], - cost: { - input: 2.4, - output: 10, - cacheRead: 0.6, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "kimi-k2.5": { - id: "kimi-k2.5", - name: "Kimi K2.5", - api: "openai-completions", - provider: "moonshotai", - baseUrl: "https://api.moonshot.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"thinkingFormat":"deepseek"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.6, - output: 3, - cacheRead: 0.1, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, "kimi-k2.6": { id: "kimi-k2.6", name: "Kimi K2.6", diff --git a/packages/ai/src/providers/nvidia.models.ts b/packages/ai/src/providers/nvidia.models.ts index 45bfc37..5552c12 100644 --- a/packages/ai/src/providers/nvidia.models.ts +++ b/packages/ai/src/providers/nvidia.models.ts @@ -4,43 +4,63 @@ import type { Model } from "../types.ts"; export const NVIDIA_MODELS = { - "meta/llama-3.1-70b-instruct": { - id: "meta/llama-3.1-70b-instruct", - name: "Llama 3.1 70b Instruct", + "deepseek-ai/deepseek-v4-flash-0731": { + id: "deepseek-ai/deepseek-v4-flash-0731", + name: "DeepSeek V4 Flash 0731", + api: "openai-completions", + provider: "nvidia", + baseUrl: "https://integrate.api.nvidia.com/v1", + headers: {"NVCF-POLL-SECONDS":"3600"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "google/gemma-3-12b-it": { + id: "google/gemma-3-12b-it", + name: "Gemma 3 12B IT", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", headers: {"NVCF-POLL-SECONDS":"3600"}, compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 131072, + maxTokens: 16384, } satisfies Model<"openai-completions">, - "meta/llama-3.1-8b-instruct": { - id: "meta/llama-3.1-8b-instruct", - name: "Llama 3.1 8B Instruct", + "google/gemma-3-4b-it": { + id: "google/gemma-3-4b-it", + name: "Gemma 3 4B IT", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", headers: {"NVCF-POLL-SECONDS":"3600"}, compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 16000, - maxTokens: 4096, + contextWindow: 131072, + maxTokens: 16384, } satisfies Model<"openai-completions">, "meta/llama-3.2-11b-vision-instruct": { id: "meta/llama-3.2-11b-vision-instruct", @@ -80,53 +100,53 @@ export const NVIDIA_MODELS = { contextWindow: 128000, maxTokens: 8192, } satisfies Model<"openai-completions">, - "meta/llama-3.3-70b-instruct": { - id: "meta/llama-3.3-70b-instruct", - name: "Llama 3.3 70b Instruct", + "meta/muse-glimmer-30b": { + id: "meta/muse-glimmer-30b", + name: "Muse Glimmer 30B", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", headers: {"NVCF-POLL-SECONDS":"3600"}, compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: false, - input: ["text"], + reasoning: true, + input: ["text", "image"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 131072, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "minimaxai/minimax-m3": { - id: "minimaxai/minimax-m3", - name: "MiniMax-M3", + "mistralai/mistral-7b-instruct-v0.3": { + id: "mistralai/mistral-7b-instruct-v0.3", + name: "Mistral-7B-Instruct-v0.3", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", headers: {"NVCF-POLL-SECONDS":"3600"}, compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: true, - input: ["text", "image"], + reasoning: false, + input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 16384, + contextWindow: 65536, + maxTokens: 65536, } satisfies Model<"openai-completions">, - "mistralai/mistral-large-3-675b-instruct-2512": { - id: "mistralai/mistral-large-3-675b-instruct-2512", - name: "Mistral Large 3 675B Instruct 2512", + "moonshotai/kimi-k2.6": { + id: "moonshotai/kimi-k2.6", + name: "Kimi K2.6", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", headers: {"NVCF-POLL-SECONDS":"3600"}, compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { input: 0, @@ -137,9 +157,9 @@ export const NVIDIA_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"openai-completions">, - "mistralai/mistral-small-4-119b-2603": { - id: "mistralai/mistral-small-4-119b-2603", - name: "mistral-small-4-119b-2603", + "moonshotai/kimi-k3": { + id: "moonshotai/kimi-k3", + name: "Kimi K3", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -153,12 +173,12 @@ export const NVIDIA_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 8192, + contextWindow: 1048576, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "moonshotai/kimi-k2.6": { - id: "moonshotai/kimi-k2.6", - name: "Kimi K2.6", + "nvidia/cosmos-reason2-8b": { + id: "nvidia/cosmos-reason2-8b", + name: "Cosmos Reason2 8B", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -172,12 +192,31 @@ export const NVIDIA_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 262144, + contextWindow: 131072, + maxTokens: 16384, } satisfies Model<"openai-completions">, - "nvidia/nemotron-3-nano-30b-a3b": { - id: "nvidia/nemotron-3-nano-30b-a3b", - name: "nemotron-3-nano-30b-a3b", + "nvidia/llama-3.1-nemotron-70b-instruct": { + id: "nvidia/llama-3.1-nemotron-70b-instruct", + name: "Llama 3.1 Nemotron 70B Instruct", + api: "openai-completions", + provider: "nvidia", + baseUrl: "https://integrate.api.nvidia.com/v1", + headers: {"NVCF-POLL-SECONDS":"3600"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: false, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 8192, + } satisfies Model<"openai-completions">, + "nvidia/llama-3.1-nemotron-ultra-253b-v1": { + id: "nvidia/llama-3.1-nemotron-ultra-253b-v1", + name: "Llama 3.1 Nemotron Ultra 253B", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -191,8 +230,8 @@ export const NVIDIA_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 131072, + contextWindow: 128000, + maxTokens: 16384, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": { id: "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning", @@ -251,28 +290,9 @@ export const NVIDIA_MODELS = { contextWindow: 1000000, maxTokens: 65536, } satisfies Model<"openai-completions">, - "nvidia/nvidia-nemotron-nano-9b-v2": { - id: "nvidia/nvidia-nemotron-nano-9b-v2", - name: "nvidia-nemotron-nano-9b-v2", - api: "openai-completions", - provider: "nvidia", - baseUrl: "https://integrate.api.nvidia.com/v1", - headers: {"NVCF-POLL-SECONDS":"3600"}, - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: true, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 131072, - } satisfies Model<"openai-completions">, - "openai/gpt-oss-120b": { - id: "openai/gpt-oss-120b", - name: "GPT-OSS-120B", + "nvidia/nemotron-3.5-lightning-30b-a3b": { + id: "nvidia/nemotron-3.5-lightning-30b-a3b", + name: "Nemotron 3.5 Lightning 30B A3B", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -286,8 +306,8 @@ export const NVIDIA_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 8192, + contextWindow: 262144, + maxTokens: 262144, } satisfies Model<"openai-completions">, "openai/gpt-oss-20b": { id: "openai/gpt-oss-20b", @@ -308,28 +328,9 @@ export const NVIDIA_MODELS = { contextWindow: 131072, maxTokens: 32768, } satisfies Model<"openai-completions">, - "qwen/qwen3.5-122b-a10b": { - id: "qwen/qwen3.5-122b-a10b", - name: "Qwen3.5 122B-A10B", - api: "openai-completions", - provider: "nvidia", - baseUrl: "https://integrate.api.nvidia.com/v1", - headers: {"NVCF-POLL-SECONDS":"3600"}, - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 65536, - } satisfies Model<"openai-completions">, - "stepfun-ai/step-3.5-flash": { - id: "stepfun-ai/step-3.5-flash", - name: "Step 3.5 Flash", + "poolside/laguna-xs-2.1": { + id: "poolside/laguna-xs-2.1", + name: "Laguna XS 2.1", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -343,12 +344,12 @@ export const NVIDIA_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 16384, } satisfies Model<"openai-completions">, - "stepfun-ai/step-3.7-flash": { - id: "stepfun-ai/step-3.7-flash", - name: "Step 3.7 Flash", + "z-ai/glm-5.3-flash": { + id: "z-ai/glm-5.3-flash", + name: "GLM-5.3-Flash", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -362,25 +363,6 @@ export const NVIDIA_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 16384, - } satisfies Model<"openai-completions">, - "z-ai/glm-5.2": { - id: "z-ai/glm-5.2", - name: "GLM-5.2", - api: "openai-completions", - provider: "nvidia", - baseUrl: "https://integrate.api.nvidia.com/v1", - headers: {"NVCF-POLL-SECONDS":"3600"}, - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: true, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, diff --git a/packages/ai/src/providers/openai.models.ts b/packages/ai/src/providers/openai.models.ts index 5f5846f..820977c 100644 --- a/packages/ai/src/providers/openai.models.ts +++ b/packages/ai/src/providers/openai.models.ts @@ -210,24 +210,6 @@ export const OPENAI_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"openai-responses">, - "gpt-5-codex": { - id: "gpt-5-codex", - name: "GPT-5-Codex", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, "gpt-5-mini": { id: "gpt-5-mini", name: "GPT-5 Mini", @@ -300,78 +282,6 @@ export const OPENAI_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "gpt-5.1-chat-latest": { - id: "gpt-5.1-chat-latest", - name: "GPT-5.1 Chat", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 16384, - } satisfies Model<"openai-responses">, - "gpt-5.1-codex": { - id: "gpt-5.1-codex", - name: "GPT-5.1 Codex", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, - "gpt-5.1-codex-max": { - id: "gpt-5.1-codex-max", - name: "GPT-5.1 Codex Max", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, - "gpt-5.1-codex-mini": { - id: "gpt-5.1-codex-mini", - name: "GPT-5.1 Codex mini", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 0.25, - output: 2, - cacheRead: 0.025, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, "gpt-5.2": { id: "gpt-5.2", name: "GPT-5.2", @@ -408,24 +318,6 @@ export const OPENAI_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"openai-responses">, - "gpt-5.2-codex": { - id: "gpt-5.2-codex", - name: "GPT-5.2 Codex", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - thinkingLevelMap: {"off":null,"xhigh":"xhigh"}, - input: ["text", "image"], - cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, - }, - contextWindow: 400000, - maxTokens: 128000, - } satisfies Model<"openai-responses">, "gpt-5.2-pro": { id: "gpt-5.2-pro", name: "GPT-5.2 Pro", @@ -620,11 +512,11 @@ export const OPENAI_MODELS = { thinkingLevelMap: {"off":"none","xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, - tiers: [{"inputTokensAbove":272000,"input":2,"output":9,"cacheRead":0.2,"cacheWrite":2.5}], + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, + tiers: [{"inputTokensAbove":272000,"input":0.4,"output":1.7999999999999998,"cacheRead":0.04,"cacheWrite":0.5}], }, contextWindow: 272000, maxTokens: 128000, @@ -639,11 +531,11 @@ export const OPENAI_MODELS = { thinkingLevelMap: {"off":"none","xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, - tiers: [{"inputTokensAbove":272000,"input":10,"output":45,"cacheRead":1,"cacheWrite":12.5}], + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + tiers: [{"inputTokensAbove":272000,"input":8,"output":30,"cacheRead":0.8,"cacheWrite":10}], }, contextWindow: 272000, maxTokens: 128000, @@ -658,15 +550,32 @@ export const OPENAI_MODELS = { thinkingLevelMap: {"off":"none","xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, - tiers: [{"inputTokensAbove":272000,"input":5,"output":22.5,"cacheRead":0.5,"cacheWrite":6.25}], + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, + tiers: [{"inputTokensAbove":272000,"input":4,"output":18,"cacheRead":0.4,"cacheWrite":5}], }, contextWindow: 272000, maxTokens: 128000, } satisfies Model<"openai-responses">, + "gpt-6-astra": { + id: "gpt-6-astra", + name: "GPT-6 Astra", + api: "openai-responses", + provider: "openai", + baseUrl: "https://api.openai.com/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, "gpt-realtime-2.1": { id: "gpt-realtime-2.1", name: "GPT-Realtime-2.1", @@ -735,23 +644,6 @@ export const OPENAI_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-responses">, - "o3-deep-research": { - id: "o3-deep-research", - name: "o3-deep-research", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - input: ["text", "image"], - cost: { - input: 10, - output: 40, - cacheRead: 2.5, - cacheWrite: 0, - }, - contextWindow: 200000, - maxTokens: 100000, - } satisfies Model<"openai-responses">, "o3-mini": { id: "o3-mini", name: "o3-mini", @@ -803,21 +695,4 @@ export const OPENAI_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-responses">, - "o4-mini-deep-research": { - id: "o4-mini-deep-research", - name: "o4-mini-deep-research", - api: "openai-responses", - provider: "openai", - baseUrl: "https://api.openai.com/v1", - reasoning: true, - input: ["text", "image"], - cost: { - input: 2, - output: 8, - cacheRead: 0.5, - cacheWrite: 0, - }, - contextWindow: 200000, - maxTokens: 100000, - } satisfies Model<"openai-responses">, } as const; diff --git a/packages/ai/src/providers/opencode-go.models.ts b/packages/ai/src/providers/opencode-go.models.ts index 93545da..22ee752 100644 --- a/packages/ai/src/providers/opencode-go.models.ts +++ b/packages/ai/src/providers/opencode-go.models.ts @@ -15,9 +15,28 @@ export const OPENCODE_GO_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, input: ["text"], cost: { - input: 0.14, - output: 0.28, - cacheRead: 0.0028, + input: 0.15, + output: 0.6, + cacheRead: 0.003, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek-v4-flash-vision-exp": { + id: "deepseek-v4-flash-vision-exp", + name: "DeepSeek V4 Flash Vision Exp", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.003, cacheWrite: 0, }, contextWindow: 1000000, @@ -25,7 +44,7 @@ export const OPENCODE_GO_MODELS = { } satisfies Model<"openai-completions">, "deepseek-v4-pro": { id: "deepseek-v4-pro", - name: "DeepSeek V4 Pro", + name: "DeepSeek V4 Pro (New)", api: "openai-completions", provider: "opencode-go", baseUrl: "https://opencode.ai/zen/go/v1", @@ -34,9 +53,28 @@ export const OPENCODE_GO_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, input: ["text"], cost: { - input: 0.435, - output: 0.87, - cacheRead: 0.003625, + input: 0.66, + output: 1.98, + cacheRead: 0.022, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek-v4.1-flash": { + id: "deepseek-v4.1-flash", + name: "DeepSeek V4.1 Flash", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.003, cacheWrite: 0, }, contextWindow: 1000000, @@ -79,9 +117,63 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "grok-4.5": { - id: "grok-4.5", - name: "Grok 4.5", + "glm-5.3": { + id: "glm-5.3", + name: "GLM-5.3", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "glm-5.3-flash": { + id: "glm-5.3-flash", + name: "GLM-5.3-Flash", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "gpt-5.6-luna": { + id: "gpt-5.6-luna", + name: "GPT-5.6 Luna", + api: "openai-responses", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "grok-4.6": { + id: "grok-4.6", + name: "Grok 4.6", api: "openai-responses", provider: "opencode-go", baseUrl: "https://opencode.ai/zen/go/v1", @@ -96,6 +188,42 @@ export const OPENCODE_GO_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"openai-responses">, + "hy3": { + id: "hy3", + name: "Hy3", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.14, + output: 0.58, + cacheRead: 0.035, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "hy4-preview": { + id: "hy4-preview", + name: "Hy4 preview", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.834, + output: 2.501, + cacheRead: 0.042, + cacheWrite: 0, + }, + contextWindow: 1024000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "kimi-k2.6": { id: "kimi-k2.6", name: "Kimi K2.6", @@ -135,7 +263,7 @@ export const OPENCODE_GO_MODELS = { } satisfies Model<"openai-completions">, "kimi-k3": { id: "kimi-k3", - name: "Kimi K3 (2x usage)", + name: "Kimi K3", api: "openai-completions", provider: "opencode-go", baseUrl: "https://opencode.ai/zen/go/v1", @@ -151,6 +279,24 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "longcat-2.0": { + id: "longcat-2.0", + name: "LongCat-2.0", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0.006, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "mimo-v2.5": { id: "mimo-v2.5", name: "MiMo V2.5", @@ -222,6 +368,40 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"anthropic-messages">, + "muse-spark-1.2-contributor": { + id: "muse-spark-1.2-contributor", + name: "Muse Spark 1.2 Contributor", + api: "openai-responses", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.002, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-responses">, + "muse-spark-1.3-contributor": { + id: "muse-spark-1.3-contributor", + name: "Muse Spark 1.3 Contributor", + api: "openai-responses", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.002, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-responses">, "qwen3.6-plus": { id: "qwen3.6-plus", name: "Qwen3.6 Plus", @@ -243,9 +423,10 @@ export const OPENCODE_GO_MODELS = { "qwen3.7-max": { id: "qwen3.7-max", name: "Qwen3.7 Max", - api: "anthropic-messages", + api: "openai-completions", provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, reasoning: true, input: ["text"], cost: { @@ -256,13 +437,14 @@ export const OPENCODE_GO_MODELS = { }, contextWindow: 1000000, maxTokens: 65536, - } satisfies Model<"anthropic-messages">, + } satisfies Model<"openai-completions">, "qwen3.7-plus": { id: "qwen3.7-plus", name: "Qwen3.7 Plus", - api: "anthropic-messages", + api: "openai-completions", provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, reasoning: true, input: ["text", "image"], cost: { @@ -273,5 +455,40 @@ export const OPENCODE_GO_MODELS = { }, contextWindow: 1000000, maxTokens: 65536, + } satisfies Model<"openai-completions">, + "qwen3.8-flash": { + id: "qwen3.8-flash", + name: "Qwen3.8 Flash", + api: "anthropic-messages", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.47, + cacheRead: 0.016, + cacheWrite: 0.2, + }, + contextWindow: 1000000, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, + "qwen3.8-max": { + id: "qwen3.8-max", + name: "Qwen3.8 Max", + api: "openai-completions", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/opencode.models.ts b/packages/ai/src/providers/opencode.models.ts index c278d38..a20bf16 100644 --- a/packages/ai/src/providers/opencode.models.ts +++ b/packages/ai/src/providers/opencode.models.ts @@ -41,39 +41,41 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-haiku-4-5": { - id: "claude-haiku-4-5", - name: "Claude Haiku 4.5", + "claude-fable-5-1": { + id: "claude-fable-5-1", + name: "Claude Fable 5.1", api: "anthropic-messages", provider: "opencode", baseUrl: "https://opencode.ai/zen", + compat: {"forceAdaptiveThinking":true}, reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, }, - contextWindow: 200000, - maxTokens: 64000, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "claude-opus-4-1": { - id: "claude-opus-4-1", - name: "Claude Opus 4.1", + "claude-haiku-4-5": { + id: "claude-haiku-4-5", + name: "Claude Haiku 4.5", api: "anthropic-messages", provider: "opencode", baseUrl: "https://opencode.ai/zen", reasoning: true, input: ["text", "image"], cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, }, contextWindow: 200000, - maxTokens: 32000, + maxTokens: 64000, } satisfies Model<"anthropic-messages">, "claude-opus-4-5": { id: "claude-opus-4-5", @@ -149,6 +151,23 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-opus-5": { + id: "claude-opus-5", + name: "Claude Opus 5", + api: "anthropic-messages", + provider: "opencode", + baseUrl: "https://opencode.ai/zen", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-sonnet-4": { id: "claude-sonnet-4", name: "Claude Sonnet 4", @@ -240,24 +259,24 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 384000, } satisfies Model<"openai-completions">, - "deepseek-v4-flash-free": { - id: "deepseek-v4-flash-free", - name: "DeepSeek V4 Flash Free", + "deepseek-v4-flash-vision-exp": { + id: "deepseek-v4-flash-vision-exp", + name: "DeepSeek V4 Flash Vision Exp", api: "openai-completions", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true}, reasoning: true, thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, - input: ["text"], + input: ["text", "image"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.14, + output: 0.28, + cacheRead: 0.028, cacheWrite: 0, }, - contextWindow: 200000, - maxTokens: 128000, + contextWindow: 1000000, + maxTokens: 384000, } satisfies Model<"openai-completions">, "deepseek-v4-pro": { id: "deepseek-v4-pro", @@ -332,6 +351,78 @@ export const OPENCODE_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, + "gemini-3.5-flash-lite": { + id: "gemini-3.5-flash-lite", + name: "Gemini 3.5 Flash Lite", + api: "google-generative-ai", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.3, + output: 2.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-3.6-flash": { + id: "gemini-3.6-flash", + name: "Gemini 3.6 Flash", + api: "google-generative-ai", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-3.7-flash": { + id: "gemini-3.7-flash", + name: "Gemini 3.7 Flash", + api: "google-generative-ai", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, + "gemini-3.8-flash": { + id: "gemini-3.8-flash", + name: "Gemini 3.8 Flash", + api: "google-generative-ai", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, "glm-5": { id: "glm-5", name: "GLM-5", @@ -386,6 +477,42 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, + "glm-5.3": { + id: "glm-5.3", + name: "GLM-5.3", + api: "openai-completions", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "glm-5.3-flash": { + id: "glm-5.3-flash", + name: "GLM-5.3-Flash", + api: "openai-completions", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "gpt-5": { id: "gpt-5", name: "GPT-5", @@ -684,17 +811,17 @@ export const OPENCODE_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, "gpt-5.6-sol": { id: "gpt-5.6-sol", - name: "GPT-5.6 Sol", + name: "GPT-5.6 Sol (50% Off)", api: "openai-responses", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", @@ -702,10 +829,10 @@ export const OPENCODE_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, @@ -728,6 +855,23 @@ export const OPENCODE_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, + "gpt-6-astra": { + id: "gpt-6-astra", + name: "GPT-6 Astra", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, "grok-4.5": { id: "grok-4.5", name: "Grok 4.5", @@ -736,6 +880,23 @@ export const OPENCODE_MODELS = { baseUrl: "https://opencode.ai/zen/v1", reasoning: true, input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"openai-responses">, + "grok-4.6": { + id: "grok-4.6", + name: "Grok 4.6", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], cost: { input: 2, output: 6, @@ -748,10 +909,10 @@ export const OPENCODE_MODELS = { "grok-build-0.1": { id: "grok-build-0.1", name: "Grok Build 0.1", - api: "openai-completions", + api: "openai-responses", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens"}, + compat: {"supportsReasoningEffort":false}, reasoning: true, thinkingLevelMap: {"off":null,"minimal":null,"low":null,"medium":null}, input: ["text", "image"], @@ -763,25 +924,7 @@ export const OPENCODE_MODELS = { }, contextWindow: 256000, maxTokens: 256000, - } satisfies Model<"openai-completions">, - "hy3-free": { - id: "hy3-free", - name: "Hy3 Free", - api: "openai-completions", - provider: "opencode", - baseUrl: "https://opencode.ai/zen/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, - reasoning: true, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 190000, - maxTokens: 64000, - } satisfies Model<"openai-completions">, + } satisfies Model<"openai-responses">, "kimi-k2.5": { id: "kimi-k2.5", name: "Kimi K2.5", @@ -836,6 +979,42 @@ export const OPENCODE_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"openai-completions">, + "kimi-k3": { + id: "kimi-k3", + name: "Kimi K3", + api: "openai-completions", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "ling-3.0-flash-fin-free": { + id: "ling-3.0-flash-fin-free", + name: "Ling 3.0 Flash Fin Free", + api: "openai-completions", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "mimo-v2.5-free": { id: "mimo-v2.5-free", name: "MiMo V2.5 Free", @@ -908,6 +1087,74 @@ export const OPENCODE_MODELS = { contextWindow: 512000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "muse-spark-1.2": { + id: "muse-spark-1.2", + name: "Muse Spark 1.2", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 4.25, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-responses">, + "muse-spark-1.2-contributor-free": { + id: "muse-spark-1.2-contributor-free", + name: "Muse Spark 1.2 Free", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-responses">, + "muse-spark-1.3": { + id: "muse-spark-1.3", + name: "Muse Spark 1.3", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 4.25, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-responses">, + "muse-spark-1.3-contributor-free": { + id: "muse-spark-1.3-contributor-free", + name: "Muse Spark 1.3 Free", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-responses">, "nemotron-3-ultra-free": { id: "nemotron-3-ultra-free", name: "Nemotron 3 Ultra Free", @@ -926,9 +1173,9 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "north-mini-code-free": { - id: "north-mini-code-free", - name: "North Mini Code Free", + "nemotron-3.5-lightning-free": { + id: "nemotron-3.5-lightning-free", + name: "Nemotron 3.5 Lightning Free", api: "openai-completions", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", @@ -941,8 +1188,8 @@ export const OPENCODE_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 64000, + contextWindow: 262144, + maxTokens: 262144, } satisfies Model<"openai-completions">, "qwen3.5-plus": { id: "qwen3.5-plus", diff --git a/packages/ai/src/providers/openrouter.models.ts b/packages/ai/src/providers/openrouter.models.ts index c1756cd..8e1ced7 100644 --- a/packages/ai/src/providers/openrouter.models.ts +++ b/packages/ai/src/providers/openrouter.models.ts @@ -4,24 +4,6 @@ import type { Model } from "../types.ts"; export const OPENROUTER_MODELS = { - "ai21/jamba-large-1.7": { - id: "ai21/jamba-large-1.7", - name: "AI21: Jamba Large 1.7", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 2, - output: 8, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 4096, - } satisfies Model<"openai-completions">, "aion-labs/aion-2.0": { id: "aion-labs/aion-2.0", name: "AionLabs: Aion-2.0", @@ -202,6 +184,60 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "anthropic/claude-fable-5.1": { + id: "anthropic/claude-fable-5.1", + name: "Anthropic: Claude Fable 5.1", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "anthropic/claude-fable-5.1:batch": { + id: "anthropic/claude-fable-5.1:batch", + name: "Anthropic: Claude Fable 5.1 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.125, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "anthropic/claude-fable-5:batch": { + id: "anthropic/claude-fable-5:batch", + name: "Anthropic: Claude Fable 5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "anthropic/claude-haiku-4.5": { id: "anthropic/claude-haiku-4.5", name: "Anthropic: Claude Haiku 4.5", @@ -220,6 +256,24 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"openai-completions">, + "anthropic/claude-haiku-4.5:batch": { + id: "anthropic/claude-haiku-4.5:batch", + name: "Anthropic: Claude Haiku 4.5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 2.5, + cacheRead: 0.05, + cacheWrite: 0.625, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "anthropic/claude-opus-4": { id: "anthropic/claude-opus-4", name: "Anthropic: Claude Opus 4", @@ -256,6 +310,24 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 32000, } satisfies Model<"openai-completions">, + "anthropic/claude-opus-4.1:batch": { + id: "anthropic/claude-opus-4.1:batch", + name: "Anthropic: Claude Opus 4.1 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 7.5, + output: 37.5, + cacheRead: 0.75, + cacheWrite: 9.375, + }, + contextWindow: 200000, + maxTokens: 32000, + } satisfies Model<"openai-completions">, "anthropic/claude-opus-4.5": { id: "anthropic/claude-opus-4.5", name: "Anthropic: Claude Opus 4.5", @@ -274,6 +346,24 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"openai-completions">, + "anthropic/claude-opus-4.5:batch": { + id: "anthropic/claude-opus-4.5:batch", + name: "Anthropic: Claude Opus 4.5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "anthropic/claude-opus-4.6": { id: "anthropic/claude-opus-4.6", name: "Anthropic: Claude Opus 4.6", @@ -293,6 +383,25 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "anthropic/claude-opus-4.6:batch": { + id: "anthropic/claude-opus-4.6:batch", + name: "Anthropic: Claude Opus 4.6 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + thinkingLevelMap: {"max":"max"}, + input: ["text", "image"], + cost: { + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "anthropic/claude-opus-4.7": { id: "anthropic/claude-opus-4.7", name: "Anthropic: Claude Opus 4.7", @@ -312,9 +421,9 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "anthropic/claude-opus-4.7-fast": { - id: "anthropic/claude-opus-4.7-fast", - name: "Anthropic: Claude Opus 4.7 (Fast)", + "anthropic/claude-opus-4.7:batch": { + id: "anthropic/claude-opus-4.7:batch", + name: "Anthropic: Claude Opus 4.7 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -323,10 +432,10 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 30, - output: 150, - cacheRead: 3, - cacheWrite: 37.5, + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, }, contextWindow: 1000000, maxTokens: 128000, @@ -350,9 +459,9 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "anthropic/claude-opus-4.8-fast": { - id: "anthropic/claude-opus-4.8-fast", - name: "Anthropic: Claude Opus 4.8 (Fast)", + "anthropic/claude-opus-4.8:batch": { + id: "anthropic/claude-opus-4.8:batch", + name: "Anthropic: Claude Opus 4.8 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -361,10 +470,46 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 10, - output: 50, - cacheRead: 1, - cacheWrite: 12.5, + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "anthropic/claude-opus-5": { + id: "anthropic/claude-opus-5", + name: "Anthropic: Claude Opus 5", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "anthropic/claude-opus-5:batch": { + id: "anthropic/claude-opus-5:batch", + name: "Anthropic: Claude Opus 5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, }, contextWindow: 1000000, maxTokens: 128000, @@ -405,6 +550,24 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"openai-completions">, + "anthropic/claude-sonnet-4.5:batch": { + id: "anthropic/claude-sonnet-4.5:batch", + name: "Anthropic: Claude Sonnet 4.5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0.15, + cacheWrite: 1.875, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "anthropic/claude-sonnet-4.6": { id: "anthropic/claude-sonnet-4.6", name: "Anthropic: Claude Sonnet 4.6", @@ -424,6 +587,25 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "anthropic/claude-sonnet-4.6:batch": { + id: "anthropic/claude-sonnet-4.6:batch", + name: "Anthropic: Claude Sonnet 4.6 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + thinkingLevelMap: {"max":"max"}, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0.15, + cacheWrite: 1.875, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "anthropic/claude-sonnet-5": { id: "anthropic/claude-sonnet-5", name: "Anthropic: Claude Sonnet 5", @@ -443,6 +625,25 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "anthropic/claude-sonnet-5:batch": { + id: "anthropic/claude-sonnet-5:batch", + name: "Anthropic: Claude Sonnet 5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "arcee-ai/trinity-large-thinking": { id: "arcee-ai/trinity-large-thinking", name: "Arcee AI: Trinity Large Thinking", @@ -461,24 +662,6 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 80000, } satisfies Model<"openai-completions">, - "arcee-ai/virtuoso-large": { - id: "arcee-ai/virtuoso-large", - name: "Arcee AI: Virtuoso Large", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.75, - output: 1.2, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 64000, - } satisfies Model<"openai-completions">, "auto": { id: "auto", name: "Auto", @@ -533,6 +716,42 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 32768, } satisfies Model<"openai-completions">, + "bytedance-seed/seed-2-1-turbo": { + id: "bytedance-seed/seed-2-1-turbo", + name: "ByteDance Seed: Seed 2.1 Turbo", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 2.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 235929, + } satisfies Model<"openai-completions">, + "bytedance-seed/seed-2.0-code": { + id: "bytedance-seed/seed-2.0-code", + name: "ByteDance Seed: Seed-2.0-Code", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 3, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "bytedance-seed/seed-2.0-lite": { id: "bytedance-seed/seed-2.0-lite", name: "ByteDance Seed: Seed-2.0-Lite", @@ -633,8 +852,8 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.2002, - output: 0.8001, + input: 0.2574, + output: 1.0287, cacheRead: 0, cacheWrite: 0, }, @@ -651,13 +870,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.27, - output: 1.12, - cacheRead: 0.135, + input: 0.25, + output: 1, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 163840, - maxTokens: 65536, + maxTokens: 147456, } satisfies Model<"openai-completions">, "deepseek/deepseek-chat-v3.1": { id: "deepseek/deepseek-chat-v3.1", @@ -769,7 +988,7 @@ export const OPENROUTER_MODELS = { } satisfies Model<"openai-completions">, "deepseek/deepseek-v4-flash": { id: "deepseek/deepseek-v4-flash", - name: "DeepSeek: DeepSeek V4 Flash", + name: "DeepSeek: DeepSeek V4 Flash 0423", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -778,17 +997,93 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, input: ["text"], cost: { - input: 0.098, - output: 0.196, - cacheRead: 0.0196, + input: 0.088606, + output: 0.177212, + cacheRead: 0.017721, cacheWrite: 0, }, - contextWindow: 1048575, - maxTokens: 4096, + contextWindow: 1024000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4-flash-0731": { + id: "deepseek/deepseek-v4-flash-0731", + name: "DeepSeek: DeepSeek V4 Flash 0731", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text"], + cost: { + input: 0.06, + output: 0.12, + cacheRead: 0.012, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4-flash-0731:batch": { + id: "deepseek/deepseek-v4-flash-0731:batch", + name: "DeepSeek: DeepSeek V4 Flash 0731 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text"], + cost: { + input: 0.11, + output: 0.33, + cacheRead: 0.0035, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4-flash-vision-exp": { + id: "deepseek/deepseek-v4-flash-vision-exp", + name: "DeepSeek: DeepSeek V4 Flash Vision Exp", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.22, + output: 0.66, + cacheRead: 0.007, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4-flash-vision-exp:batch": { + id: "deepseek/deepseek-v4-flash-vision-exp:batch", + name: "DeepSeek: DeepSeek V4 Flash Vision Exp (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.11, + output: 0.33, + cacheRead: 0.0035, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, } satisfies Model<"openai-completions">, "deepseek/deepseek-v4-pro": { id: "deepseek/deepseek-v4-pro", - name: "DeepSeek: DeepSeek V4 Pro", + name: "DeepSeek: DeepSeek V4 Pro 0423", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -797,14 +1092,89 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, input: ["text"], cost: { - input: 0.435, - output: 0.87, - cacheRead: 0.003625, + input: 1.6, + output: 3.2, + cacheRead: 0.135, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 393216, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4-pro-0813": { + id: "deepseek/deepseek-v4-pro-0813", + name: "DeepSeek: DeepSeek V4 Pro 0813", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text"], + cost: { + input: 0.9834, + output: 2.9502, + cacheRead: 0.03278, + cacheWrite: 0, + }, + contextWindow: 1024000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4-pro-0813:batch": { + id: "deepseek/deepseek-v4-pro-0813:batch", + name: "DeepSeek: DeepSeek V4 Pro 0813 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text"], + cost: { + input: 0.66, + output: 1.98, + cacheRead: 0.022, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4.1-flash": { + id: "deepseek/deepseek-v4.1-flash", + name: "DeepSeek: DeepSeek V4.1 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.003, cacheWrite: 0, }, contextWindow: 1048576, maxTokens: 384000, } satisfies Model<"openai-completions">, + "dots-studio/dots-3-note-preview:free": { + id: "dots-studio/dots-3-note-preview:free", + name: "Dots Studio: Dots3-Note Preview (free)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 512000, + maxTokens: 460800, + } satisfies Model<"openai-completions">, "google/gemini-2.5-flash": { id: "google/gemini-2.5-flash", name: "Google: Gemini 2.5 Flash", @@ -841,6 +1211,42 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 65535, } satisfies Model<"openai-completions">, + "google/gemini-2.5-flash-lite:batch": { + id: "google/gemini-2.5-flash-lite:batch", + name: "Google: Gemini 2.5 Flash Lite (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.2, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65535, + } satisfies Model<"openai-completions">, + "google/gemini-2.5-flash:batch": { + id: "google/gemini-2.5-flash:batch", + name: "Google: Gemini 2.5 Flash (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 1.25, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65535, + } satisfies Model<"openai-completions">, "google/gemini-2.5-pro": { id: "google/gemini-2.5-pro", name: "Google: Gemini 2.5 Pro", @@ -877,9 +1283,9 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"openai-completions">, - "google/gemini-2.5-pro-preview-05-06": { - id: "google/gemini-2.5-pro-preview-05-06", - name: "Google: Gemini 2.5 Pro Preview 05-06", + "google/gemini-2.5-pro:batch": { + id: "google/gemini-2.5-pro:batch", + name: "Google: Gemini 2.5 Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -887,13 +1293,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1.25, - output: 10, + input: 0.625, + output: 5, cacheRead: 0.125, - cacheWrite: 0.375, + cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 65535, + maxTokens: 65536, } satisfies Model<"openai-completions">, "google/gemini-3-flash-preview": { id: "google/gemini-3-flash-preview", @@ -911,7 +1317,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0.083333, }, contextWindow: 1048576, - maxTokens: 65535, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemini-3-flash-preview:batch": { + id: "google/gemini-3-flash-preview:batch", + name: "Google: Gemini 3 Flash Preview (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.25, + output: 1.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, } satisfies Model<"openai-completions">, "google/gemini-3-pro-image": { id: "google/gemini-3-pro-image", @@ -967,6 +1391,24 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"openai-completions">, + "google/gemini-3.1-flash-lite:batch": { + id: "google/gemini-3.1-flash-lite:batch", + name: "Google: Gemini 3.1 Flash Lite (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.125, + output: 0.75, + cacheRead: 0.0125, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, "google/gemini-3.1-pro-preview": { id: "google/gemini-3.1-pro-preview", name: "Google: Gemini 3.1 Pro Preview", @@ -1003,6 +1445,24 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"openai-completions">, + "google/gemini-3.1-pro-preview:batch": { + id: "google/gemini-3.1-pro-preview:batch", + name: "Google: Gemini 3.1 Pro Preview (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 6, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, "google/gemini-3.5-flash": { id: "google/gemini-3.5-flash", name: "Google: Gemini 3.5 Flash", @@ -1021,45 +1481,45 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"openai-completions">, - "google/gemma-3-12b-it": { - id: "google/gemma-3-12b-it", - name: "Google: Gemma 3 12B", + "google/gemini-3.5-flash-lite": { + id: "google/gemini-3.5-flash-lite", + name: "Google: Gemini 3.5 Flash Lite", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { - input: 0.05, - output: 0.15, - cacheRead: 0, - cacheWrite: 0, + input: 0.3, + output: 2.5, + cacheRead: 0.03, + cacheWrite: 0.083333, }, - contextWindow: 131072, - maxTokens: 16384, + contextWindow: 1048576, + maxTokens: 65536, } satisfies Model<"openai-completions">, - "google/gemma-3-27b-it": { - id: "google/gemma-3-27b-it", - name: "Google: Gemma 3 27B", + "google/gemini-3.5-flash-lite:batch": { + id: "google/gemini-3.5-flash-lite:batch", + name: "Google: Gemini 3.5 Flash Lite (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { - input: 0.1, - output: 0.3, - cacheRead: 0, + input: 0.15, + output: 1.25, + cacheRead: 0.015, cacheWrite: 0, }, - contextWindow: 110000, - maxTokens: 4096, + contextWindow: 1048576, + maxTokens: 65536, } satisfies Model<"openai-completions">, - "google/gemma-4-26b-a4b-it": { - id: "google/gemma-4-26b-a4b-it", - name: "Google: Gemma 4 26B A4B ", + "google/gemini-3.5-flash:batch": { + id: "google/gemini-3.5-flash:batch", + name: "Google: Gemini 3.5 Flash (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1067,17 +1527,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.07, - output: 0.34, - cacheRead: 0, + input: 0.75, + output: 4.5, + cacheRead: 0.075, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 16384, + contextWindow: 1048576, + maxTokens: 65536, } satisfies Model<"openai-completions">, - "google/gemma-4-26b-a4b-it:free": { - id: "google/gemma-4-26b-a4b-it:free", - name: "Google: Gemma 4 26B A4B (free)", + "google/gemini-3.6-flash": { + id: "google/gemini-3.6-flash", + name: "Google: Gemini 3.6 Flash", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1085,17 +1545,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0.041667, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 1048576, + maxTokens: 65536, } satisfies Model<"openai-completions">, - "google/gemma-4-31b-it": { - id: "google/gemma-4-31b-it", - name: "Google: Gemma 4 31B", + "google/gemini-3.6-flash:batch": { + id: "google/gemini-3.6-flash:batch", + name: "Google: Gemini 3.6 Flash (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1103,13 +1563,175 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.22, - output: 0.55, - cacheRead: 0.12, - cacheWrite: 0, + input: 0.375, + output: 1.875, + cacheRead: 0.0375, + cacheWrite: 0.041667, }, - contextWindow: 262144, - maxTokens: 262144, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemini-3.7-flash": { + id: "google/gemini-3.7-flash", + name: "Google: Gemini 3.7 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0.041667, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemini-3.7-flash:batch": { + id: "google/gemini-3.7-flash:batch", + name: "Google: Gemini 3.7 Flash (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.375, + output: 1.875, + cacheRead: 0.0375, + cacheWrite: 0.041667, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemini-3.8-flash": { + id: "google/gemini-3.8-flash", + name: "Google: Gemini 3.8 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0.041667, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemini-3.8-flash:batch": { + id: "google/gemini-3.8-flash:batch", + name: "Google: Gemini 3.8 Flash (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.375, + output: 1.875, + cacheRead: 0.0375, + cacheWrite: 0.041667, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemma-3-12b-it": { + id: "google/gemma-3-12b-it", + name: "Google: Gemma 3 12B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.15, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 16384, + } satisfies Model<"openai-completions">, + "google/gemma-3-27b-it": { + id: "google/gemma-3-27b-it", + name: "Google: Gemma 3 27B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.08, + output: 0.45, + cacheRead: 0.04, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 117964, + } satisfies Model<"openai-completions">, + "google/gemma-4-26b-a4b-it": { + id: "google/gemma-4-26b-a4b-it", + name: "Google: Gemma 4 26B A4B ", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.09, + output: 0.3, + cacheRead: 0.05, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 235929, + } satisfies Model<"openai-completions">, + "google/gemma-4-26b-a4b-it:free": { + id: "google/gemma-4-26b-a4b-it:free", + name: "Google: Gemma 4 26B A4B (free)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "google/gemma-4-31b-it": { + id: "google/gemma-4-31b-it", + name: "Google: Gemma 4 31B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.09, + output: 0.34, + cacheRead: 0.05, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 16384, } satisfies Model<"openai-completions">, "google/gemma-4-31b-it:free": { id: "google/gemma-4-31b-it:free", @@ -1129,23 +1751,23 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 32768, } satisfies Model<"openai-completions">, - "ibm-granite/granite-4.1-8b": { - id: "ibm-granite/granite-4.1-8b", - name: "IBM: Granite 4.1 8B", + "ibm-granite/granite-4.2-8b": { + id: "ibm-granite/granite-4.2-8b", + name: "IBM: Granite 4.2 8B", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, input: ["text"], cost: { - input: 0.05, - output: 0.1, - cacheRead: 0.05, + input: 0.06, + output: 0.25, + cacheRead: 0.015, cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 131072, + maxTokens: 117964, } satisfies Model<"openai-completions">, "inception/mercury-2": { id: "inception/mercury-2", @@ -1166,45 +1788,64 @@ export const OPENROUTER_MODELS = { contextWindow: 128000, maxTokens: 50000, } satisfies Model<"openai-completions">, - "inclusionai/ling-2.6-1t": { - id: "inclusionai/ling-2.6-1t", - name: "inclusionAI: Ling-2.6-1T", + "inception/mercury-2.5": { + id: "inception/mercury-2.5", + name: "Inception: Mercury 2.5", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, + thinkingLevelMap: {"off":null}, input: ["text"], cost: { - input: 0.075, - output: 0.625, - cacheRead: 0.015, + input: 0.04, + output: 0.15, + cacheRead: 0.004, + cacheWrite: 0, + }, + contextWindow: 260000, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "inclusionai/ling-3.0-flash": { + id: "inclusionai/ling-3.0-flash", + name: "inclusionAI: Ling 3.0 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.021, + output: 0.063, + cacheRead: 0.0042, cacheWrite: 0, }, contextWindow: 262144, maxTokens: 32768, } satisfies Model<"openai-completions">, - "inclusionai/ling-2.6-flash": { - id: "inclusionai/ling-2.6-flash", - name: "inclusionAI: Ling-2.6-flash", + "inclusionai/ling-3.0-flash-fin": { + id: "inclusionai/ling-3.0-flash-fin", + name: "inclusionAI: Ling 3.0 Flash Fin", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, input: ["text"], cost: { - input: 0.01, - output: 0.03, - cacheRead: 0.002, + input: 0.06, + output: 0.18, + cacheRead: 0.012, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 32768, + maxTokens: 235929, } satisfies Model<"openai-completions">, - "inclusionai/ring-2.6-1t": { - id: "inclusionai/ring-2.6-1t", - name: "inclusionAI: Ring-2.6-1T", + "inclusionai/ling-3.0-flash-fin:free": { + id: "inclusionai/ling-3.0-flash-fin:free", + name: "inclusionAI: Ling 3.0 Flash Fin (free)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1212,31 +1853,67 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.075, - output: 0.625, - cacheRead: 0.015, + input: 0, + output: 0, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 65536, + maxTokens: 32768, } satisfies Model<"openai-completions">, - "kwaipilot/kat-coder-air-v2.5": { - id: "kwaipilot/kat-coder-air-v2.5", - name: "Kwaipilot: KAT-Coder-Air V2.5", + "inclusionai/ling-3.0-flash-sante:free": { + id: "inclusionai/ling-3.0-flash-sante:free", + name: "inclusionAI: Ling 3.0 Flash Sante (free)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, input: ["text"], cost: { - input: 0.15, - output: 0.6, - cacheRead: 0.03, + input: 0, + output: 0, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 80000, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "inclusionai/ling-3.0-flash-vl": { + id: "inclusionai/ling-3.0-flash-vl", + name: "inclusionAI: Ling 3.0 Flash VL", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.06, + output: 0.18, + cacheRead: 0.012, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "inclusionai/ling-3.0-flash-vl:free": { + id: "inclusionai/ling-3.0-flash-vl:free", + name: "inclusionAI: Ling 3.0 Flash VL (free)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, } satisfies Model<"openai-completions">, "kwaipilot/kat-coder-pro-v2": { id: "kwaipilot/kat-coder-pro-v2", @@ -1253,8 +1930,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 80000, + contextWindow: 262144, + maxTokens: 144000, } satisfies Model<"openai-completions">, "kwaipilot/kat-coder-pro-v2.5": { id: "kwaipilot/kat-coder-pro-v2.5", @@ -1271,8 +1948,44 @@ export const OPENROUTER_MODELS = { cacheRead: 0.15, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 80000, + contextWindow: 262144, + maxTokens: 235929, + } satisfies Model<"openai-completions">, + "liquid/lfm-2.5-2.6b:free": { + id: "liquid/lfm-2.5-2.6b:free", + name: "LiquidAI: LFM2.5-2.6B (free)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 65536, + maxTokens: 8192, + } satisfies Model<"openai-completions">, + "meituan/longcat-2.0": { + id: "meituan/longcat-2.0", + name: "Meituan: LongCat 2.0", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0.006, + cacheWrite: 0, + }, + contextWindow: 1048756, + maxTokens: 262144, } satisfies Model<"openai-completions">, "meta-llama/llama-3.1-70b-instruct": { id: "meta-llama/llama-3.1-70b-instruct", @@ -1308,7 +2021,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 131072, + maxTokens: 117964, } satisfies Model<"openai-completions">, "meta-llama/llama-3.3-70b-instruct": { id: "meta-llama/llama-3.3-70b-instruct", @@ -1320,31 +2033,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.13, - output: 0.4, + input: 0.1, + output: 0.32, cacheRead: 0, cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 128000, - } satisfies Model<"openai-completions">, - "meta-llama/llama-3.3-70b-instruct:free": { - id: "meta-llama/llama-3.3-70b-instruct:free", - name: "Meta: Llama 3.3 70B Instruct (free)", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 65536, - maxTokens: 4096, + maxTokens: 16384, } satisfies Model<"openai-completions">, "meta-llama/llama-4-maverick": { id: "meta-llama/llama-4-maverick", @@ -1356,12 +2051,12 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 0.2, - output: 0.8, + input: 0.1875, + output: 0.6525, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1048576, + contextWindow: 128000, maxTokens: 16384, } satisfies Model<"openai-completions">, "meta-llama/llama-4-scout": { @@ -1382,6 +2077,42 @@ export const OPENROUTER_MODELS = { contextWindow: 327680, maxTokens: 16384, } satisfies Model<"openai-completions">, + "meta/muse-glimmer-30b": { + id: "meta/muse-glimmer-30b", + name: "Meta: Muse Glimmer 30B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.35, + output: 1.5, + cacheRead: 0.04, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 117964, + } satisfies Model<"openai-completions">, + "meta/muse-glimmer-30b:batch": { + id: "meta/muse-glimmer-30b:batch", + name: "Meta: Muse Glimmer 30B (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.175, + output: 0.75, + cacheRead: 0.02, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 117964, + } satisfies Model<"openai-completions">, "meta/muse-spark-1.1": { id: "meta/muse-spark-1.1", name: "Meta: Muse Spark 1.1", @@ -1398,7 +2129,79 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 4096, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "meta/muse-spark-1.2": { + id: "meta/muse-spark-1.2", + name: "Meta: Muse Spark 1.2", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 4.25, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "meta/muse-spark-1.2-contributor": { + id: "meta/muse-spark-1.2-contributor", + name: "Meta: Muse Spark 1.2 Contributor", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.002, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "meta/muse-spark-1.3": { + id: "meta/muse-spark-1.3", + name: "Meta: Muse Spark 1.3", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 4.25, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "meta/muse-spark-1.3-contributor": { + id: "meta/muse-spark-1.3-contributor", + name: "Meta: Muse Spark 1.3 Contributor", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.002, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, } satisfies Model<"openai-completions">, "minimax/minimax-m1": { id: "minimax/minimax-m1", @@ -1410,7 +2213,7 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.55, + input: 0.4, output: 2.2, cacheRead: 0, cacheWrite: 0, @@ -1428,9 +2231,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.3, - output: 1.2, - cacheRead: 0.03, + input: 0.255, + output: 1.02, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 204800, @@ -1464,13 +2267,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.15, - output: 0.9, - cacheRead: 0.05, + input: 0.27, + output: 1.08, + cacheRead: 0.027, cacheWrite: 0, }, - contextWindow: 196608, - maxTokens: 196608, + contextWindow: 200000, + maxTokens: 128000, } satisfies Model<"openai-completions">, "minimax/minimax-m2.7": { id: "minimax/minimax-m2.7", @@ -1482,12 +2285,12 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.25, - output: 1, - cacheRead: 0.05, + input: 0.3, + output: 1.2, + cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 196608, + contextWindow: 204800, maxTokens: 131072, } satisfies Model<"openai-completions">, "minimax/minimax-m3": { @@ -1508,6 +2311,24 @@ export const OPENROUTER_MODELS = { contextWindow: 524288, maxTokens: 512000, } satisfies Model<"openai-completions">, + "minimax/minimax-m3:batch": { + id: "minimax/minimax-m3:batch", + name: "MiniMax: MiniMax M3 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0.06, + cacheWrite: 0, + }, + contextWindow: 524288, + maxTokens: 471859, + } satisfies Model<"openai-completions">, "mistralai/codestral-2508": { id: "mistralai/codestral-2508", name: "Mistral: Codestral 2508", @@ -1524,7 +2345,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 256000, - maxTokens: 4096, + maxTokens: 204800, + } satisfies Model<"openai-completions">, + "mistralai/codestral-2508:batch": { + id: "mistralai/codestral-2508:batch", + name: "Mistral: Codestral 2508 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text"], + cost: { + input: 0.15, + output: 0.45, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 204800, } satisfies Model<"openai-completions">, "mistralai/devstral-2512": { id: "mistralai/devstral-2512", @@ -1542,7 +2381,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 209715, } satisfies Model<"openai-completions">, "mistralai/ministral-14b-2512": { id: "mistralai/ministral-14b-2512", @@ -1560,7 +2399,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 209715, } satisfies Model<"openai-completions">, "mistralai/ministral-3b-2512": { id: "mistralai/ministral-3b-2512", @@ -1578,7 +2417,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 4096, + maxTokens: 104857, } satisfies Model<"openai-completions">, "mistralai/ministral-8b-2512": { id: "mistralai/ministral-8b-2512", @@ -1596,7 +2435,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 209715, + } satisfies Model<"openai-completions">, + "mistralai/ministral-8b-2512:batch": { + id: "mistralai/ministral-8b-2512:batch", + name: "Mistral: Ministral 3 8B 2512 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.075, + output: 0.075, + cacheRead: 0.0075, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 209715, } satisfies Model<"openai-completions">, "mistralai/mistral-large": { id: "mistralai/mistral-large", @@ -1614,7 +2471,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 128000, - maxTokens: 4096, + maxTokens: 102400, } satisfies Model<"openai-completions">, "mistralai/mistral-large-2407": { id: "mistralai/mistral-large-2407", @@ -1632,7 +2489,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 4096, + maxTokens: 104857, } satisfies Model<"openai-completions">, "mistralai/mistral-large-2512": { id: "mistralai/mistral-large-2512", @@ -1650,7 +2507,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 209715, + } satisfies Model<"openai-completions">, + "mistralai/mistral-large-2512:batch": { + id: "mistralai/mistral-large-2512:batch", + name: "Mistral: Mistral Large 3 2512 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.25, + output: 0.75, + cacheRead: 0.025, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 209715, } satisfies Model<"openai-completions">, "mistralai/mistral-medium-3": { id: "mistralai/mistral-medium-3", @@ -1668,7 +2543,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 4096, + maxTokens: 104857, } satisfies Model<"openai-completions">, "mistralai/mistral-medium-3-5": { id: "mistralai/mistral-medium-3-5", @@ -1686,7 +2561,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 209715, + } satisfies Model<"openai-completions">, + "mistralai/mistral-medium-3-5:batch": { + id: "mistralai/mistral-medium-3-5:batch", + name: "Mistral: Mistral Medium 3.5 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 209715, } satisfies Model<"openai-completions">, "mistralai/mistral-medium-3.1": { id: "mistralai/mistral-medium-3.1", @@ -1704,7 +2597,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 4096, + maxTokens: 104857, + } satisfies Model<"openai-completions">, + "mistralai/mistral-medium-3.1:batch": { + id: "mistralai/mistral-medium-3.1:batch", + name: "Mistral: Mistral Medium 3.1 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1, + cacheRead: 0.02, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 104857, } satisfies Model<"openai-completions">, "mistralai/mistral-nemo": { id: "mistralai/mistral-nemo", @@ -1740,7 +2651,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 32768, - maxTokens: 4096, + maxTokens: 26214, } satisfies Model<"openai-completions">, "mistralai/mistral-small-2603": { id: "mistralai/mistral-small-2603", @@ -1758,7 +2669,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 209715, + } satisfies Model<"openai-completions">, + "mistralai/mistral-small-2603:batch": { + id: "mistralai/mistral-small-2603:batch", + name: "Mistral: Mistral Small 4 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.075, + output: 0.3, + cacheRead: 0.0075, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 209715, } satisfies Model<"openai-completions">, "mistralai/mistral-small-3.2-24b-instruct": { id: "mistralai/mistral-small-3.2-24b-instruct", @@ -1770,13 +2699,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 0.1, - output: 0.3, - cacheRead: 0.01, + input: 0.09375, + output: 0.25, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 4096, + contextWindow: 256000, + maxTokens: 16384, } satisfies Model<"openai-completions">, "mistralai/mixtral-8x22b-instruct": { id: "mistralai/mixtral-8x22b-instruct", @@ -1794,7 +2723,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 65536, - maxTokens: 4096, + maxTokens: 52428, } satisfies Model<"openai-completions">, "mistralai/voxtral-small-24b-2507": { id: "mistralai/voxtral-small-24b-2507", @@ -1811,8 +2740,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0.01, cacheWrite: 0, }, - contextWindow: 32000, - maxTokens: 4096, + contextWindow: 32768, + maxTokens: 26214, } satisfies Model<"openai-completions">, "moonshotai/kimi-k2": { id: "moonshotai/kimi-k2", @@ -1830,7 +2759,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 100352, + maxTokens: 98304, } satisfies Model<"openai-completions">, "moonshotai/kimi-k2-0905": { id: "moonshotai/kimi-k2-0905", @@ -1848,7 +2777,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 100352, + maxTokens: 98304, } satisfies Model<"openai-completions">, "moonshotai/kimi-k2-thinking": { id: "moonshotai/kimi-k2-thinking", @@ -1866,7 +2795,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 100352, + maxTokens: 98304, } satisfies Model<"openai-completions">, "moonshotai/kimi-k2.5": { id: "moonshotai/kimi-k2.5", @@ -1896,13 +2825,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.684, - output: 3.42, - cacheRead: 0.144, + input: 0.95, + output: 4, + cacheRead: 0.16, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "moonshotai/kimi-k2.7-code": { id: "moonshotai/kimi-k2.7-code", @@ -1914,13 +2843,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.85, - output: 3.8, - cacheRead: 0.17, + input: 0.7062, + output: 3.21, + cacheRead: 0.18, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "moonshotai/kimi-k3": { id: "moonshotai/kimi-k3", @@ -1932,17 +2861,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, + input: 2.648138, + output: 13.282724, + cacheRead: 0.302644, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 4096, + maxTokens: 943718, } satisfies Model<"openai-completions">, - "nex-agi/nex-n2-mini": { - id: "nex-agi/nex-n2-mini", - name: "Nex AGI: Nex-N2-Mini", + "moonshotai/kimi-k3:batch": { + id: "moonshotai/kimi-k3:batch", + name: "MoonshotAI: Kimi K3 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1950,17 +2879,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.025, - output: 0.1, - cacheRead: 0.0025, + input: 3, + output: 15, + cacheRead: 0.3, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 262144, + contextWindow: 1048576, + maxTokens: 943718, } satisfies Model<"openai-completions">, - "nex-agi/nex-n2-pro": { - id: "nex-agi/nex-n2-pro", - name: "Nex AGI: Nex-N2-Pro", + "nex-agi/nex-n2.5-mini:free": { + id: "nex-agi/nex-n2.5-mini:free", + name: "Nex AGI: Nex-N2.5-Mini (free)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1968,35 +2897,35 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.25, - output: 1, - cacheRead: 0.025, + input: 0, + output: 0, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, - "nvidia/nemotron-3-nano-30b-a3b": { - id: "nvidia/nemotron-3-nano-30b-a3b", - name: "NVIDIA: Nemotron 3 Nano 30B A3B", + "nex-agi/nex-n2.5-pro:free": { + id: "nex-agi/nex-n2.5-pro:free", + name: "Nex AGI: Nex-N2.5-Pro (free)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.05, - output: 0.2, + input: 0, + output: 0, cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 228000, + maxTokens: 235929, } satisfies Model<"openai-completions">, - "nvidia/nemotron-3-nano-30b-a3b:free": { - id: "nvidia/nemotron-3-nano-30b-a3b:free", - name: "NVIDIA: Nemotron 3 Nano 30B A3B (free)", + "nvidia/nemotron-3-nano-30b-a3b": { + id: "nvidia/nemotron-3-nano-30b-a3b", + name: "NVIDIA: Nemotron 3 Nano 30B A3B", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -2004,13 +2933,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.05, + output: 0.2, + cacheRead: 0.03, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 4096, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free": { id: "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free", @@ -2040,13 +2969,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.21, - output: 0.455, - cacheRead: 0.06, + input: 0.08, + output: 0.45, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 4096, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-super-120b-a12b:free": { id: "nvidia/nemotron-3-super-120b-a12b:free", @@ -2064,7 +2993,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-ultra-550b-a55b": { id: "nvidia/nemotron-3-ultra-550b-a55b", @@ -2076,13 +3005,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.6, - output: 3.6, - cacheRead: 0.2, + input: 0.625, + output: 3.125, + cacheRead: 0.1875, cacheWrite: 0, }, - contextWindow: 512288, - maxTokens: 4096, + contextWindow: 256000, + maxTokens: 32768, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-ultra-550b-a55b:free": { id: "nvidia/nemotron-3-ultra-550b-a55b:free", @@ -2102,27 +3031,27 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 65536, } satisfies Model<"openai-completions">, - "nvidia/nemotron-nano-12b-v2-vl:free": { - id: "nvidia/nemotron-nano-12b-v2-vl:free", - name: "NVIDIA: Nemotron Nano 12B 2 VL (free)", + "nvidia/nemotron-3.5-lightning": { + id: "nvidia/nemotron-3.5-lightning", + name: "NVIDIA: Nemotron 3.5 Lightning", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text", "image"], + input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.08, + output: 0.2, + cacheRead: 0.04, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 128000, + contextWindow: 262144, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "nvidia/nemotron-nano-9b-v2:free": { - id: "nvidia/nemotron-nano-9b-v2:free", - name: "NVIDIA: Nemotron Nano 9B V2 (free)", + "nvidia/nemotron-3.5-lightning:free": { + id: "nvidia/nemotron-3.5-lightning:free", + name: "NVIDIA: Nemotron 3.5 Lightning (free)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -2135,8 +3064,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 1000000, + maxTokens: 65536, } satisfies Model<"openai-completions">, "openai/gpt-3.5-turbo": { id: "openai/gpt-3.5-turbo", @@ -2172,7 +3101,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 4095, - maxTokens: 4096, + maxTokens: 3685, } satisfies Model<"openai-completions">, "openai/gpt-3.5-turbo-16k": { id: "openai/gpt-3.5-turbo-16k", @@ -2192,6 +3121,24 @@ export const OPENROUTER_MODELS = { contextWindow: 16385, maxTokens: 4096, } satisfies Model<"openai-completions">, + "openai/gpt-3.5-turbo:batch": { + id: "openai/gpt-3.5-turbo:batch", + name: "OpenAI: GPT-3.5 Turbo (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text"], + cost: { + input: 0.25, + output: 0.75, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 16385, + maxTokens: 4096, + } satisfies Model<"openai-completions">, "openai/gpt-4": { id: "openai/gpt-4", name: "OpenAI: GPT-4", @@ -2228,18 +3175,18 @@ export const OPENROUTER_MODELS = { contextWindow: 128000, maxTokens: 4096, } satisfies Model<"openai-completions">, - "openai/gpt-4-turbo-preview": { - id: "openai/gpt-4-turbo-preview", - name: "OpenAI: GPT-4 Turbo Preview", + "openai/gpt-4-turbo:batch": { + id: "openai/gpt-4-turbo:batch", + name: "OpenAI: GPT-4 Turbo (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { - input: 10, - output: 30, + input: 5, + output: 15, cacheRead: 0, cacheWrite: 0, }, @@ -2282,6 +3229,24 @@ export const OPENROUTER_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"openai-completions">, + "openai/gpt-4.1-mini:batch": { + id: "openai/gpt-4.1-mini:batch", + name: "OpenAI: GPT-4.1 Mini (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.2, + output: 0.8, + cacheRead: 0.05, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "openai/gpt-4.1-nano": { id: "openai/gpt-4.1-nano", name: "OpenAI: GPT-4.1 Nano", @@ -2300,6 +3265,42 @@ export const OPENROUTER_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"openai-completions">, + "openai/gpt-4.1-nano:batch": { + id: "openai/gpt-4.1-nano:batch", + name: "OpenAI: GPT-4.1 Nano (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.2, + cacheRead: 0.0125, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "openai/gpt-4.1:batch": { + id: "openai/gpt-4.1:batch", + name: "OpenAI: GPT-4.1 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 1, + output: 4, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "openai/gpt-4o": { id: "openai/gpt-4o", name: "OpenAI: GPT-4o", @@ -2408,27 +3409,45 @@ export const OPENROUTER_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"openai-completions">, - "openai/gpt-5": { - id: "openai/gpt-5", - name: "OpenAI: GPT-5", + "openai/gpt-4o-mini:batch": { + id: "openai/gpt-4o-mini:batch", + name: "OpenAI: GPT-4o-mini (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: true, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.075, + output: 0.3, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"openai-completions">, + "openai/gpt-4o:batch": { + id: "openai/gpt-4o:batch", + name: "OpenAI: GPT-4o (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, input: ["text", "image"], cost: { input: 1.25, - output: 10, - cacheRead: 0.125, + output: 5, + cacheRead: 0.625, cacheWrite: 0, }, - contextWindow: 400000, - maxTokens: 128000, + contextWindow: 128000, + maxTokens: 16384, } satisfies Model<"openai-completions">, - "openai/gpt-5-codex": { - id: "openai/gpt-5-codex", - name: "OpenAI: GPT-5 Codex", + "openai/gpt-5": { + id: "openai/gpt-5", + name: "OpenAI: GPT-5", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -2462,6 +3481,24 @@ export const OPENROUTER_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "openai/gpt-5-mini:batch": { + id: "openai/gpt-5-mini:batch", + name: "OpenAI: GPT-5 Mini (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.125, + output: 1, + cacheRead: 0.0125, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "openai/gpt-5-nano": { id: "openai/gpt-5-nano", name: "OpenAI: GPT-5 Nano", @@ -2480,6 +3517,24 @@ export const OPENROUTER_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "openai/gpt-5-nano:batch": { + id: "openai/gpt-5-nano:batch", + name: "OpenAI: GPT-5 Nano (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.025, + output: 0.2, + cacheRead: 0.0025, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "openai/gpt-5-pro": { id: "openai/gpt-5-pro", name: "OpenAI: GPT-5 Pro", @@ -2490,107 +3545,467 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 15, - output: 120, + input: 15, + output: 120, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5-pro:batch": { + id: "openai/gpt-5-pro:batch", + name: "OpenAI: GPT-5 Pro (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 7.5, + output: 60, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.1": { + id: "openai/gpt-5.1", + name: "OpenAI: GPT-5.1", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 10, + cacheRead: 0.125, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.1-codex": { + id: "openai/gpt-5.1-codex", + name: "OpenAI: GPT-5.1-Codex", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 10, + cacheRead: 0.13, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.1-codex-max": { + id: "openai/gpt-5.1-codex-max", + name: "OpenAI: GPT-5.1-Codex-Max", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 10, + cacheRead: 0.125, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.1-codex-mini": { + id: "openai/gpt-5.1-codex-mini", + name: "OpenAI: GPT-5.1-Codex-Mini", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.25, + output: 2, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.1:batch": { + id: "openai/gpt-5.1:batch", + name: "OpenAI: GPT-5.1 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.625, + output: 5, + cacheRead: 0.0625, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.2": { + id: "openai/gpt-5.2", + name: "OpenAI: GPT-5.2", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1.75, + output: 14, + cacheRead: 0.175, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.2-chat": { + id: "openai/gpt-5.2-chat", + name: "OpenAI: GPT-5.2 Chat", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1.75, + output: 14, + cacheRead: 0.175, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 32000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.2-codex": { + id: "openai/gpt-5.2-codex", + name: "OpenAI: GPT-5.2-Codex", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1.75, + output: 14, + cacheRead: 0.175, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.2-pro": { + id: "openai/gpt-5.2-pro", + name: "OpenAI: GPT-5.2 Pro", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 21, + output: 168, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.2-pro:batch": { + id: "openai/gpt-5.2-pro:batch", + name: "OpenAI: GPT-5.2 Pro (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 10.5, + output: 84, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.2:batch": { + id: "openai/gpt-5.2:batch", + name: "OpenAI: GPT-5.2 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.875, + output: 7, + cacheRead: 0.0875, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.3-codex": { + id: "openai/gpt-5.3-codex", + name: "OpenAI: GPT-5.3-Codex", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1.75, + output: 14, + cacheRead: 0.175, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.4": { + id: "openai/gpt-5.4", + name: "OpenAI: GPT-5.4", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 2.5, + output: 15, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.4-mini": { + id: "openai/gpt-5.4-mini", + name: "OpenAI: GPT-5.4 Mini", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.75, + output: 4.5, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.4-mini:batch": { + id: "openai/gpt-5.4-mini:batch", + name: "OpenAI: GPT-5.4 Mini (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.375, + output: 2.25, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.4-nano": { + id: "openai/gpt-5.4-nano", + name: "OpenAI: GPT-5.4 Nano", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1.25, + cacheRead: 0.02, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.4-nano:batch": { + id: "openai/gpt-5.4-nano:batch", + name: "OpenAI: GPT-5.4 Nano (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.625, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-5.4-pro": { + id: "openai/gpt-5.4-pro", + name: "OpenAI: GPT-5.4 Pro", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 30, + output: 180, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.1": { - id: "openai/gpt-5.1", - name: "OpenAI: GPT-5.1", + "openai/gpt-5.4-pro:batch": { + id: "openai/gpt-5.4-pro:batch", + name: "OpenAI: GPT-5.4 Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, + input: 15, + output: 90, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.1-chat": { - id: "openai/gpt-5.1-chat", - name: "OpenAI: GPT-5.1 Chat", + "openai/gpt-5.4:batch": { + id: "openai/gpt-5.4:batch", + name: "OpenAI: GPT-5.4 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { input: 1.25, - output: 10, + output: 7.5, cacheRead: 0.125, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.1-codex": { - id: "openai/gpt-5.1-codex", - name: "OpenAI: GPT-5.1-Codex", + "openai/gpt-5.5": { + id: "openai/gpt-5.5", + name: "OpenAI: GPT-5.5", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, + input: 5, + output: 30, + cacheRead: 0.5, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.1-codex-max": { - id: "openai/gpt-5.1-codex-max", - name: "OpenAI: GPT-5.1-Codex-Max", + "openai/gpt-5.5-pro": { + id: "openai/gpt-5.5-pro", + name: "OpenAI: GPT-5.5 Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","off":null,"minimal":null,"low":null}, input: ["text", "image"], cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, + input: 30, + output: 180, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.1-codex-mini": { - id: "openai/gpt-5.1-codex-mini", - name: "OpenAI: GPT-5.1-Codex-Mini", + "openai/gpt-5.5-pro:batch": { + id: "openai/gpt-5.5-pro:batch", + name: "OpenAI: GPT-5.5 Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 0.25, - output: 2, - cacheRead: 0.025, + input: 15, + output: 90, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 400000, - maxTokens: 100000, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.2": { - id: "openai/gpt-5.2", - name: "OpenAI: GPT-5.2", + "openai/gpt-5.5:batch": { + id: "openai/gpt-5.5:batch", + name: "OpenAI: GPT-5.5 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -2599,226 +4014,226 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 2.5, + output: 15, + cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.2-chat": { - id: "openai/gpt-5.2-chat", - name: "OpenAI: GPT-5.2 Chat", + "openai/gpt-5.6-luna": { + id: "openai/gpt-5.6-luna", + name: "OpenAI: GPT-5.6 Luna", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: false, - thinkingLevelMap: {"xhigh":"xhigh"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.2-codex": { - id: "openai/gpt-5.2-codex", - name: "OpenAI: GPT-5.2-Codex", + "openai/gpt-5.6-luna-pro": { + id: "openai/gpt-5.6-luna-pro", + name: "OpenAI: GPT-5.6 Luna Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.2-pro": { - id: "openai/gpt-5.2-pro", - name: "OpenAI: GPT-5.2 Pro", + "openai/gpt-5.6-luna-pro:batch": { + id: "openai/gpt-5.6-luna-pro:batch", + name: "OpenAI: GPT-5.6 Luna Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 21, - output: 168, - cacheRead: 0, + input: 0.1, + output: 0.6, + cacheRead: 0.01, cacheWrite: 0, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.3-chat": { - id: "openai/gpt-5.3-chat", - name: "OpenAI: GPT-5.3 Chat", + "openai/gpt-5.6-luna:batch": { + id: "openai/gpt-5.6-luna:batch", + name: "OpenAI: GPT-5.6 Luna (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: false, - thinkingLevelMap: {"xhigh":"xhigh"}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 0.1, + output: 0.6, + cacheRead: 0.01, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.3-codex": { - id: "openai/gpt-5.3-codex", - name: "OpenAI: GPT-5.3-Codex", + "openai/gpt-5.6-sol": { + id: "openai/gpt-5.6-sol", + name: "OpenAI: GPT-5.6 Sol", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, - cacheWrite: 0, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.4": { - id: "openai/gpt-5.4", - name: "OpenAI: GPT-5.4", + "openai/gpt-5.6-sol-pro": { + id: "openai/gpt-5.6-sol-pro", + name: "OpenAI: GPT-5.6 Sol Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 0, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.4-mini": { - id: "openai/gpt-5.4-mini", - name: "OpenAI: GPT-5.4 Mini", + "openai/gpt-5.6-sol-pro:batch": { + id: "openai/gpt-5.6-sol-pro:batch", + name: "OpenAI: GPT-5.6 Sol Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 0.75, - output: 4.5, - cacheRead: 0.075, - cacheWrite: 0, + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.4-nano": { - id: "openai/gpt-5.4-nano", - name: "OpenAI: GPT-5.4 Nano", + "openai/gpt-5.6-sol:batch": { + id: "openai/gpt-5.6-sol:batch", + name: "OpenAI: GPT-5.6 Sol (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 0.2, - output: 1.25, - cacheRead: 0.02, - cacheWrite: 0, + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.4-pro": { - id: "openai/gpt-5.4-pro", - name: "OpenAI: GPT-5.4 Pro", + "openai/gpt-5.6-terra": { + id: "openai/gpt-5.6-terra", + name: "OpenAI: GPT-5.6 Terra", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 30, - output: 180, - cacheRead: 0, - cacheWrite: 0, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.5": { - id: "openai/gpt-5.5", - name: "OpenAI: GPT-5.5", + "openai/gpt-5.6-terra-pro": { + id: "openai/gpt-5.6-terra-pro", + name: "OpenAI: GPT-5.6 Terra Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh"}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 0, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.5-pro": { - id: "openai/gpt-5.5-pro", - name: "OpenAI: GPT-5.5 Pro", + "openai/gpt-5.6-terra-pro:batch": { + id: "openai/gpt-5.6-terra-pro:batch", + name: "OpenAI: GPT-5.6 Terra Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","off":null,"minimal":null,"low":null}, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 30, - output: 180, - cacheRead: 0, + input: 1, + output: 6, + cacheRead: 0.1, cacheWrite: 0, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.6-luna": { - id: "openai/gpt-5.6-luna", - name: "OpenAI: GPT-5.6 Luna", + "openai/gpt-5.6-terra:batch": { + id: "openai/gpt-5.6-terra:batch", + name: "OpenAI: GPT-5.6 Terra (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -2830,102 +4245,97 @@ export const OPENROUTER_MODELS = { input: 1, output: 6, cacheRead: 0.1, - cacheWrite: 1.25, + cacheWrite: 0, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.6-luna-pro": { - id: "openai/gpt-5.6-luna-pro", - name: "OpenAI: GPT-5.6 Luna Pro", + "openai/gpt-5:batch": { + id: "openai/gpt-5:batch", + name: "OpenAI: GPT-5 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.625, + output: 5, + cacheRead: 0.0625, + cacheWrite: 0, }, - contextWindow: 1050000, + contextWindow: 400000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.6-sol": { - id: "openai/gpt-5.6-sol", - name: "OpenAI: GPT-5.6 Sol", + "openai/gpt-6-astra": { + id: "openai/gpt-6-astra", + name: "OpenAI: GPT-6 Astra", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.6-sol-pro": { - id: "openai/gpt-5.6-sol-pro", - name: "OpenAI: GPT-5.6 Sol Pro", + "openai/gpt-6-astra-pro": { + id: "openai/gpt-6-astra-pro", + name: "OpenAI: GPT-6 Astra Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.6-terra": { - id: "openai/gpt-5.6-terra", - name: "OpenAI: GPT-5.6 Terra", + "openai/gpt-6-astra-pro:batch": { + id: "openai/gpt-6-astra-pro:batch", + name: "OpenAI: GPT-6 Astra Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-5.6-terra-pro": { - id: "openai/gpt-5.6-terra-pro", - name: "OpenAI: GPT-5.6 Terra Pro", + "openai/gpt-6-astra:batch": { + id: "openai/gpt-6-astra:batch", + name: "OpenAI: GPT-6 Astra (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, }, contextWindow: 1050000, maxTokens: 128000, @@ -3000,11 +4410,11 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 131072, + maxTokens: 117964, } satisfies Model<"openai-completions">, - "openai/gpt-oss-20b": { - id: "openai/gpt-oss-20b", - name: "OpenAI: gpt-oss-20b", + "openai/gpt-oss-120b:batch": { + id: "openai/gpt-oss-120b:batch", + name: "OpenAI: gpt-oss-120b (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3012,17 +4422,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.03, - output: 0.13, - cacheRead: 0.03, + input: 0.15, + output: 0.6, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 131072, + maxTokens: 117964, } satisfies Model<"openai-completions">, - "openai/gpt-oss-20b:free": { - id: "openai/gpt-oss-20b:free", - name: "OpenAI: gpt-oss-20b (free)", + "openai/gpt-oss-20b": { + id: "openai/gpt-oss-20b", + name: "OpenAI: gpt-oss-20b", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3030,13 +4440,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.03, + output: 0.13, + cacheRead: 0.03, cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 32768, + maxTokens: 117964, } satisfies Model<"openai-completions">, "openai/gpt-oss-safeguard-20b": { id: "openai/gpt-oss-safeguard-20b", @@ -3092,27 +4502,27 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-completions">, - "openai/o3-deep-research": { - id: "openai/o3-deep-research", - name: "OpenAI: o3 Deep Research", + "openai/o3-mini": { + id: "openai/o3-mini", + name: "OpenAI: o3 Mini", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text", "image"], + input: ["text"], cost: { - input: 10, - output: 40, - cacheRead: 2.5, + input: 1.1, + output: 4.4, + cacheRead: 0.55, cacheWrite: 0, }, contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-completions">, - "openai/o3-mini": { - id: "openai/o3-mini", - name: "OpenAI: o3 Mini", + "openai/o3-mini-high": { + id: "openai/o3-mini-high", + name: "OpenAI: o3 Mini High", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3128,9 +4538,9 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-completions">, - "openai/o3-mini-high": { - id: "openai/o3-mini-high", - name: "OpenAI: o3 Mini High", + "openai/o3-mini:batch": { + id: "openai/o3-mini:batch", + name: "OpenAI: o3 Mini (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3138,9 +4548,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.1, - output: 4.4, - cacheRead: 0.55, + input: 0.55, + output: 2.2, + cacheRead: 0.275, cacheWrite: 0, }, contextWindow: 200000, @@ -3164,9 +4574,9 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-completions">, - "openai/o4-mini": { - id: "openai/o4-mini", - name: "OpenAI: o4 Mini", + "openai/o3:batch": { + id: "openai/o3:batch", + name: "OpenAI: o3 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3174,17 +4584,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1.1, - output: 4.4, - cacheRead: 0.275, + input: 1, + output: 4, + cacheRead: 0.25, cacheWrite: 0, }, contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-completions">, - "openai/o4-mini-deep-research": { - id: "openai/o4-mini-deep-research", - name: "OpenAI: o4 Mini Deep Research", + "openai/o4-mini": { + id: "openai/o4-mini", + name: "OpenAI: o4 Mini", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3192,9 +4602,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2, - output: 8, - cacheRead: 0.5, + input: 1.1, + output: 4.4, + cacheRead: 0.275, cacheWrite: 0, }, contextWindow: 200000, @@ -3218,6 +4628,24 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"openai-completions">, + "openai/o4-mini:batch": { + id: "openai/o4-mini:batch", + name: "OpenAI: o4 Mini (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.55, + output: 2.2, + cacheRead: 0.1375, + cacheWrite: 0, + }, + contextWindow: 200000, + maxTokens: 100000, + } satisfies Model<"openai-completions">, "openrouter/auto": { id: "openrouter/auto", name: "Auto Router", @@ -3290,9 +4718,9 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 30000, } satisfies Model<"openai-completions">, - "poolside/laguna-m.1": { - id: "poolside/laguna-m.1", - name: "Poolside: Laguna M.1", + "poolside/laguna-s-2.1": { + id: "poolside/laguna-s-2.1", + name: "Poolside: Laguna S 2.1", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3300,17 +4728,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.2, - output: 0.4, - cacheRead: 0.1, + input: 0.09, + output: 0.18, + cacheRead: 0.009, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 32768, + contextWindow: 1048576, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "poolside/laguna-m.1:free": { - id: "poolside/laguna-m.1:free", - name: "Poolside: Laguna M.1 (free)", + "poolside/laguna-s-2.1:free": { + id: "poolside/laguna-s-2.1:free", + name: "Poolside: Laguna S 2.1 (free)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -3390,13 +4818,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.04, - output: 0.1, + input: 0.1, + output: 0.2, cacheRead: 0, cacheWrite: 0, }, contextWindow: 32768, - maxTokens: 32768, + maxTokens: 29491, } satisfies Model<"openai-completions">, "qwen/qwen-plus": { id: "qwen/qwen-plus", @@ -3434,24 +4862,6 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 32768, } satisfies Model<"openai-completions">, - "qwen/qwen-plus-2025-07-28:thinking": { - id: "qwen/qwen-plus-2025-07-28:thinking", - name: "Qwen: Qwen Plus 0728 (thinking)", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.26, - output: 0.78, - cacheRead: 0, - cacheWrite: 0.325, - }, - contextWindow: 1000000, - maxTokens: 32768, - } satisfies Model<"openai-completions">, "qwen/qwen3-14b": { id: "qwen/qwen3-14b", name: "Qwen: Qwen3 14B", @@ -3462,13 +4872,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.2275, - output: 0.91, + input: 0.12, + output: 0.24, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 8192, + contextWindow: 40960, + maxTokens: 16384, } satisfies Model<"openai-completions">, "qwen/qwen3-235b-a22b": { id: "qwen/qwen3-235b-a22b", @@ -3498,13 +4908,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.09, - output: 0.55, - cacheRead: 0, + input: 0.0875, + output: 0.35, + cacheRead: 0.0175, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 16384, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3-235b-a22b-thinking-2507": { id: "qwen/qwen3-235b-a22b-thinking-2507", @@ -3516,13 +4926,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.1495, - output: 1.495, + input: 0.23, + output: 2.3, cacheRead: 0, cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 4096, + maxTokens: 117964, } satisfies Model<"openai-completions">, "qwen/qwen3-30b-a3b": { id: "qwen/qwen3-30b-a3b", @@ -3534,13 +4944,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.13, - output: 0.52, + input: 0.12, + output: 0.5, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 8192, + contextWindow: 40960, + maxTokens: 16384, } satisfies Model<"openai-completions">, "qwen/qwen3-30b-a3b-instruct-2507": { id: "qwen/qwen3-30b-a3b-instruct-2507", @@ -3552,13 +4962,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.1, - output: 0.3, + input: 0.04815, + output: 0.19305, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 4096, + contextWindow: 128000, + maxTokens: 32000, } satisfies Model<"openai-completions">, "qwen/qwen3-30b-a3b-thinking-2507": { id: "qwen/qwen3-30b-a3b-thinking-2507", @@ -3570,8 +4980,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.13, - output: 1.56, + input: 0.2, + output: 2.4, cacheRead: 0, cacheWrite: 0, }, @@ -3643,12 +5053,12 @@ export const OPENROUTER_MODELS = { input: ["text"], cost: { input: 0.07, - output: 0.27, + output: 0.28, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 160000, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3-coder-flash": { id: "qwen/qwen3-coder-flash", @@ -3678,13 +5088,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.11, + input: 0.12, output: 0.8, cacheRead: 0.07, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3-coder-plus": { id: "qwen/qwen3-coder-plus", @@ -3704,24 +5114,6 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 65536, } satisfies Model<"openai-completions">, - "qwen/qwen3-coder:free": { - id: "qwen/qwen3-coder:free", - name: "Qwen: Qwen3 Coder 480B A35B (free)", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262000, - maxTokens: 262000, - } satisfies Model<"openai-completions">, "qwen/qwen3-max": { id: "qwen/qwen3-max", name: "Qwen: Qwen3 Max", @@ -3738,7 +5130,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0.975, }, contextWindow: 262144, - maxTokens: 32768, + maxTokens: 65536, } satisfies Model<"openai-completions">, "qwen/qwen3-max-thinking": { id: "qwen/qwen3-max-thinking", @@ -3756,7 +5148,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 32768, + maxTokens: 65536, } satisfies Model<"openai-completions">, "qwen/qwen3-next-80b-a3b-instruct": { id: "qwen/qwen3-next-80b-a3b-instruct", @@ -3768,31 +5160,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.1, + input: 0.09, output: 1.1, - cacheRead: 0.07, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, - "qwen/qwen3-next-80b-a3b-instruct:free": { - id: "qwen/qwen3-next-80b-a3b-instruct:free", - name: "Qwen: Qwen3 Next 80B A3B Instruct (free)", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0, - output: 0, cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 16384, } satisfies Model<"openai-completions">, "qwen/qwen3-next-80b-a3b-thinking": { id: "qwen/qwen3-next-80b-a3b-thinking", @@ -3804,8 +5178,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.0975, - output: 0.78, + input: 0.15, + output: 1.2, cacheRead: 0, cacheWrite: 0, }, @@ -3840,8 +5214,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.26, - output: 2.6, + input: 0.4, + output: 4, cacheRead: 0, cacheWrite: 0, }, @@ -3858,13 +5232,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 0.13, - output: 0.52, + input: 0.15, + output: 0.6, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 16384, } satisfies Model<"openai-completions">, "qwen/qwen3-vl-30b-a3b-thinking": { id: "qwen/qwen3-vl-30b-a3b-thinking", @@ -3876,8 +5250,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.13, - output: 1.56, + input: 0.2, + output: 2.4, cacheRead: 0, cacheWrite: 0, }, @@ -3930,8 +5304,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.117, - output: 1.365, + input: 0.18, + output: 2.1, cacheRead: 0, cacheWrite: 0, }, @@ -3966,13 +5340,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.26, - output: 2.6, + input: 0.195, + output: 1.56, cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 81920, + maxTokens: 65536, } satisfies Model<"openai-completions">, "qwen/qwen3.5-35b-a3b": { id: "qwen/qwen3.5-35b-a3b", @@ -3984,13 +5358,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.14, - output: 1, + input: 0.1625, + output: 1.3, cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 65536, } satisfies Model<"openai-completions">, "qwen/qwen3.5-397b-a17b": { id: "qwen/qwen3.5-397b-a17b", @@ -4002,13 +5376,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.39, - output: 2.34, - cacheRead: 0, + input: 0.55, + output: 3.5, + cacheRead: 0.225, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 65536, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3.5-9b": { id: "qwen/qwen3.5-9b", @@ -4026,7 +5400,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, + } satisfies Model<"openai-completions">, + "qwen/qwen3.5-9b:batch": { + id: "qwen/qwen3.5-9b:batch", + name: "Qwen: Qwen3.5-9B (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.17, + output: 0.25, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3.5-flash-02-23": { id: "qwen/qwen3.5-flash-02-23", @@ -4092,9 +5484,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.45, - output: 2.7, - cacheRead: 0, + input: 0.3, + output: 2, + cacheRead: 0.03, cacheWrite: 0, }, contextWindow: 262144, @@ -4110,13 +5502,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.14, - output: 1, - cacheRead: 0, + input: 0.1, + output: 0.9, + cacheRead: 0.05, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3.6-flash": { id: "qwen/qwen3.6-flash", @@ -4146,10 +5538,10 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.04, - output: 6.24, + input: 1.027, + output: 6.162, cacheRead: 0, - cacheWrite: 1.3, + cacheWrite: 1.28375, }, contextWindow: 262144, maxTokens: 65536, @@ -4172,6 +5564,24 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 65536, } satisfies Model<"openai-completions">, + "qwen/qwen3.7-flash": { + id: "qwen/qwen3.7-flash", + name: "Qwen: Qwen3.7 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.03, + output: 0.13, + cacheRead: 0.006, + cacheWrite: 0.038, + }, + contextWindow: 1000000, + maxTokens: 65536, + } satisfies Model<"openai-completions">, "qwen/qwen3.7-max": { id: "qwen/qwen3.7-max", name: "Qwen: Qwen3.7 Max", @@ -4188,7 +5598,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 1.84375, }, contextWindow: 1000000, - maxTokens: 65536, + maxTokens: 131072, } satisfies Model<"openai-completions">, "qwen/qwen3.7-plus": { id: "qwen/qwen3.7-plus", @@ -4206,7 +5616,97 @@ export const OPENROUTER_MODELS = { cacheWrite: 0.4, }, contextWindow: 1000000, - maxTokens: 65536, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-2.4t-a95b": { + id: "qwen/qwen3.8-2.4t-a95b", + name: "Qwen: Qwen3.8 2.4T A95B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-2.4t-a95b:batch": { + id: "qwen/qwen3.8-2.4t-a95b:batch", + name: "Qwen: Qwen3.8 2.4T A95B (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1010000, + maxTokens: 909000, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-27b": { + id: "qwen/qwen3.8-27b", + name: "Qwen: Qwen3.8 27B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.214, + output: 2.55, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-flash": { + id: "qwen/qwen3.8-flash", + name: "Qwen: Qwen3.8 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.47, + cacheRead: 0.016, + cacheWrite: 0.2, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-max-0902": { + id: "qwen/qwen3.8-max-0902", + name: "Qwen: Qwen3.8 Max (0902)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 131072, } satisfies Model<"openai-completions">, "rekaai/reka-edge": { id: "rekaai/reka-edge", @@ -4224,7 +5724,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 16384, - maxTokens: 16384, + maxTokens: 14745, } satisfies Model<"openai-completions">, "relace/relace-search": { id: "relace/relace-search", @@ -4244,6 +5744,24 @@ export const OPENROUTER_MODELS = { contextWindow: 256000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "sakana/fugu-max": { + id: "sakana/fugu-max", + name: "Sakana: Fugu Max", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "sakana/fugu-ultra": { id: "sakana/fugu-ultra", name: "Sakana: Fugu Ultra", @@ -4262,6 +5780,42 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "sakana/fugu-ultra-v2": { + id: "sakana/fugu-ultra-v2", + name: "Sakana: Fugu Ultra v2", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 30, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "sakana/sakana-namazu": { + id: "sakana/sakana-namazu", + name: "Sakana: Sakana Namazu", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.95, + output: 4, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 65536, + } satisfies Model<"openai-completions">, "sao10k/l3.1-euryale-70b": { id: "sao10k/l3.1-euryale-70b", name: "Sao10K: Llama 3.1 Euryale 70B v2.2", @@ -4314,7 +5868,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 256000, - maxTokens: 256000, + maxTokens: 230400, } satisfies Model<"openai-completions">, "tencent/hy3": { id: "tencent/hy3", @@ -4326,13 +5880,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.2, - output: 0.8, - cacheRead: 0.05, + input: 0.132, + output: 0.528, + cacheRead: 0.033, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 131072, + maxTokens: 128000, } satisfies Model<"openai-completions">, "tencent/hy3-preview": { id: "tencent/hy3-preview", @@ -4344,17 +5898,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.063, - output: 0.21, - cacheRead: 0.021, + input: 0.18, + output: 0.6, + cacheRead: 0.06, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 4096, + maxTokens: 235929, } satisfies Model<"openai-completions">, - "tencent/hy3:free": { - id: "tencent/hy3:free", - name: "Tencent: Hy3 (free)", + "tencent/hy4-preview": { + id: "tencent/hy4-preview", + name: "Tencent: Hy4 preview", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4362,13 +5916,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.834, + output: 2.501, + cacheRead: 0.042, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 262144, + contextWindow: 1048576, + maxTokens: 64000, } satisfies Model<"openai-completions">, "thedrummer/unslopnemo-12b": { id: "thedrummer/unslopnemo-12b", @@ -4385,8 +5939,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 32768, - maxTokens: 32768, + contextWindow: 1024000, + maxTokens: 819200, } satisfies Model<"openai-completions">, "thinkingmachines/inkling": { id: "thinkingmachines/inkling", @@ -4404,11 +5958,101 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 524288, - maxTokens: 4096, + maxTokens: 471859, + } satisfies Model<"openai-completions">, + "thinkingmachines/inkling-small": { + id: "thinkingmachines/inkling-small", + name: "Thinking Machines: Inkling Small", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.45, + output: 1.2, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 524288, + maxTokens: 262144, + } satisfies Model<"openai-completions">, + "thinkingmachines/inkling-small:free": { + id: "thinkingmachines/inkling-small:free", + name: "Thinking Machines: Inkling Small (free)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 262144, + } satisfies Model<"openai-completions">, + "thinkingmachines/inkling:batch": { + id: "thinkingmachines/inkling:batch", + name: "Thinking Machines: Inkling (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 4.05, + cacheRead: 0.17, + cacheWrite: 0, + }, + contextWindow: 524288, + maxTokens: 471859, + } satisfies Model<"openai-completions">, + "thinkingmachines/inkling:free": { + id: "thinkingmachines/inkling:free", + name: "Thinking Machines: Inkling (free)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 262144, + } satisfies Model<"openai-completions">, + "upstage/solar-pro-3": { + id: "upstage/solar-pro-3", + name: "Upstage: Solar Pro 3", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 117964, } satisfies Model<"openai-completions">, - "upstage/solar-pro-3": { - id: "upstage/solar-pro-3", - name: "Upstage: Solar Pro 3", + "upstage/solar-pro4": { + id: "upstage/solar-pro4", + name: "Upstage: Solar Pro 4", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4416,17 +6060,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.15, - output: 0.6, - cacheRead: 0.015, + input: 0.09, + output: 0.36, + cacheRead: 0.018, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 4096, + contextWindow: 524288, + maxTokens: 131072, } satisfies Model<"openai-completions">, "x-ai/grok-4.20": { id: "x-ai/grok-4.20", - name: "xAI: Grok 4.20", + name: "SpaceXAI: Grok 4.20", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4440,11 +6084,11 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 2000000, - maxTokens: 4096, + maxTokens: 1800000, } satisfies Model<"openai-completions">, "x-ai/grok-4.3": { id: "x-ai/grok-4.3", - name: "xAI: Grok 4.3", + name: "SpaceXAI: Grok 4.3", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4458,11 +6102,29 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 4096, + maxTokens: 900000, + } satisfies Model<"openai-completions">, + "x-ai/grok-4.3:batch": { + id: "x-ai/grok-4.3:batch", + name: "SpaceXAI: Grok 4.3 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 2, + cacheRead: 0.16, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 900000, } satisfies Model<"openai-completions">, "x-ai/grok-4.5": { id: "x-ai/grok-4.5", - name: "xAI: Grok 4.5", + name: "SpaceXAI: Grok 4.5", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4476,11 +6138,29 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 500000, - maxTokens: 4096, + maxTokens: 450000, + } satisfies Model<"openai-completions">, + "x-ai/grok-4.6": { + id: "x-ai/grok-4.6", + name: "SpaceXAI: Grok 4.6", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 450000, } satisfies Model<"openai-completions">, "x-ai/grok-build-0.1": { id: "x-ai/grok-build-0.1", - name: "xAI: Grok Build 0.1", + name: "SpaceXAI: Grok Build 0.1", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4494,7 +6174,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 256000, - maxTokens: 4096, + maxTokens: 230400, } satisfies Model<"openai-completions">, "xiaomi/mimo-v2.5": { id: "xiaomi/mimo-v2.5", @@ -4596,13 +6276,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.5, - output: 2, - cacheRead: 0.1, + input: 0.43, + output: 1.75, + cacheRead: 0.08, cacheWrite: 0, }, - contextWindow: 202752, - maxTokens: 131072, + contextWindow: 198000, + maxTokens: 16384, } satisfies Model<"openai-completions">, "z-ai/glm-4.6v": { id: "z-ai/glm-4.6v", @@ -4656,7 +6336,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 131072, - maxTokens: 131072, + maxTokens: 117964, } satisfies Model<"openai-completions">, "z-ai/glm-5": { id: "z-ai/glm-5", @@ -4673,8 +6353,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0.119, cacheWrite: 0, }, - contextWindow: 202752, - maxTokens: 202752, + contextWindow: 198000, + maxTokens: 128000, } satisfies Model<"openai-completions">, "z-ai/glm-5-turbo": { id: "z-ai/glm-5-turbo", @@ -4723,14 +6403,104 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text"], cost: { - input: 0.2786, - output: 0.8756, - cacheRead: 0.05174, + input: 1.4, + output: 4.4, + cacheRead: 0.14, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "z-ai/glm-5.2:batch": { + id: "z-ai/glm-5.2:batch", + name: "Z.ai: GLM 5.2 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.7, + output: 2.2, + cacheRead: 0.07, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "z-ai/glm-5.3": { + id: "z-ai/glm-5.3", + name: "Z.ai: GLM 5.3", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1048575, + maxTokens: 943717, + } satisfies Model<"openai-completions">, + "z-ai/glm-5.3-flash": { + id: "z-ai/glm-5.3-flash", + name: "Z.ai: GLM 5.3 Flash", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.09, + output: 0.3, + cacheRead: 0.018, cacheWrite: 0, }, contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "z-ai/glm-5.3-flash:batch": { + id: "z-ai/glm-5.3-flash:batch", + name: "Z.ai: GLM 5.3 Flash (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.075, + output: 0.25, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "z-ai/glm-5.3:batch": { + id: "z-ai/glm-5.3:batch", + name: "Z.ai: GLM 5.3 (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.7, + output: 2.2, + cacheRead: 0.13, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, "z-ai/glm-5v-turbo": { id: "z-ai/glm-5v-turbo", name: "Z.ai: GLM 5V Turbo", @@ -4761,7 +6531,7 @@ export const OPENROUTER_MODELS = { cost: { input: 10, output: 50, - cacheRead: 1, + cacheRead: 0.25, cacheWrite: 12.5, }, contextWindow: 1000000, @@ -4769,7 +6539,7 @@ export const OPENROUTER_MODELS = { } satisfies Model<"openai-completions">, "~anthropic/claude-haiku-latest": { id: "~anthropic/claude-haiku-latest", - name: "Anthropic Claude Haiku Latest", + name: "Anthropic: Claude Haiku Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4805,7 +6575,7 @@ export const OPENROUTER_MODELS = { } satisfies Model<"openai-completions">, "~anthropic/claude-sonnet-latest": { id: "~anthropic/claude-sonnet-latest", - name: "Anthropic Claude Sonnet Latest", + name: "Anthropic: Claude Sonnet Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4821,9 +6591,64 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "~deepseek/deepseek-flash-latest": { + id: "~deepseek/deepseek-flash-latest", + name: "DeepSeek: DeepSeek Flash Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "~deepseek/deepseek-pro-latest": { + id: "~deepseek/deepseek-pro-latest", + name: "DeepSeek: DeepSeek Pro Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.66, + output: 1.98, + cacheRead: 0.022, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "~deepseek/deepseek-v4-flash-latest": { + id: "~deepseek/deepseek-v4-flash-latest", + name: "DeepSeek: DeepSeek V4 Flash Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter","requiresReasoningContentOnAssistantMessages":true}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, + input: ["text"], + cost: { + input: 0.04, + output: 0.1, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 393216, + } satisfies Model<"openai-completions">, "~google/gemini-flash-latest": { id: "~google/gemini-flash-latest", - name: "Google Gemini Flash Latest", + name: "Google: Gemini Flash Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4831,17 +6656,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1.5, - output: 9, - cacheRead: 0.15, - cacheWrite: 0.083333, + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0.041667, }, contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"openai-completions">, "~google/gemini-pro-latest": { id: "~google/gemini-pro-latest", - name: "Google Gemini Pro Latest", + name: "Google: Gemini Pro Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4859,7 +6684,7 @@ export const OPENROUTER_MODELS = { } satisfies Model<"openai-completions">, "~moonshotai/kimi-latest": { id: "~moonshotai/kimi-latest", - name: "MoonshotAI Kimi Latest", + name: "MoonshotAI: Kimi Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4867,17 +6692,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, + input: 2.1, + output: 10.95, + cacheRead: 0.23, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 4096, + maxTokens: 943718, } satisfies Model<"openai-completions">, - "~openai/gpt-latest": { - id: "~openai/gpt-latest", - name: "OpenAI GPT Latest", + "~openai/gpt-astra-latest": { + id: "~openai/gpt-astra-latest", + name: "OpenAI: GPT Astra Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4885,17 +6710,35 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "~openai/gpt-luna-latest": { + id: "~openai/gpt-luna-latest", + name: "OpenAI: GPT Luna Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, "~openai/gpt-mini-latest": { id: "~openai/gpt-mini-latest", - name: "OpenAI GPT Mini Latest", + name: "OpenAI: GPT Mini Latest", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4911,6 +6754,42 @@ export const OPENROUTER_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "~openai/gpt-sol-latest": { + id: "~openai/gpt-sol-latest", + name: "OpenAI: GPT Sol Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "~openai/gpt-terra-latest": { + id: "~openai/gpt-terra-latest", + name: "OpenAI: GPT Terra Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "~x-ai/grok-latest": { id: "~x-ai/grok-latest", name: "xAI: Grok Latest", @@ -4923,10 +6802,46 @@ export const OPENROUTER_MODELS = { cost: { input: 2, output: 6, - cacheRead: 0.3, + cacheRead: 0.5, cacheWrite: 0, }, contextWindow: 500000, - maxTokens: 4096, + maxTokens: 450000, + } satisfies Model<"openai-completions">, + "~z-ai/glm-flash-latest": { + id: "~z-ai/glm-flash-latest", + name: "Z.ai: GLM Flash Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.075, + output: 0.25, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "~z-ai/glm-latest": { + id: "~z-ai/glm-latest", + name: "Z.ai: GLM Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.8775, + output: 2.97, + cacheRead: 0.1755, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/together.models.ts b/packages/ai/src/providers/together.models.ts index cd782a5..559d7e9 100644 --- a/packages/ai/src/providers/together.models.ts +++ b/packages/ai/src/providers/together.models.ts @@ -110,12 +110,31 @@ export const TOGETHER_MODELS = { cost: { input: 1.25, output: 3.75, - cacheRead: 0, + cacheRead: 0.125, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 500000, } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4-Flash-0731": { + id: "deepseek-ai/DeepSeek-V4-Flash-0731", + name: "DeepSeek V4 Flash 0731", + api: "openai-completions", + provider: "together", + baseUrl: "https://api.together.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + input: ["text"], + cost: { + input: 0.14, + output: 0.28, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, "deepseek-ai/DeepSeek-V4-Pro": { id: "deepseek-ai/DeepSeek-V4-Pro", name: "DeepSeek V4 Pro", @@ -135,6 +154,44 @@ export const TOGETHER_MODELS = { contextWindow: 512000, maxTokens: 384000, } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4-Pro-0813": { + id: "deepseek-ai/DeepSeek-V4-Pro-0813", + name: "DeepSeek V4 Pro 0813", + api: "openai-completions", + provider: "together", + baseUrl: "https://api.together.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + input: ["text"], + cost: { + input: 1.32, + output: 3.96, + cacheRead: 0.13, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek-ai/DeepSeek-V4.1-Flash": { + id: "deepseek-ai/DeepSeek-V4.1-Flash", + name: "DeepSeek V4.1 Flash", + api: "openai-completions", + provider: "together", + baseUrl: "https://api.together.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + input: ["text", "image"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0.006, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 384000, + } satisfies Model<"openai-completions">, "google/gemma-4-31B-it": { id: "google/gemma-4-31B-it", name: "Gemma 4 31B Instruct", @@ -210,6 +267,25 @@ export const TOGETHER_MODELS = { contextWindow: 262144, maxTokens: 131072, } satisfies Model<"openai-completions">, + "moonshotai/Kimi-K3": { + id: "moonshotai/Kimi-K3", + name: "Kimi K3", + api: "openai-completions", + provider: "together", + baseUrl: "https://api.together.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "nvidia/nemotron-3-ultra-550b-a55b": { id: "nvidia/nemotron-3-ultra-550b-a55b", name: "Nemotron 3 Ultra 550B A55B", @@ -302,7 +378,45 @@ export const TOGETHER_MODELS = { cacheRead: 0.26, cacheWrite: 0, }, - contextWindow: 262144, + contextWindow: 512000, maxTokens: 164000, } satisfies Model<"openai-completions">, + "zai-org/GLM-5.3": { + id: "zai-org/GLM-5.3", + name: "GLM-5.3", + api: "openai-completions", + provider: "together", + baseUrl: "https://api.together.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.26, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 262144, + } satisfies Model<"openai-completions">, + "zai-org/GLM-5.3-Flash": { + id: "zai-org/GLM-5.3-Flash", + name: "GLM-5.3-Flash", + api: "openai-completions", + provider: "together", + baseUrl: "https://api.together.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, + reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048575, + maxTokens: 400000, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/vercel-ai-gateway.models.ts b/packages/ai/src/providers/vercel-ai-gateway.models.ts index 6164142..60a2386 100644 --- a/packages/ai/src/providers/vercel-ai-gateway.models.ts +++ b/packages/ai/src/providers/vercel-ai-gateway.models.ts @@ -83,7 +83,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 1.3, output: 7.8, - cacheRead: 0.26, + cacheRead: 0.13, cacheWrite: 1.625, }, contextWindow: 240000, @@ -321,7 +321,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.1, output: 0.4, - cacheRead: 0.001, + cacheRead: 0.01, cacheWrite: 0.125, }, contextWindow: 1000000, @@ -337,7 +337,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { input: ["text", "image"], cost: { input: 0.4, - output: 2.4, + output: 2.5, cacheRead: 0.04, cacheWrite: 0.5, }, @@ -372,12 +372,29 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.5, output: 3, - cacheRead: 0.1, + cacheRead: 0.05, cacheWrite: 0.625, }, contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.7-flash": { + id: "alibaba/qwen3.7-flash", + name: "Qwen 3.7 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.03, + output: 0.13, + cacheRead: 0.006, + cacheWrite: 0.038, + }, + contextWindow: 991000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, "alibaba/qwen3.7-max": { id: "alibaba/qwen3.7-max", name: "Qwen 3.7 Max", @@ -387,10 +404,10 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.25, - output: 3.75, - cacheRead: 0.25, - cacheWrite: 1.5625, + input: 2.5, + output: 7.5, + cacheRead: 0.5, + cacheWrite: 3.125, }, contextWindow: 991000, maxTokens: 64000, @@ -412,6 +429,91 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-2.4t-a95b": { + id: "alibaba/qwen3.8-2.4t-a95b", + name: "Qwen3.8 2.4T A95B", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-27b": { + id: "alibaba/qwen3.8-27b", + name: "Qwen3.8 27B", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 3, + cacheRead: 0.1, + cacheWrite: 0.625, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-flash": { + id: "alibaba/qwen3.8-flash", + name: "Qwen 3.8 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.47, + cacheRead: 0.016, + cacheWrite: 0.2, + }, + contextWindow: 991000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-max": { + id: "alibaba/qwen3.8-max", + name: "Qwen 3.8 Max", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-max-0902": { + id: "alibaba/qwen3.8-max-0902", + name: "Qwen3.8 Max 0902", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.25, + cacheWrite: 2.5, + }, + contextWindow: 991000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "amazon/nova-2-lite": { id: "amazon/nova-2-lite", name: "Nova 2 Lite", @@ -516,6 +618,25 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-fable-5.1": { + id: "anthropic/claude-fable-5.1", + name: "Claude Fable 5.1", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + compat: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 0.25, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-haiku-4.5": { id: "anthropic/claude-haiku-4.5", name: "Claude Haiku 4.5", @@ -550,23 +671,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 8192, } satisfies Model<"anthropic-messages">, - "anthropic/claude-opus-4.1": { - id: "anthropic/claude-opus-4.1", - name: "Claude Opus 4.1", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, - }, - contextWindow: 200000, - maxTokens: 32000, - } satisfies Model<"anthropic-messages">, "anthropic/claude-opus-4.5": { id: "anthropic/claude-opus-4.5", name: "Claude Opus 4.5", @@ -622,9 +726,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "anthropic/claude-opus-4.7-fast": { - id: "anthropic/claude-opus-4.7-fast", - name: "Claude Opus 4.7 (Fast)", + "anthropic/claude-opus-4.8": { + id: "anthropic/claude-opus-4.8", + name: "Claude Opus 4.8", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -633,17 +737,17 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 30, - output: 150, - cacheRead: 3, - cacheWrite: 37.5, + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, }, contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "anthropic/claude-opus-4.8": { - id: "anthropic/claude-opus-4.8", - name: "Claude Opus 4.8", + "anthropic/claude-opus-4.8-fast": { + id: "anthropic/claude-opus-4.8-fast", + name: "Claude Opus 4.8 (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -651,6 +755,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-5": { + id: "anthropic/claude-opus-5", + name: "Claude Opus 5", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], cost: { input: 5, output: 25, @@ -660,15 +781,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "anthropic/claude-opus-4.8-fast": { - id: "anthropic/claude-opus-4.8-fast", - name: "Claude Opus 4.8 (Fast)", + "anthropic/claude-opus-5-fast": { + id: "anthropic/claude-opus-5-fast", + name: "Claude Opus 5 (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - compat: {"forceAdaptiveThinking":true,"supportsTemperature":false}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { input: 10, @@ -768,23 +887,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 262100, maxTokens: 80000, } satisfies Model<"anthropic-messages">, - "arcee-ai/trinity-mini": { - id: "arcee-ai/trinity-mini", - name: "Trinity Mini", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text"], - cost: { - input: 0.045, - output: 0.15, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 131072, - } satisfies Model<"anthropic-messages">, "bytedance/seed-1.6": { id: "bytedance/seed-1.6", name: "Seed 1.6", @@ -819,6 +921,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 256000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "bytedance/seed-2.1-turbo": { + id: "bytedance/seed-2.1-turbo", + name: "Seed 2.1 Turbo", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 2.5, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, "cohere/command-a": { id: "cohere/command-a", name: "Command A", @@ -853,23 +972,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 8192, } satisfies Model<"anthropic-messages">, - "deepseek/deepseek-v3": { - id: "deepseek/deepseek-v3", - name: "DeepSeek V3 0324", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text"], - cost: { - input: 0.27, - output: 1.12, - cacheRead: 0.135, - cacheWrite: 0, - }, - contextWindow: 163840, - maxTokens: 163840, - } satisfies Model<"anthropic-messages">, "deepseek/deepseek-v3.1": { id: "deepseek/deepseek-v3.1", name: "DeepSeek V3.1", @@ -913,9 +1015,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.28, - output: 0.42, - cacheRead: 0.028, + input: 0.62, + output: 1.85, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 128000, @@ -927,7 +1029,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, + reasoning: false, input: ["text"], cost: { input: 0.62, @@ -947,14 +1049,48 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.14, - output: 0.28, + input: 0.13, + output: 0.26, cacheRead: 0.028, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 384000, } satisfies Model<"anthropic-messages">, + "deepseek/deepseek-v4-flash-0731": { + id: "deepseek/deepseek-v4-flash-0731", + name: "DeepSeek V4 Flash 0731", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.076, + output: 0.153, + cacheRead: 0.014, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, + "deepseek/deepseek-v4-flash-vision-exp": { + id: "deepseek/deepseek-v4-flash-vision-exp", + name: "DeepSeek V4 Flash Vision Exp", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.22, + output: 0.66, + cacheRead: 0.007, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, "deepseek/deepseek-v4-pro": { id: "deepseek/deepseek-v4-pro", name: "DeepSeek V4 Pro", @@ -964,9 +1100,43 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.435, - output: 0.87, - cacheRead: 0.0036, + input: 0.66, + output: 1.98, + cacheRead: 0.022, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, + "deepseek/deepseek-v4-pro-0813": { + id: "deepseek/deepseek-v4-pro-0813", + name: "DeepSeek V4 Pro 0813", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.66, + output: 1.98, + cacheRead: 0.066, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"anthropic-messages">, + "deepseek/deepseek-v4.1-flash": { + id: "deepseek/deepseek-v4.1-flash", + name: "DeepSeek V4.1 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.015, cacheWrite: 0, }, contextWindow: 1000000, @@ -1040,9 +1210,26 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 65000, } satisfies Model<"anthropic-messages">, - "google/gemini-3-pro-preview": { - id: "google/gemini-3-pro-preview", - name: "Gemini 3 Pro Preview", + "google/gemini-3.1-flash-lite": { + id: "google/gemini-3.1-flash-lite", + name: "Gemini 3.1 Flash Lite", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.25, + output: 1.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65000, + } satisfies Model<"anthropic-messages">, + "google/gemini-3.1-pro-preview": { + id: "google/gemini-3.1-pro-preview", + name: "Gemini 3.1 Pro Preview", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -1057,77 +1244,94 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "google/gemini-3.1-flash-lite": { - id: "google/gemini-3.1-flash-lite", - name: "Gemini 3.1 Flash Lite", + "google/gemini-3.5-flash": { + id: "google/gemini-3.5-flash", + name: "Gemini 3.5 Flash", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 0.25, - output: 1.5, - cacheRead: 0.03, + input: 1.5, + output: 9, + cacheRead: 0.15, cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 65000, + maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "google/gemini-3.1-flash-lite-preview": { - id: "google/gemini-3.1-flash-lite-preview", - name: "Gemini 3.1 Flash Lite Preview", + "google/gemini-3.5-flash-lite": { + id: "google/gemini-3.5-flash-lite", + name: "Gemini 3.5 Flash Lite", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 0.25, - output: 1.5, + input: 0.3, + output: 2.5, cacheRead: 0.03, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 65000, } satisfies Model<"anthropic-messages">, - "google/gemini-3.1-pro-preview": { - id: "google/gemini-3.1-pro-preview", - name: "Gemini 3.1 Pro Preview", + "google/gemini-3.6-flash": { + id: "google/gemini-3.6-flash", + name: "Gemini 3.6 Flash", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 2, - output: 12, - cacheRead: 0.2, + input: 0.75, + output: 3.75, + cacheRead: 0.075, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "google/gemini-3.5-flash": { - id: "google/gemini-3.5-flash", - name: "Gemini 3.5 Flash", + "google/gemini-3.7-flash": { + id: "google/gemini-3.7-flash", + name: "Gemini 3.7 Flash", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 1.5, - output: 9, - cacheRead: 0.15, + input: 0.75, + output: 3.75, + cacheRead: 0.075, cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 64000, + maxTokens: 65536, + } satisfies Model<"anthropic-messages">, + "google/gemini-3.8-flash": { + id: "google/gemini-3.8-flash", + name: "Gemini 3.8 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.75, + output: 3.75, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65536, } satisfies Model<"anthropic-messages">, "google/gemma-4-26b-a4b-it": { id: "google/gemma-4-26b-a4b-it", - name: "Gemma 4 26B A4B IT", + name: "Google Gemma 4 26B A4B", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -1176,6 +1380,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "inception/mercury-2.5": { + id: "inception/mercury-2.5", + name: "Mercury 2.5", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.04, + output: 0.15, + cacheRead: 0.004, + cacheWrite: 0, + }, + contextWindow: 260000, + maxTokens: 65536, + } satisfies Model<"anthropic-messages">, "inception/mercury-coder-small": { id: "inception/mercury-coder-small", name: "Mercury Coder Small Beta", @@ -1193,6 +1414,125 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 32000, maxTokens: 16384, } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash": { + id: "inclusionai/ling-3.0-flash", + name: "Ling 3.0 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.021, + output: 0.063, + cacheRead: 0.0042, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash-fin": { + id: "inclusionai/ling-3.0-flash-fin", + name: "Ling 3.0 Flash Fin", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash-fin-free": { + id: "inclusionai/ling-3.0-flash-fin-free", + name: "Ling 3.0 Flash Fin (Free)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash-sante": { + id: "inclusionai/ling-3.0-flash-sante", + name: "Ling 3.0 Flash Sante", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash-sante-free": { + id: "inclusionai/ling-3.0-flash-sante-free", + name: "Ling 3.0 Flash Sante (Free)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash-vl": { + id: "inclusionai/ling-3.0-flash-vl", + name: "Ling 3.0 Flash VL", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, + "inclusionai/ling-3.0-flash-vl-free": { + id: "inclusionai/ling-3.0-flash-vl-free", + name: "Ling 3.0 Flash VL (Free)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 32000, + } satisfies Model<"anthropic-messages">, "interfaze/interfaze-beta": { id: "interfaze/interfaze-beta", name: "Interfaze Beta", @@ -1217,7 +1557,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { input: 0.15, output: 0.6, @@ -1268,7 +1608,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { input: 0.74, output: 2.96, @@ -1363,6 +1703,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 8192, } satisfies Model<"anthropic-messages">, + "meta/muse-glimmer-30b": { + id: "meta/muse-glimmer-30b", + name: "Muse Glimmer 30B", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.35, + output: 1.5, + cacheRead: 0.04, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "meta/muse-spark-1.1": { id: "meta/muse-spark-1.1", name: "Muse Spark 1.1", @@ -1380,6 +1737,74 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1048576, maxTokens: 1048576, } satisfies Model<"anthropic-messages">, + "meta/muse-spark-1.2": { + id: "meta/muse-spark-1.2", + name: "Muse Spark 1.2", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 4.25, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, + "meta/muse-spark-1.2-contributor": { + id: "meta/muse-spark-1.2-contributor", + name: "Muse Spark 1.2 Contributor", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.002, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, + "meta/muse-spark-1.3": { + id: "meta/muse-spark-1.3", + name: "Muse Spark 1.3", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.25, + output: 4.25, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, + "meta/muse-spark-1.3-contributor": { + id: "meta/muse-spark-1.3-contributor", + name: "Muse Spark 1.3 Contributor", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.002, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, "minimax/minimax-m2": { id: "minimax/minimax-m2", name: "MiniMax M2", @@ -1513,8 +1938,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 1000000, + contextWindow: 512000, + maxTokens: 512000, } satisfies Model<"anthropic-messages">, "mistral/codestral": { id: "mistral/codestral", @@ -1527,95 +1952,27 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.3, output: 0.9, - cacheRead: 0, + cacheRead: 0.03, cacheWrite: 0, }, contextWindow: 128000, maxTokens: 4000, } satisfies Model<"anthropic-messages">, - "mistral/devstral-2": { - id: "mistral/devstral-2", - name: "Devstral 2", + "mistral/ministral-14b": { + id: "mistral/ministral-14b", + name: "Ministral 14B", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: false, - input: ["text"], - cost: { - input: 0.4, - output: 2, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 256000, - } satisfies Model<"anthropic-messages">, - "mistral/devstral-small-2": { - id: "mistral/devstral-small-2", - name: "Devstral Small 2", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.1, - output: 0.3, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 256000, - } satisfies Model<"anthropic-messages">, - "mistral/magistral-medium": { - id: "mistral/magistral-medium", - name: "Magistral Medium 2509", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 2, - output: 5, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 64000, - } satisfies Model<"anthropic-messages">, - "mistral/magistral-small": { - id: "mistral/magistral-small", - name: "Magistral Small 2509", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.5, - output: 1.5, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 64000, - } satisfies Model<"anthropic-messages">, - "mistral/ministral-14b": { - id: "mistral/ministral-14b", - name: "Ministral 14B", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text", "image"], + input: ["text", "image"], cost: { input: 0.2, output: 0.2, - cacheRead: 0, + cacheRead: 0.02, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 256000, } satisfies Model<"anthropic-messages">, "mistral/ministral-3b": { @@ -1625,14 +1982,14 @@ export const VERCEL_AI_GATEWAY_MODELS = { provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.1, output: 0.1, - cacheRead: 0, + cacheRead: 0.01, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 131072, maxTokens: 4000, } satisfies Model<"anthropic-messages">, "mistral/ministral-8b": { @@ -1642,14 +1999,14 @@ export const VERCEL_AI_GATEWAY_MODELS = { provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.15, output: 0.15, - cacheRead: 0, + cacheRead: 0.015, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 262144, maxTokens: 4000, } satisfies Model<"anthropic-messages">, "mistral/mistral-large-3": { @@ -1663,29 +2020,12 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.5, output: 1.5, - cacheRead: 0, + cacheRead: 0.05, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 256000, } satisfies Model<"anthropic-messages">, - "mistral/mistral-medium": { - id: "mistral/mistral-medium", - name: "Mistral Medium 3.1", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.4, - output: 2, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 64000, - } satisfies Model<"anthropic-messages">, "mistral/mistral-medium-3.5": { id: "mistral/mistral-medium-3.5", name: "Mistral Medium Latest", @@ -1697,10 +2037,10 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 1.5, output: 7.5, - cacheRead: 0, + cacheRead: 0.15, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 256000, } satisfies Model<"anthropic-messages">, "mistral/mistral-nemo": { @@ -1712,13 +2052,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.15, - output: 0.15, + input: 0.04, + output: 0.17, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 128000, + contextWindow: 60288, + maxTokens: 16000, } satisfies Model<"anthropic-messages">, "mistral/mistral-small": { id: "mistral/mistral-small", @@ -1728,30 +2068,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { baseUrl: "https://ai-gateway.vercel.sh", reasoning: false, input: ["text", "image"], - cost: { - input: 0.1, - output: 0.3, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 32000, - maxTokens: 4000, - } satisfies Model<"anthropic-messages">, - "mistral/pixtral-12b": { - id: "mistral/pixtral-12b", - name: "Pixtral 12B 2409", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text", "image"], cost: { input: 0.15, - output: 0.15, - cacheRead: 0, + output: 0.6, + cacheRead: 0.015, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 262144, maxTokens: 4000, } satisfies Model<"anthropic-messages">, "moonshotai/kimi-k2": { @@ -1833,7 +2156,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.95, output: 4, - cacheRead: 0.19, + cacheRead: 0.16, cacheWrite: 0, }, contextWindow: 256000, @@ -1873,6 +2196,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"anthropic-messages">, + "moonshotai/kimi-k3-fast": { + id: "moonshotai/kimi-k3-fast", + name: "Kimi K3 Fast", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4.5, + output: 22.5, + cacheRead: 0.45, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "nvidia/nemotron-3-nano-30b-a3b": { id: "nvidia/nemotron-3-nano-30b-a3b", name: "Nemotron 3 Nano 30B A3B", @@ -1883,8 +2223,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { input: ["text"], cost: { input: 0.05, - output: 0.24, - cacheRead: 0, + output: 0.2, + cacheRead: 0.025, cacheWrite: 0, }, contextWindow: 262144, @@ -1924,6 +2264,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 65000, } satisfies Model<"anthropic-messages">, + "nvidia/nemotron-3.5-lightning": { + id: "nvidia/nemotron-3.5-lightning", + name: "Nemotron 3.5 Lightning 30B", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.05, + output: 0.2, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "nvidia/nemotron-nano-12b-v2-vl": { id: "nvidia/nemotron-nano-12b-v2-vl", name: "Nvidia Nemotron Nano 12B V2 VL", @@ -2009,6 +2366,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "openai/gpt-4.1-fast": { + id: "openai/gpt-4.1-fast", + name: "GPT-4.1 (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 3.5, + output: 14, + cacheRead: 0.875, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"anthropic-messages">, "openai/gpt-4.1-mini": { id: "openai/gpt-4.1-mini", name: "GPT-4.1 mini", @@ -2026,6 +2400,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "openai/gpt-4.1-mini-fast": { + id: "openai/gpt-4.1-mini-fast", + name: "GPT-4.1 mini (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.7, + output: 2.8, + cacheRead: 0.175, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"anthropic-messages">, "openai/gpt-4.1-nano": { id: "openai/gpt-4.1-nano", name: "GPT-4.1 nano", @@ -2043,6 +2434,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "openai/gpt-4.1-nano-fast": { + id: "openai/gpt-4.1-nano-fast", + name: "GPT-4.1 nano (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.2, + output: 0.8, + cacheRead: 0.05, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"anthropic-messages">, "openai/gpt-4o": { id: "openai/gpt-4o", name: "GPT-4o", @@ -2060,6 +2468,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"anthropic-messages">, + "openai/gpt-4o-fast": { + id: "openai/gpt-4o-fast", + name: "GPT-4o (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 4.25, + output: 17, + cacheRead: 2.125, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"anthropic-messages">, "openai/gpt-4o-mini": { id: "openai/gpt-4o-mini", name: "GPT-4o mini", @@ -2077,6 +2502,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"anthropic-messages">, + "openai/gpt-4o-mini-fast": { + id: "openai/gpt-4o-mini-fast", + name: "GPT-4o mini (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.25, + output: 1, + cacheRead: 0.125, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"anthropic-messages">, "openai/gpt-5": { id: "openai/gpt-5", name: "GPT-5", @@ -2094,35 +2536,35 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5-chat": { - id: "openai/gpt-5-chat", - name: "GPT 5 Chat", + "openai/gpt-5-codex": { + id: "openai/gpt-5-codex", + name: "GPT-5-Codex", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { input: 1.25, output: 10, - cacheRead: 0.125, + cacheRead: 0.13, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 400000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5-codex": { - id: "openai/gpt-5-codex", - name: "GPT-5-Codex", + "openai/gpt-5-fast": { + id: "openai/gpt-5-fast", + name: "GPT-5 (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, + input: 2.5, + output: 20, + cacheRead: 0.25, cacheWrite: 0, }, contextWindow: 400000, @@ -2145,6 +2587,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5-mini-fast": { + id: "openai/gpt-5-mini-fast", + name: "GPT-5 mini (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.45, + output: 3.6, + cacheRead: 0.045, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5-nano": { id: "openai/gpt-5-nano", name: "GPT-5 nano", @@ -2190,7 +2649,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 1.25, output: 10, - cacheRead: 0.125, + cacheRead: 0.13, cacheWrite: 0, }, contextWindow: 400000, @@ -2224,19 +2683,19 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.25, output: 2, - cacheRead: 0.025, + cacheRead: 0.03, cacheWrite: 0, }, contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5.1-instant": { - id: "openai/gpt-5.1-instant", - name: "GPT-5.1 Instant", + "openai/gpt-5.1-thinking": { + id: "openai/gpt-5.1-thinking", + name: "GPT 5.1 Thinking", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { input: 1.25, @@ -2244,21 +2703,21 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheRead: 0.125, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, - } satisfies Model<"anthropic-messages">, - "openai/gpt-5.1-thinking": { - id: "openai/gpt-5.1-thinking", - name: "GPT 5.1 Thinking", + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-5.1-thinking-fast": { + id: "openai/gpt-5.1-thinking-fast", + name: "GPT 5.1 Thinking (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 1.25, - output: 10, - cacheRead: 0.125, + input: 2.5, + output: 20, + cacheRead: 0.25, cacheWrite: 0, }, contextWindow: 400000, @@ -2282,13 +2741,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5.2-chat": { - id: "openai/gpt-5.2-chat", - name: "GPT 5.2 Chat", + "openai/gpt-5.2-codex": { + id: "openai/gpt-5.2-codex", + name: "GPT 5.2 Codex", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, + reasoning: true, thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { @@ -2297,12 +2756,12 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheRead: 0.175, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 400000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5.2-codex": { - id: "openai/gpt-5.2-codex", - name: "GPT 5.2 Codex", + "openai/gpt-5.2-fast": { + id: "openai/gpt-5.2-fast", + name: "GPT 5.2 (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -2310,9 +2769,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 3.5, + output: 28, + cacheRead: 0.35, cacheWrite: 0, }, contextWindow: 400000, @@ -2336,13 +2795,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5.3-chat": { - id: "openai/gpt-5.3-chat", - name: "GPT-5.3 Chat", + "openai/gpt-5.3-codex": { + id: "openai/gpt-5.3-codex", + name: "GPT 5.3 Codex", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, + reasoning: true, thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { @@ -2351,12 +2810,12 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheRead: 0.175, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 400000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-5.3-codex": { - id: "openai/gpt-5.3-codex", - name: "GPT 5.3 Codex", + "openai/gpt-5.3-codex-fast": { + id: "openai/gpt-5.3-codex-fast", + name: "GPT 5.3 Codex (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -2364,9 +2823,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1.75, - output: 14, - cacheRead: 0.175, + input: 3.5, + output: 28, + cacheRead: 0.35, cacheWrite: 0, }, contextWindow: 400000, @@ -2390,6 +2849,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.4-fast": { + id: "openai/gpt-5.4-fast", + name: "GPT 5.4 (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 5, + output: 30, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.4-mini": { id: "openai/gpt-5.4-mini", name: "GPT 5.4 Mini", @@ -2408,6 +2885,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.4-mini-fast": { + id: "openai/gpt-5.4-mini-fast", + name: "GPT 5.4 Mini (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1.5, + output: 9, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.4-nano": { id: "openai/gpt-5.4-nano", name: "GPT 5.4 Nano", @@ -2462,6 +2957,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.5-fast": { + id: "openai/gpt-5.5-fast", + name: "GPT 5.5 (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 12.5, + output: 75, + cacheRead: 1.25, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.5-pro": { id: "openai/gpt-5.5-pro", name: "GPT 5.5 Pro", @@ -2490,10 +3003,28 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 1, - output: 6, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.2, + output: 1.2, + cacheRead: 0.02, + cacheWrite: 0.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-5.6-luna-fast": { + id: "openai/gpt-5.6-luna-fast", + name: "GPT 5.6 Luna (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.4, + output: 2.4, + cacheRead: 0.04, + cacheWrite: 0.5, }, contextWindow: 1050000, maxTokens: 128000, @@ -2508,10 +3039,28 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-5.6-sol-fast": { + id: "openai/gpt-5.6-sol-fast", + name: "GPT 5.6 Sol (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -2526,10 +3075,62 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 2.5, - output: 15, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 2, + output: 12, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-5.6-terra-fast": { + id: "openai/gpt-5.6-terra-fast", + name: "GPT 5.6 Terra (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 4, + output: 24, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-astra": { + id: "openai/gpt-6-astra", + name: "GPT-6 Astra", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-astra-fast": { + id: "openai/gpt-6-astra-fast", + name: "GPT-6 Astra (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 20, + output: 100, + cacheRead: 2, + cacheWrite: 25, }, contextWindow: 1050000, maxTokens: 128000, @@ -2568,6 +3169,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 131072, maxTokens: 8192, } satisfies Model<"anthropic-messages">, + "openai/gpt-oss-safeguard-120b": { + id: "openai/gpt-oss-safeguard-120b", + name: "GPT OSS Safeguard 120B", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16000, + } satisfies Model<"anthropic-messages">, "openai/gpt-oss-safeguard-20b": { id: "openai/gpt-oss-safeguard-20b", name: "GPT OSS Safeguard 20B", @@ -2577,13 +3195,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.075, - output: 0.3, - cacheRead: 0.037, + input: 0.07, + output: 0.2, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 65536, + contextWindow: 128000, + maxTokens: 16000, } satisfies Model<"anthropic-messages">, "openai/o1": { id: "openai/o1", @@ -2619,18 +3237,18 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"anthropic-messages">, - "openai/o3-deep-research": { - id: "openai/o3-deep-research", - name: "o3-deep-research", + "openai/o3-fast": { + id: "openai/o3-fast", + name: "o3 (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 10, - output: 40, - cacheRead: 2.5, + input: 3.5, + output: 14, + cacheRead: 0.875, cacheWrite: 0, }, contextWindow: 200000, @@ -2687,76 +3305,127 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 100000, } satisfies Model<"anthropic-messages">, - "sakana/fugu-ultra": { - id: "sakana/fugu-ultra", - name: "Fugu Ultra", + "openai/o4-mini-fast": { + id: "openai/o4-mini-fast", + name: "o4-mini (Fast)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 5, - output: 30, + input: 2, + output: 8, cacheRead: 0.5, cacheWrite: 0, }, + contextWindow: 200000, + maxTokens: 100000, + } satisfies Model<"anthropic-messages">, + "poolside/laguna-s-2.1": { + id: "poolside/laguna-s-2.1", + name: "Laguna S 2.1", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.1, + output: 0.2, + cacheRead: 0.01, + cacheWrite: 0, + }, contextWindow: 1000000, - maxTokens: 1000000, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, - "stepfun/step-3.5-flash": { - id: "stepfun/step-3.5-flash", - name: "StepFun 3.5 Flash", + "poolside/laguna-s-2.1-free": { + id: "poolside/laguna-s-2.1-free", + name: "Laguna S 2.1 Free", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text"], cost: { - input: 0.09, - output: 0.3, - cacheRead: 0.02, + input: 0, + output: 0, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262114, - maxTokens: 262114, + contextWindow: 256000, + maxTokens: 32768, } satisfies Model<"anthropic-messages">, - "stepfun/step-3.7-flash": { - id: "stepfun/step-3.7-flash", - name: "Step 3.7 Flash", + "sakana/fugu-max": { + id: "sakana/fugu-max", + name: "Fugu Max", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 0.2, - output: 1.15, - cacheRead: 0.04, + input: 2, + output: 6, + cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 256000, + contextWindow: 1000000, + maxTokens: 1000000, } satisfies Model<"anthropic-messages">, - "thinkingmachines/inkling": { - id: "thinkingmachines/inkling", - name: "Inkling", + "sakana/fugu-ultra": { + id: "sakana/fugu-ultra", + name: "Fugu Ultra", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 1, - output: 4.05, - cacheRead: 0.17, + input: 5, + output: 30, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 1000000, + } satisfies Model<"anthropic-messages">, + "sakana/fugu-ultra-v2": { + id: "sakana/fugu-ultra-v2", + name: "Fugu Ultra v2", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 30, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 1000000, + } satisfies Model<"anthropic-messages">, + "sakana/namazu": { + id: "sakana/namazu", + name: "Sakana Namazu", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.95, + output: 4, + cacheRead: 0.15, cacheWrite: 0, }, contextWindow: 256000, maxTokens: 256000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.1-fast-non-reasoning": { - id: "xai/grok-4.1-fast-non-reasoning", + "spacexai/grok-4.1-fast-non-reasoning": { + id: "spacexai/grok-4.1-fast-non-reasoning", name: "Grok 4.1 Fast Non-Reasoning", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2772,8 +3441,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 1000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.1-fast-reasoning": { - id: "xai/grok-4.1-fast-reasoning", + "spacexai/grok-4.1-fast-reasoning": { + id: "spacexai/grok-4.1-fast-reasoning", name: "Grok 4.1 Fast Reasoning", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2789,8 +3458,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 1000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.20-multi-agent": { - id: "xai/grok-4.20-multi-agent", + "spacexai/grok-4.20-multi-agent": { + id: "spacexai/grok-4.20-multi-agent", name: "Grok 4.20 Multi-Agent", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2806,8 +3475,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.20-multi-agent-beta": { - id: "xai/grok-4.20-multi-agent-beta", + "spacexai/grok-4.20-multi-agent-beta": { + id: "spacexai/grok-4.20-multi-agent-beta", name: "Grok 4.20 Multi Agent Beta", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2823,8 +3492,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.20-non-reasoning": { - id: "xai/grok-4.20-non-reasoning", + "spacexai/grok-4.20-non-reasoning": { + id: "spacexai/grok-4.20-non-reasoning", name: "Grok 4.20 Non-Reasoning", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2840,8 +3509,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.20-non-reasoning-beta": { - id: "xai/grok-4.20-non-reasoning-beta", + "spacexai/grok-4.20-non-reasoning-beta": { + id: "spacexai/grok-4.20-non-reasoning-beta", name: "Grok 4.20 Beta Non-Reasoning", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2857,8 +3526,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.20-reasoning": { - id: "xai/grok-4.20-reasoning", + "spacexai/grok-4.20-reasoning": { + id: "spacexai/grok-4.20-reasoning", name: "Grok 4.20 Reasoning", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2874,8 +3543,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.20-reasoning-beta": { - id: "xai/grok-4.20-reasoning-beta", + "spacexai/grok-4.20-reasoning-beta": { + id: "spacexai/grok-4.20-reasoning-beta", name: "Grok 4.20 Beta Reasoning", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2891,8 +3560,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.3": { - id: "xai/grok-4.3", + "spacexai/grok-4.3": { + id: "spacexai/grok-4.3", name: "Grok 4.3", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2908,14 +3577,31 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 1000000, } satisfies Model<"anthropic-messages">, - "xai/grok-4.5": { - id: "xai/grok-4.5", + "spacexai/grok-4.5": { + id: "spacexai/grok-4.5", name: "Grok 4.5", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"anthropic-messages">, + "spacexai/grok-4.6": { + id: "spacexai/grok-4.6", + name: "Grok 4.6", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], cost: { input: 2, output: 6, @@ -2925,8 +3611,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"anthropic-messages">, - "xai/grok-build-0.1": { - id: "xai/grok-build-0.1", + "spacexai/grok-build-0.1": { + id: "spacexai/grok-build-0.1", name: "Grok Build 0.1", api: "anthropic-messages", provider: "vercel-ai-gateway", @@ -2942,6 +3628,108 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 256000, maxTokens: 256000, } satisfies Model<"anthropic-messages">, + "stepfun/step-3.5-flash": { + id: "stepfun/step-3.5-flash", + name: "StepFun 3.5 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.09, + output: 0.3, + cacheRead: 0.02, + cacheWrite: 0, + }, + contextWindow: 262114, + maxTokens: 262114, + } satisfies Model<"anthropic-messages">, + "stepfun/step-3.7-flash": { + id: "stepfun/step-3.7-flash", + name: "Step 3.7 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1.15, + cacheRead: 0.04, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 256000, + } satisfies Model<"anthropic-messages">, + "tencent/hy3": { + id: "tencent/hy3", + name: "Hy3", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.14, + output: 0.58, + cacheRead: 0.035, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, + "tencent/hy4-preview": { + id: "tencent/hy4-preview", + name: "Tencent Hy4 Preview", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 0.834, + output: 2.501, + cacheRead: 0.042, + cacheWrite: 0, + }, + contextWindow: 1024000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, + "thinkingmachines/inkling": { + id: "thinkingmachines/inkling", + name: "Inkling", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 4.05, + cacheRead: 0.17, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 256000, + } satisfies Model<"anthropic-messages">, + "thinkingmachines/inkling-small": { + id: "thinkingmachines/inkling-small", + name: "Inkling Small", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.5, + output: 1.2, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 1000000, + } satisfies Model<"anthropic-messages">, "xiaomi/mimo-v2.5": { id: "xiaomi/mimo-v2.5", name: "MiMo M2.5", @@ -3044,40 +3832,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 96000, } satisfies Model<"anthropic-messages">, - "zai/glm-4.6v": { - id: "zai/glm-4.6v", - name: "GLM-4.6V", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.3, - output: 0.9, - cacheRead: 0.05, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 24000, - } satisfies Model<"anthropic-messages">, - "zai/glm-4.6v-flash": { - id: "zai/glm-4.6v-flash", - name: "GLM-4.6V-Flash", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 24000, - } satisfies Model<"anthropic-messages">, "zai/glm-4.7": { id: "zai/glm-4.7", name: "GLM 4.7", @@ -3138,9 +3892,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.95, - output: 3.15, - cacheRead: 0.2, + input: 1, + output: 3.2, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 202800, @@ -3172,13 +3926,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.3, - output: 4.3, + input: 1.4, + output: 4.4, cacheRead: 0.26, cacheWrite: 0, }, - contextWindow: 202000, - maxTokens: 202000, + contextWindow: 202800, + maxTokens: 64000, } satisfies Model<"anthropic-messages">, "zai/glm-5.2": { id: "zai/glm-5.2", @@ -3189,12 +3943,12 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 1.4, - output: 4.4, - cacheRead: 0.26, + input: 0.8, + output: 2.55, + cacheRead: 0.16, cacheWrite: 0, }, - contextWindow: 1040000, + contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, "zai/glm-5.2-fast": { @@ -3214,6 +3968,57 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "zai/glm-5.3": { + id: "zai/glm-5.3", + name: "GLM 5.3", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 1.4, + output: 4.4, + cacheRead: 0.14, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 1000000, + } satisfies Model<"anthropic-messages">, + "zai/glm-5.3-fast": { + id: "zai/glm-5.3-fast", + name: "GLM 5.3 Fast", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text"], + cost: { + input: 2.1, + output: 6.6, + cacheRead: 0.21, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, + "zai/glm-5.3-flash": { + id: "zai/glm-5.3-flash", + name: "GLM 5.3 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131000, + } satisfies Model<"anthropic-messages">, "zai/glm-5v-turbo": { id: "zai/glm-5v-turbo", name: "GLM 5V Turbo", diff --git a/packages/ai/src/providers/xai.models.ts b/packages/ai/src/providers/xai.models.ts index 81d9eaf..383c062 100644 --- a/packages/ai/src/providers/xai.models.ts +++ b/packages/ai/src/providers/xai.models.ts @@ -112,6 +112,24 @@ export const XAI_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"openai-completions">, + "grok-4.6": { + id: "grok-4.6", + name: "Grok 4.6", + api: "openai-completions", + provider: "xai", + baseUrl: "https://api.x.ai/v1", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"openai-completions">, "grok-build-0.1": { id: "grok-build-0.1", name: "Grok Build 0.1", diff --git a/packages/ai/src/providers/zai-coding-cn.models.ts b/packages/ai/src/providers/zai-coding-cn.models.ts index d46a835..18a708a 100644 --- a/packages/ai/src/providers/zai-coding-cn.models.ts +++ b/packages/ai/src/providers/zai-coding-cn.models.ts @@ -4,13 +4,13 @@ import type { Model } from "../types.ts"; export const ZAI_CODING_CN_MODELS = { - "glm-4.5-air": { - id: "glm-4.5-air", - name: "GLM-4.5-Air", + "glm-4.7": { + id: "glm-4.7", + name: "GLM-4.7", api: "openai-completions", provider: "zai-coding-cn", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, reasoning: true, input: ["text"], cost: { @@ -19,12 +19,12 @@ export const ZAI_CODING_CN_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 98304, + contextWindow: 204800, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-4.7": { - id: "glm-4.7", - name: "GLM-4.7", + "glm-5-turbo": { + id: "glm-5-turbo", + name: "GLM-5-Turbo", api: "openai-completions", provider: "zai-coding-cn", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", @@ -37,17 +37,18 @@ export const ZAI_CODING_CN_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 204800, + contextWindow: 200000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5-turbo": { - id: "glm-5-turbo", - name: "GLM-5-Turbo", + "glm-5.2": { + id: "glm-5.2", + name: "GLM-5.2", api: "openai-completions", provider: "zai-coding-cn", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"thinkingFormat":"zai","zaiToolStream":true}, reasoning: true, + thinkingLevelMap: {"minimal":null,"low":"high","medium":"high","high":"high","max":"max"}, input: ["text"], cost: { input: 0, @@ -55,12 +56,12 @@ export const ZAI_CODING_CN_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5.1": { - id: "glm-5.1", - name: "GLM-5.1", + "glm-5.2-highspeed": { + id: "glm-5.2-highspeed", + name: "GLM-5.2 Highspeed", api: "openai-completions", provider: "zai-coding-cn", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", @@ -73,18 +74,17 @@ export const ZAI_CODING_CN_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5.2": { - id: "glm-5.2", - name: "GLM-5.2", + "glm-5.3": { + id: "glm-5.3", + name: "GLM-5.3", api: "openai-completions", provider: "zai-coding-cn", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"thinkingFormat":"zai","zaiToolStream":true}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, reasoning: true, - thinkingLevelMap: {"minimal":null,"low":"high","medium":"high","high":"high","max":"max"}, input: ["text"], cost: { input: 0, @@ -95,9 +95,9 @@ export const ZAI_CODING_CN_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5v-turbo": { - id: "glm-5v-turbo", - name: "GLM-5V-Turbo", + "glm-5.3-flash": { + id: "glm-5.3-flash", + name: "GLM-5.3-Flash", api: "openai-completions", provider: "zai-coding-cn", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", @@ -110,7 +110,25 @@ export const ZAI_CODING_CN_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "glm-5.3-highspeed": { + id: "glm-5.3-highspeed", + name: "GLM-5.3 Highspeed", + api: "openai-completions", + provider: "zai-coding-cn", + baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/zai.models.ts b/packages/ai/src/providers/zai.models.ts index dd043ed..27a2d3c 100644 --- a/packages/ai/src/providers/zai.models.ts +++ b/packages/ai/src/providers/zai.models.ts @@ -4,13 +4,13 @@ import type { Model } from "../types.ts"; export const ZAI_MODELS = { - "glm-4.5-air": { - id: "glm-4.5-air", - name: "GLM-4.5-Air", + "glm-4.7": { + id: "glm-4.7", + name: "GLM-4.7", api: "openai-completions", provider: "zai", baseUrl: "https://api.z.ai/api/coding/paas/v4", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, reasoning: true, input: ["text"], cost: { @@ -19,12 +19,12 @@ export const ZAI_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 98304, + contextWindow: 204800, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-4.7": { - id: "glm-4.7", - name: "GLM-4.7", + "glm-5-turbo": { + id: "glm-5-turbo", + name: "GLM-5-Turbo", api: "openai-completions", provider: "zai", baseUrl: "https://api.z.ai/api/coding/paas/v4", @@ -37,17 +37,18 @@ export const ZAI_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 204800, + contextWindow: 200000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5-turbo": { - id: "glm-5-turbo", - name: "GLM-5-Turbo", + "glm-5.2": { + id: "glm-5.2", + name: "GLM-5.2", api: "openai-completions", provider: "zai", baseUrl: "https://api.z.ai/api/coding/paas/v4", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"thinkingFormat":"zai","zaiToolStream":true}, reasoning: true, + thinkingLevelMap: {"minimal":null,"low":"high","medium":"high","high":"high","max":"max"}, input: ["text"], cost: { input: 0, @@ -55,12 +56,12 @@ export const ZAI_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5.1": { - id: "glm-5.1", - name: "GLM-5.1", + "glm-5.2-highspeed": { + id: "glm-5.2-highspeed", + name: "GLM-5.2 Highspeed", api: "openai-completions", provider: "zai", baseUrl: "https://api.z.ai/api/coding/paas/v4", @@ -73,18 +74,17 @@ export const ZAI_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5.2": { - id: "glm-5.2", - name: "GLM-5.2", + "glm-5.3": { + id: "glm-5.3", + name: "GLM-5.3", api: "openai-completions", provider: "zai", baseUrl: "https://api.z.ai/api/coding/paas/v4", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"thinkingFormat":"zai","zaiToolStream":true}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, reasoning: true, - thinkingLevelMap: {"minimal":null,"low":"high","medium":"high","high":"high","max":"max"}, input: ["text"], cost: { input: 0, @@ -95,9 +95,9 @@ export const ZAI_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, - "glm-5v-turbo": { - id: "glm-5v-turbo", - name: "GLM-5V-Turbo", + "glm-5.3-flash": { + id: "glm-5.3-flash", + name: "GLM-5.3-Flash", api: "openai-completions", provider: "zai", baseUrl: "https://api.z.ai/api/coding/paas/v4", @@ -110,7 +110,25 @@ export const ZAI_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "glm-5.3-highspeed": { + id: "glm-5.3-highspeed", + name: "GLM-5.3 Highspeed", + api: "openai-completions", + provider: "zai", + baseUrl: "https://api.z.ai/api/coding/paas/v4", + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"thinkingFormat":"zai","zaiToolStream":true}, + reasoning: true, + input: ["text"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/types.ts b/packages/ai/src/types.ts index 31d3832..4bd04c1 100644 --- a/packages/ai/src/types.ts +++ b/packages/ai/src/types.ts @@ -526,6 +526,8 @@ export interface OpenAIResponsesCompat { sendSessionIdHeader?: boolean; /** Whether the provider supports `prompt_cache_retention: "24h"`. Default: true. */ supportsLongCacheRetention?: boolean; + /** Whether the provider accepts the `reasoning.effort` request field. Default: true. */ + supportsReasoningEffort?: boolean; } /** Compatibility settings for Anthropic Messages-compatible APIs. */ diff --git a/packages/ai/test/abort.test.ts b/packages/ai/test/abort.test.ts index ce81422..13262f8 100644 --- a/packages/ai/test/abort.test.ts +++ b/packages/ai/test/abort.test.ts @@ -154,7 +154,7 @@ describe("AI Providers Abort Tests", () => { }); describe.skipIf(!process.env.ANTHROPIC_OAUTH_TOKEN)("Anthropic Provider Abort", () => { - const llm = getModel("anthropic", "claude-opus-4-1-20250805"); + const llm = getModel("anthropic", "claude-opus-4-5-20251101"); it("should abort mid-stream", { retry: 3 }, async () => { await testAbortSignal(llm, { thinkingEnabled: true, thinkingBudgetTokens: 2048 }); @@ -250,7 +250,7 @@ describe("AI Providers Abort Tests", () => { }); describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding Provider Abort", () => { - const llm = getModel("kimi-coding", "k2p7"); + const llm = getModel("kimi-coding", "k3"); it("should abort mid-stream", { retry: 3 }, async () => { await testAbortSignal(llm); diff --git a/packages/ai/test/context-overflow.test.ts b/packages/ai/test/context-overflow.test.ts index d8cb5ce..81a0966 100644 --- a/packages/ai/test/context-overflow.test.ts +++ b/packages/ai/test/context-overflow.test.ts @@ -127,7 +127,7 @@ describe("Context overflow error handling", () => { it.skipIf(!githubCopilotToken)( "gemini-2.5-pro - should detect overflow via isContextOverflow", async () => { - const model = getModel("github-copilot", "gemini-2.5-pro"); + const model = getModel("github-copilot", "gemini-3.5-flash"); const result = await testContextOverflow(model, githubCopilotToken!); logResult(result); @@ -203,7 +203,7 @@ describe("Context overflow error handling", () => { describe.skipIf(!process.env.GEMINI_API_KEY)("Google", () => { it("gemini-2.0-flash - should detect overflow via isContextOverflow", async () => { - const model = getModel("google", "gemini-2.0-flash"); + const model = getModel("google", "gemini-2.5-flash"); const result = await testContextOverflow(model, process.env.GEMINI_API_KEY!); logResult(result); @@ -355,7 +355,7 @@ describe("Context overflow error handling", () => { describe.skipIf(!process.env.ZAI_API_KEY)("z.ai", () => { it("glm-4.5-air - should detect overflow via isContextOverflow when z.ai reports it", async () => { - const model = getModel("zai", "glm-4.5-air"); + const model = getModel("zai", "glm-5.3-flash"); const result = await testContextOverflow(model, process.env.ZAI_API_KEY!); logResult(result); @@ -472,7 +472,7 @@ describe("Context overflow error handling", () => { describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding", () => { it("kimi-k2-thinking - should detect overflow via isContextOverflow", async () => { - const model = getModel("kimi-coding", "k2p7"); + const model = getModel("kimi-coding", "k3"); const result = await testContextOverflow(model, process.env.KIMI_API_KEY!); logResult(result); diff --git a/packages/ai/test/empty.test.ts b/packages/ai/test/empty.test.ts index 93a81ac..928dbf7 100644 --- a/packages/ai/test/empty.test.ts +++ b/packages/ai/test/empty.test.ts @@ -327,7 +327,7 @@ describe("AI Providers Empty Message Tests", () => { }); describe.skipIf(!hasCloudflareAiGatewayCredentials())("Cloudflare AI Gateway Provider Empty Messages", () => { - const llm = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6"); + const llm = getModel("cloudflare-ai-gateway", "gpt-5.1"); it("should handle empty content array", { retry: 3, timeout: 30000 }, async () => { await testEmptyMessage(llm); @@ -387,7 +387,7 @@ describe("AI Providers Empty Message Tests", () => { }); describe.skipIf(!process.env.ZAI_API_KEY)("zAI Provider Empty Messages", () => { - const llm = getModel("zai", "glm-4.5-air"); + const llm = getModel("zai", "glm-5.3-flash"); it("should handle empty content array", { retry: 3, timeout: 30000 }, async () => { await testEmptyMessage(llm); @@ -536,7 +536,7 @@ describe("AI Providers Empty Message Tests", () => { ); describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding Provider Empty Messages", () => { - const llm = getModel("kimi-coding", "k2p7"); + const llm = getModel("kimi-coding", "k3"); it("should handle empty content array", { retry: 3, timeout: 30000 }, async () => { await testEmptyMessage(llm); diff --git a/packages/ai/test/fireworks-models.test.ts b/packages/ai/test/fireworks-models.test.ts index 36afbee..d6d2cde 100644 --- a/packages/ai/test/fireworks-models.test.ts +++ b/packages/ai/test/fireworks-models.test.ts @@ -37,9 +37,9 @@ describe("Fireworks models", () => { }); }); - it("registers the Fire Pass turbo router model", () => { + it("registers the Fire Pass router models", () => { const model = getModels("fireworks").find( - (candidate) => candidate.id.startsWith("accounts/fireworks/routers/") && candidate.id.endsWith("-turbo"), + (candidate) => candidate.id.startsWith("accounts/fireworks/routers/") && candidate.id.endsWith("-latest"), ); expect(model).toBeDefined(); diff --git a/packages/ai/test/github-copilot-oauth.test.ts b/packages/ai/test/github-copilot-oauth.test.ts index 963eef7..37693b9 100644 --- a/packages/ai/test/github-copilot-oauth.test.ts +++ b/packages/ai/test/github-copilot-oauth.test.ts @@ -52,7 +52,7 @@ describe("GitHub Copilot OAuth device flow", () => { return jsonResponse({ data: [ { - id: "gpt-4.1", + id: "gpt-5.4", model_picker_enabled: true, capabilities: { supports: { tool_calls: true } }, }, @@ -77,11 +77,11 @@ describe("GitHub Copilot OAuth device flow", () => { vi.stubGlobal("fetch", fetchMock); const credentials = await refreshGitHubCopilotToken("ghu_refresh_token"); - expect(credentials.availableModelIds).toEqual(["gpt-4.1"]); + expect(credentials.availableModelIds).toEqual(["gpt-5.4"]); const modifiedModels = githubCopilotOAuthProvider.modifyModels?.(getModels("github-copilot"), credentials) ?? []; expect(modifiedModels.filter((model) => model.provider === "github-copilot").map((model) => model.id)).toEqual([ - "gpt-4.1", + "gpt-5.4", ]); }); diff --git a/packages/ai/test/openai-completions-empty-tools.test.ts b/packages/ai/test/openai-completions-empty-tools.test.ts index cd55b64..c3eaa60 100644 --- a/packages/ai/test/openai-completions-empty-tools.test.ts +++ b/packages/ai/test/openai-completions-empty-tools.test.ts @@ -160,96 +160,8 @@ describe("openai-completions empty tools handling", () => { expect(params.max_completion_tokens).toBe(3904); }); - it("uses conservative OpenAI-compatible fields for Cloudflare AI Gateway /compat models", async () => { - process.env.CLOUDFLARE_API_KEY = "cf-token"; - process.env.CLOUDFLARE_ACCOUNT_ID = "account-id"; - process.env.CLOUDFLARE_GATEWAY_ID = "gateway-id"; - const model = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6")!; - - await streamSimple( - model, - { - systemPrompt: "You are helpful.", - messages: [{ role: "user", content: "hi", timestamp: Date.now() }], - }, - { maxTokens: 1234, reasoning: "high" }, - ).result(); - - const params = mockState.lastParams as { - messages: Array<{ role: string }>; - max_tokens?: number; - max_completion_tokens?: number; - reasoning_effort?: string; - store?: boolean; - }; - expect(params.messages[0].role).toBe("system"); - expect(params.max_tokens).toBe(1234); - expect(params.max_completion_tokens).toBeUndefined(); - expect(params.reasoning_effort).toBeUndefined(); - expect(params.store).toBeUndefined(); - - const clientOptions = mockState.lastClientOptions as { - baseURL?: string; - defaultHeaders?: Record; - }; - expect(clientOptions.baseURL).toBe("https://gateway.ai.cloudflare.com/v1/account-id/gateway-id/compat"); - expect(clientOptions.defaultHeaders?.Authorization).toBeNull(); - expect(clientOptions.defaultHeaders?.["cf-aig-authorization"]).toBe("Bearer cf-token"); - }); - - it("resolves Cloudflare AI Gateway base URL through provider auth", async () => { - process.env.CLOUDFLARE_API_KEY = "cf-token"; - process.env.CLOUDFLARE_ACCOUNT_ID = "account-id"; - process.env.CLOUDFLARE_GATEWAY_ID = "gateway-id"; - const model = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6")!; - - await streamSimple(model, { - messages: [{ role: "user", content: "hi", timestamp: Date.now() }], - }).result(); - - const clientOptions = mockState.lastClientOptions as { baseURL?: string }; - expect(clientOptions.baseURL).toBe("https://gateway.ai.cloudflare.com/v1/account-id/gateway-id/compat"); - }); - - it("preserves inline upstream Authorization for Cloudflare AI Gateway BYOK requests", async () => { - process.env.CLOUDFLARE_API_KEY = "cf-token"; - process.env.CLOUDFLARE_ACCOUNT_ID = "account-id"; - process.env.CLOUDFLARE_GATEWAY_ID = "gateway-id"; - const model = getModel("cloudflare-ai-gateway", "gpt-5.1")!; - - await streamSimple( - model, - { - messages: [{ role: "user", content: "hi", timestamp: Date.now() }], - }, - { headers: { Authorization: "Bearer upstream-token" } }, - ).result(); - - const clientOptions = mockState.lastClientOptions as { defaultHeaders?: Record }; - expect(clientOptions.defaultHeaders?.Authorization).toBe("Bearer upstream-token"); - expect(clientOptions.defaultHeaders?.["cf-aig-authorization"]).toBe("Bearer cf-token"); - }); - - it("sends session affinity headers for Workers AI through Cloudflare AI Gateway", async () => { - process.env.CLOUDFLARE_API_KEY = "cf-token"; - process.env.CLOUDFLARE_ACCOUNT_ID = "account-id"; - process.env.CLOUDFLARE_GATEWAY_ID = "gateway-id"; - const workersModel = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6")!; - - await streamSimple( - workersModel, - { - messages: [{ role: "user", content: "hi", timestamp: Date.now() }], - }, - { sessionId: "session-1" }, - ).result(); - - const clientOptions = mockState.lastClientOptions as { defaultHeaders?: Record }; - expect(clientOptions.defaultHeaders?.session_id).toBe("session-1"); - expect(clientOptions.defaultHeaders?.["x-client-request-id"]).toBe("session-1"); - expect(clientOptions.defaultHeaders?.["x-session-affinity"]).toBe("session-1"); - }); - + // Gateway auth resolution (headers + baseUrl placeholders) is covered in + // providers.test.ts; the gateway catalog no longer carries completions models. it("still emits tools: [] for Anthropic/LiteLLM proxy when conversation has tool history", async () => { const { compat: _compat, ...baseModel } = getModel("openai", "gpt-4o-mini")!; const model = { ...baseModel, api: "openai-completions" } as const; diff --git a/packages/ai/test/openai-completions-tool-choice.test.ts b/packages/ai/test/openai-completions-tool-choice.test.ts index 1dd49c7..c538bbd 100644 --- a/packages/ai/test/openai-completions-tool-choice.test.ts +++ b/packages/ai/test/openai-completions-tool-choice.test.ts @@ -195,8 +195,8 @@ describe("openai-completions tool_choice", () => { expect("strict" in (tool ?? {})).toBe(false); }); - it("maps groq qwen3 reasoning levels to default reasoning_effort", async () => { - const model = getModel("groq", "qwen/qwen3-32b")!; + it("passes groq qwen3 reasoning levels through as reasoning_effort", async () => { + const model = getModel("groq", "qwen/qwen3.6-27b")!; let payload: unknown; await streamSimple( @@ -220,7 +220,7 @@ describe("openai-completions tool_choice", () => { ).result(); const params = (payload ?? mockState.lastParams) as { reasoning_effort?: string }; - expect(params.reasoning_effort).toBe("default"); + expect(params.reasoning_effort).toBe("medium"); }); it("keeps normal reasoning_effort for groq models without compat mapping", async () => { @@ -252,7 +252,7 @@ describe("openai-completions tool_choice", () => { }); it("enables tool_stream for supported z.ai models with tools", async () => { - const model = getModel("zai", "glm-5.1")!; + const model = getModel("zai", "glm-5.2")!; const tools: Tool[] = [ { name: "ping", @@ -289,11 +289,10 @@ describe("openai-completions tool_choice", () => { }); it("stores z.ai tool_stream support in model compat metadata", () => { - expect(getModel("zai", "glm-5.1")?.compat?.zaiToolStream).toBe(true); + expect(getModel("zai", "glm-5.2")?.compat?.zaiToolStream).toBe(true); expect(getModel("zai", "glm-4.7")?.compat?.zaiToolStream).toBe(true); expect(getModel("zai", "glm-4.7")?.compat?.zaiToolStream).toBe(true); expect(getModel("zai", "glm-5-turbo")?.compat?.zaiToolStream).toBe(true); - expect(getModel("zai", "glm-4.5-air")?.compat?.zaiToolStream).toBeUndefined(); }); it("stores z.ai GLM-5.2 effort metadata", () => { @@ -437,7 +436,15 @@ describe("openai-completions tool_choice", () => { }); it("omits tool_stream for unsupported z.ai models", async () => { - const model = getModel("zai", "glm-4.5-air")!; + // All catalog z.ai models now ship the flag, so disable it via compat override. + const baseModel = getModel("zai", "glm-5.2")!; + const model = { + ...baseModel, + compat: { + ...baseModel.compat, + zaiToolStream: false, + }, + } as const; const tools: Tool[] = [ { name: "ping", @@ -474,11 +481,11 @@ describe("openai-completions tool_choice", () => { }); it("respects explicit z.ai tool_stream compat override", async () => { - const baseModel = getModel("zai", "glm-4.5-air")!; + const { compat: baseCompat, ...baseModel } = getModel("zai", "glm-5.2")!; const model = { ...baseModel, compat: { - ...baseModel.compat, + ...baseCompat, zaiToolStream: true, }, } as const; @@ -518,7 +525,7 @@ describe("openai-completions tool_choice", () => { }); it("omits tool_stream when no tools are provided", async () => { - const model = getModel("zai", "glm-5.1")!; + const model = getModel("zai", "glm-5.2")!; let payload: unknown; await streamSimple( @@ -560,7 +567,7 @@ describe("openai-completions tool_choice", () => { }, ]; - const model = getModel("zai", "glm-5.1")!; + const model = getModel("zai", "glm-5.2")!; const response = await streamSimple( model, { @@ -1349,7 +1356,7 @@ describe("openai-completions tool_choice", () => { }); it("sends max_tokens for OpenCode completions models", async () => { - const cases = [getModel("opencode-go", "kimi-k2.6")!, getModel("opencode", "grok-build-0.1")!] as const; + const cases = [getModel("opencode-go", "kimi-k2.6")!] as const; for (const model of cases) { let payload: unknown; @@ -1375,28 +1382,6 @@ describe("openai-completions tool_choice", () => { } }); - it("omits reasoning effort for OpenCode Grok Build", async () => { - const model = getModel("opencode", "grok-build-0.1")!; - let payload: unknown; - - await streamSimple( - model, - { - messages: [{ role: "user", content: "Hi", timestamp: Date.now() }], - }, - { - apiKey: "test", - reasoning: "high", - onPayload: (params: unknown) => { - payload = params; - }, - }, - ).result(); - - const params = (payload ?? mockState.lastParams) as { reasoning_effort?: string }; - expect(params.reasoning_effort).toBeUndefined(); - }); - it("does not double-count reasoning tokens in completion usage", async () => { mockState.chunks = [ { diff --git a/packages/ai/test/openai-responses-reasoning-replay-e2e.test.ts b/packages/ai/test/openai-responses-reasoning-replay-e2e.test.ts index 85753c0..e73d74c 100644 --- a/packages/ai/test/openai-responses-reasoning-replay-e2e.test.ts +++ b/packages/ai/test/openai-responses-reasoning-replay-e2e.test.ts @@ -90,7 +90,7 @@ describe.skipIf(!process.env.OPENAI_API_KEY || !process.env.ANTHROPIC_API_KEY)( // 6. With fix: tool calls/results converted to text, conversation continues const modelA = getModel("openai", "gpt-5-mini"); - const modelB = getModel("openai", "gpt-5.2-codex"); + const modelB = getModel("openai", "gpt-5.3-codex"); const apiKey = getEnvApiKey("openai"); if (!apiKey) { @@ -189,7 +189,7 @@ describe.skipIf(!process.env.OPENAI_API_KEY || !process.env.ANTHROPIC_API_KEY)( // 5. Should work because foreign IDs have no pairing expectation const anthropicModel = getModel("anthropic", "claude-sonnet-4-5"); - const codexModel = getModel("openai", "gpt-5.2-codex"); + const codexModel = getModel("openai", "gpt-5.3-codex"); const anthropicApiKey = getEnvApiKey("anthropic"); const openaiApiKey = getEnvApiKey("openai"); diff --git a/packages/ai/test/stream.test.ts b/packages/ai/test/stream.test.ts index 549693d..3bc21d8 100644 --- a/packages/ai/test/stream.test.ts +++ b/packages/ai/test/stream.test.ts @@ -644,7 +644,7 @@ describe("Generate E2E Tests", () => { describe.skipIf(!hasCloudflareAiGatewayCredentials())( "Cloudflare AI Gateway → Workers AI (Kimi K2.6 via /compat)", () => { - const llm = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6"); + const llm = getModel("cloudflare-ai-gateway", "gpt-5.1"); it("should complete basic text generation", { retry: 3 }, async () => { await basicTextGeneration(llm); @@ -704,7 +704,7 @@ describe("Generate E2E Tests", () => { describe.skipIf(!hasCloudflareAiGatewayCredentials() || !process.env.ANTHROPIC_API_KEY)( "Cloudflare AI Gateway → Anthropic BYOK (claude-sonnet-4-5 via /anthropic messages)", () => { - const llm = getModel("cloudflare-ai-gateway", "claude-sonnet-4-5"); + const llm = getModel("cloudflare-ai-gateway", "claude-sonnet-4.5"); const options = { headers: { Authorization: `Bearer ${process.env.ANTHROPIC_API_KEY}` } }; const thinkingOptions = { ...options, @@ -920,7 +920,7 @@ describe("Generate E2E Tests", () => { ); describe.skipIf(!process.env.ZAI_API_KEY)("zAI Provider (glm-5.1 via OpenAI Completions)", () => { - const llm = getModel("zai", "glm-5.1"); + const llm = getModel("zai", "glm-5.2"); it("should complete basic text generation", { retry: 3 }, async () => { await basicTextGeneration(llm); @@ -1020,7 +1020,7 @@ describe("Generate E2E Tests", () => { describe.skipIf(!process.env.KIMI_API_KEY)( "Kimi For Coding Provider (kimi-k2-thinking via Anthropic Messages)", () => { - const llm = getModel("kimi-coding", "k2p7"); + const llm = getModel("kimi-coding", "k3"); it("should complete basic text generation", { retry: 3 }, async () => { await basicTextGeneration(llm); diff --git a/packages/ai/test/tokens.test.ts b/packages/ai/test/tokens.test.ts index 9589215..6695d11 100644 --- a/packages/ai/test/tokens.test.ts +++ b/packages/ai/test/tokens.test.ts @@ -170,7 +170,7 @@ describe("Token Statistics on Abort", () => { }); describe.skipIf(!hasCloudflareAiGatewayCredentials())("Cloudflare AI Gateway Provider", () => { - const llm = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6"); + const llm = getModel("cloudflare-ai-gateway", "gpt-5.1"); it("should include token stats when aborted mid-stream", { retry: 3, timeout: 30000 }, async () => { await testTokensOnAbort(llm); @@ -194,7 +194,7 @@ describe("Token Statistics on Abort", () => { }); describe.skipIf(!process.env.ZAI_API_KEY)("zAI Provider", () => { - const llm = getModel("zai", "glm-4.5-air"); + const llm = getModel("zai", "glm-5.3-flash"); it("should include token stats when aborted mid-stream", { retry: 3, timeout: 30000 }, async () => { await testTokensOnAbort(llm); diff --git a/packages/ai/test/tool-call-id-normalization.test.ts b/packages/ai/test/tool-call-id-normalization.test.ts index 3f06545..3843371 100644 --- a/packages/ai/test/tool-call-id-normalization.test.ts +++ b/packages/ai/test/tool-call-id-normalization.test.ts @@ -45,7 +45,7 @@ describe("Tool Call ID Normalization - Live Handoff", () => { it.skipIf(!copilotToken || !openrouterKey)( "github-copilot -> openrouter should normalize pipe-separated IDs", async () => { - const copilotModel = getModel("github-copilot", "gpt-5.2-codex"); + const copilotModel = getModel("github-copilot", "gpt-5.3-codex"); const openrouterModel = getModel("openrouter", "openai/gpt-5.2-codex"); // Step 1: Generate tool call with github-copilot @@ -115,7 +115,7 @@ describe("Tool Call ID Normalization - Live Handoff", () => { it.skipIf(!copilotToken || !codexToken)( "github-copilot -> openai-codex should normalize pipe-separated IDs", async () => { - const copilotModel = getModel("github-copilot", "gpt-5.2-codex"); + const copilotModel = getModel("github-copilot", "gpt-5.3-codex"); const codexModel = getModel("openai-codex", "gpt-5.5"); // Step 1: Generate tool call with github-copilot diff --git a/packages/ai/test/tool-call-without-result.test.ts b/packages/ai/test/tool-call-without-result.test.ts index a1b1a14..16a3bb6 100644 --- a/packages/ai/test/tool-call-without-result.test.ts +++ b/packages/ai/test/tool-call-without-result.test.ts @@ -175,7 +175,7 @@ describe("Tool Call Without Result Tests", () => { }); describe.skipIf(!hasCloudflareAiGatewayCredentials())("Cloudflare AI Gateway Provider", () => { - const model = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6"); + const model = getModel("cloudflare-ai-gateway", "gpt-5.1"); it("should filter out tool calls without corresponding tool results", { retry: 3, timeout: 30000 }, async () => { await testToolCallWithoutResult(model); @@ -199,7 +199,7 @@ describe("Tool Call Without Result Tests", () => { }); describe.skipIf(!process.env.ZAI_API_KEY)("zAI Provider", () => { - const model = getModel("zai", "glm-4.5-air"); + const model = getModel("zai", "glm-5.3-flash"); it("should filter out tool calls without corresponding tool results", { retry: 3, timeout: 30000 }, async () => { await testToolCallWithoutResult(model); @@ -255,7 +255,7 @@ describe("Tool Call Without Result Tests", () => { }); describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding Provider", () => { - const model = getModel("kimi-coding", "k2p7"); + const model = getModel("kimi-coding", "k3"); it("should filter out tool calls without corresponding tool results", { retry: 3, timeout: 30000 }, async () => { await testToolCallWithoutResult(model); diff --git a/packages/ai/test/total-tokens.test.ts b/packages/ai/test/total-tokens.test.ts index 2db9088..48533a6 100644 --- a/packages/ai/test/total-tokens.test.ts +++ b/packages/ai/test/total-tokens.test.ts @@ -225,7 +225,7 @@ describe("totalTokens field", () => { "gemini-2.0-flash - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => { - const llm = getModel("google", "gemini-2.0-flash"); + const llm = getModel("google", "gemini-2.5-flash"); console.log(`\nGoogle / ${llm.id}:`); const { first, second } = await testTotalTokensWithCache(llm); @@ -342,7 +342,7 @@ describe("totalTokens field", () => { "workers-ai/@cf/moonshotai/kimi-k2.6 - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => { - const llm = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6"); + const llm = getModel("cloudflare-ai-gateway", "gpt-5.1"); console.log(`\nCloudflare AI Gateway / ${llm.id}:`); const { first, second } = await testTotalTokensWithCache(llm, { @@ -408,7 +408,7 @@ describe("totalTokens field", () => { "glm-4.5-air - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => { - const llm = getModel("zai", "glm-4.5-air"); + const llm = getModel("zai", "glm-5.3-flash"); console.log(`\nz.ai / ${llm.id}:`); const { first, second } = await testTotalTokensWithCache(llm, { apiKey: process.env.ZAI_API_KEY }); @@ -575,7 +575,7 @@ describe("totalTokens field", () => { "kimi-k2-thinking - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => { - const llm = getModel("kimi-coding", "k2p7"); + const llm = getModel("kimi-coding", "k3"); console.log(`\nKimi For Coding / ${llm.id}:`); const { first, second } = await testTotalTokensWithCache(llm, { apiKey: process.env.KIMI_API_KEY }); diff --git a/packages/ai/test/unicode-surrogate.test.ts b/packages/ai/test/unicode-surrogate.test.ts index 70723df..37136dc 100644 --- a/packages/ai/test/unicode-surrogate.test.ts +++ b/packages/ai/test/unicode-surrogate.test.ts @@ -514,7 +514,7 @@ describe("AI Providers Unicode Surrogate Pair Tests", () => { }); describe.skipIf(!hasCloudflareAiGatewayCredentials())("Cloudflare AI Gateway Provider Unicode Handling", () => { - const llm = getModel("cloudflare-ai-gateway", "workers-ai/@cf/moonshotai/kimi-k2.6"); + const llm = getModel("cloudflare-ai-gateway", "gpt-5.1"); it("should handle emoji in tool results", { retry: 3, timeout: 30000 }, async () => { await testEmojiInToolResults(llm); @@ -563,7 +563,7 @@ describe("AI Providers Unicode Surrogate Pair Tests", () => { }); describe.skipIf(!process.env.ZAI_API_KEY)("zAI Provider Unicode Handling", () => { - const llm = getModel("zai", "glm-4.5-air"); + const llm = getModel("zai", "glm-5.3-flash"); it("should handle emoji in tool results", { retry: 3, timeout: 30000 }, async () => { await testEmojiInToolResults(llm); @@ -696,7 +696,7 @@ describe("AI Providers Unicode Surrogate Pair Tests", () => { ); describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding Provider Unicode Handling", () => { - const llm = getModel("kimi-coding", "k2p7"); + const llm = getModel("kimi-coding", "k3"); it("should handle emoji in tool results", { retry: 3, timeout: 30000 }, async () => { await testEmojiInToolResults(llm); diff --git a/packages/ai/test/xhigh.test.ts b/packages/ai/test/xhigh.test.ts index f1722b9..25270dc 100644 --- a/packages/ai/test/xhigh.test.ts +++ b/packages/ai/test/xhigh.test.ts @@ -15,10 +15,10 @@ function makeContext(): Context { } describe.skipIf(!process.env.OPENAI_API_KEY)("xhigh reasoning", () => { - describe("codex-max (supports xhigh)", () => { + describe("codex (supports xhigh)", () => { // Note: codex models only support the responses API, not chat completions it("should work with openai-responses", async () => { - const model = getModel("openai", "gpt-5.1-codex-max"); + const model = getModel("openai", "gpt-5.3-codex"); const s = stream(model, makeContext(), { reasoningEffort: "xhigh" }); let hasThinking = false; diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 3697ab2..3541465 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,21 @@ ## [Unreleased] +## [1.1.0] - 2026-09-16 + +### Changed + +- Route heuristics no longer treat Kotlin/Gradle as Google-ecosystem signals; Android routing now relies on strong markers such as `AndroidManifest.xml` and `google-services.json`, so Kotlin backend and desktop work routes to the Anthropic family. +- Narrowed Anthropic heuristic keywords to distinctive terms (`refactor`, `debug`, `architecture`, `migration`) and capped default-provider heuristic results at low confidence so they never preempt sticky routing or the classifier. +- Route now degrades to the configured families when one is missing (minimum two) instead of disabling entirely; `/route` enables degraded mode with a warning listing the missing families. +- Sticky routing choices are revalidated: two consecutive low-confidence dissents or ten unvalidated sticky turns trigger re-classification. +- Project routing signals are collected asynchronously once per session, include first-level subdirectory markers for monorepos, and are filtered to signal-relevant files instead of the first 30 directory entries. + +### Added + +- Manual switches to a different model family right after an auto-routed turn are recorded as `openabcode-routing-feedback` session entries, and Route resumes from the user's chosen family when re-enabled. +- `AgentSession.getRouteStatus()` reports route mode, available and missing families, and why routing is inactive. + ## [1.0.9] - 2026-07-19 ### Changed diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index 53c2a03..b95a6a5 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -135,16 +135,18 @@ Configure Route in the TUI: 1. Run `/login` and configure the providers you want to use. 2. Run `/route-model` and select the authenticated model that classifies tasks. This does not change the active execution model. -3. Run `/model` and select one OpenAI-family model, one Google-family model, and one Anthropic-family model. Each selection is saved to its Route family. +3. Run `/model` and pick one specific model per family — e.g. `gpt-5.5` for OpenAI, `gemini-3.5-flash` for Google, `claude-opus-4.8` for Anthropic. Each selection is saved to its Route family, and Route always executes tasks with the exact model picked for the chosen family. 4. Run `/route` and select `on`. -When Route is on, the footer shows the three configured execution models: +At least two configured families are required. With one family missing, Route enables in degraded mode and routes between the available families only. + +When Route is on, the footer shows the configured execution models: ```text Route · gpt-5.5 · gemini-3.5-flash · claude-opus-4.8 ``` -These are the available Route choices, not the latest classification result. Every completed classification is persisted in the session JSONL as an `openabcode-routing` entry with the classifier model, selected family, execution model, previous model, and timestamp. +These are the available Route choices, not the latest classification result. Every completed classification is persisted in the session JSONL as an `openabcode-routing` entry with the routing method (heuristic, sticky, or classifier), matched signals, selected family, execution model, previous model, and timestamp. Manually switching to a different family right after an auto-routed turn is recorded as an `openabcode-routing-feedback` entry, and Route resumes from that family when re-enabled. Route can use direct providers, OpenRouter, or the OpenABCode gateway. For example, `openabcode/gemini-3.1-flash-lite` is registered locally under the `openabcode` provider and routed by the gateway to Google's upstream provider. diff --git a/packages/coding-agent/docs/usage.md b/packages/coding-agent/docs/usage.md index 2f3b426..aefb43f 100644 --- a/packages/coding-agent/docs/usage.md +++ b/packages/coding-agent/docs/usage.md @@ -67,35 +67,36 @@ Route requires one classifier model and one authenticated execution model for ea 1. Run `/login` and configure the providers you want to use. 2. Run `/route-model` and select the authenticated model that will classify tasks. This does not change the active or default execution model. -3. Run `/model` and select an OpenAI-family model, a Google-family model, and an Anthropic-family model. Each selection is saved to its corresponding Route family while preserving Route mode. +3. Run `/model` and pick one specific model per family — e.g. `gpt-5.5` for OpenAI, `gemini-3.5-flash` for Google, `claude-opus-4.8` for Anthropic. Each selection is saved to its corresponding Route family while preserving Route mode, and Route always executes tasks with the exact model picked for the chosen family. 4. Run `/route` and select `on`. -`/route` does not accept `on`, `off`, `auto`, or `manual` arguments; it opens the on/off selector. If the classifier or any execution family is missing, unavailable, or unauthenticated, OpenABCode keeps Route off and reports the missing configuration. +`/route` does not accept `on`, `off`, `auto`, or `manual` arguments; it opens the on/off selector. Route requires the classifier plus at least two configured execution families. With one family missing, Route enables in degraded mode and routes between the available families; with fewer than two, OpenABCode keeps Route off and reports the missing configuration. Selecting `off` opens the fixed-model flow. The selected fixed model becomes the active default and automatic routing is disabled. ### Per-Prompt Routing -For each prompt, OpenABCode: +For each prompt, OpenABCode picks a family through a three-stage pipeline: -1. Sends the task text and up to 30 project-root filenames to the configured classifier model. -2. Asks the classifier to return exactly one family: `openai`, `google`, or `anthropic`. -3. Selects the configured model for that family. -4. Switches the active agent model when needed, then runs the prompt through the normal agent and tool loop. +1. **Heuristic** (zero-cost): keywords in the prompt, file extensions, and project marker files (collected once per session from the project root and first-level subdirectories). Multiple agreeing signals give high confidence and decide immediately. +2. **Sticky**: without a high-confidence signal, the previous choice is reused. +3. **Classifier**: the configured classifier model is called on the first routed turn, after two consecutive low-confidence signals against the sticky choice, or after ten unvalidated sticky turns. -The classifier request has a 60-second timeout. A timeout, provider error, aborted response, or invalid classifier output falls back to the OpenAI family. +OpenABCode then selects the configured model for that family and switches the active agent model when needed before running the prompt through the normal agent and tool loop. + +The classifier request has a 60-second timeout. A timeout, provider error, aborted response, or invalid classifier output falls back to the default family (`anthropic` unless overridden via `router.defaultProvider`, or the first available family in degraded mode). The classifier can use a direct provider, OpenRouter, or the OpenABCode gateway. For example, `openabcode/gemini-3.1-flash-lite` is registered locally under the `openabcode` provider and routed by the gateway to the Google upstream provider. ### Footer and Audit Records -When Route is on, the footer shows the three configured execution models: +When Route is on, the footer shows the configured execution models: ```text Route · gpt-5.5 · gemini-3.5-flash · claude-haiku-4.8 ``` -These are the available Route choices, not the result of the latest classification. Every completed classification is persisted in the session JSONL as an `openabcode-routing` custom entry, including the classifier model, selected family, execution model, previous model, and timestamp. +These are the available Route choices, not the result of the latest classification. Every completed classification is persisted in the session JSONL as an `openabcode-routing` custom entry, including the routing method (`heuristic`, `sticky`, or `classifier`), matched signals, classifier model (when used), selected family, execution model, previous model, and timestamp. Manually switching to a different family right after an auto-routed turn is recorded as an `openabcode-routing-feedback` entry, and Route resumes from that family when re-enabled. To inspect recent routing decisions: @@ -111,6 +112,7 @@ Example decision: ```json { "provider": "google", + "method": "classifier", "classifierModel": { "provider": "openabcode", "id": "gemini-3.1-flash-lite" diff --git a/packages/coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json b/packages/coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json index fcf5e87..c42cc37 100644 --- a/packages/coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +++ b/packages/coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json @@ -1,12 +1,12 @@ { "name": "pi-extension-custom-provider", - "version": "1.0.9", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-custom-provider", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "@anthropic-ai/sdk": "^0.52.0" } diff --git a/packages/coding-agent/examples/extensions/custom-provider-anthropic/package.json b/packages/coding-agent/examples/extensions/custom-provider-anthropic/package.json index 571870c..e035565 100644 --- a/packages/coding-agent/examples/extensions/custom-provider-anthropic/package.json +++ b/packages/coding-agent/examples/extensions/custom-provider-anthropic/package.json @@ -1,7 +1,7 @@ { "name": "openabcode-extension-custom-provider-anthropic", "private": true, - "version": "1.0.9", + "version": "1.1.0", "type": "module", "scripts": { "clean": "echo 'nothing to clean'", diff --git a/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json b/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json index 6bb1f85..e8179d6 100644 --- a/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +++ b/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json @@ -1,7 +1,7 @@ { "name": "openabcode-extension-custom-provider-gitlab-duo", "private": true, - "version": "1.0.9", + "version": "1.1.0", "type": "module", "scripts": { "clean": "echo 'nothing to clean'", diff --git a/packages/coding-agent/examples/extensions/gondolin/package-lock.json b/packages/coding-agent/examples/extensions/gondolin/package-lock.json index 0da41b9..d47e327 100644 --- a/packages/coding-agent/examples/extensions/gondolin/package-lock.json +++ b/packages/coding-agent/examples/extensions/gondolin/package-lock.json @@ -1,12 +1,12 @@ { "name": "pi-extension-gondolin", - "version": "1.0.9", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-gondolin", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "@earendil-works/gondolin": "0.12.0" } diff --git a/packages/coding-agent/examples/extensions/gondolin/package.json b/packages/coding-agent/examples/extensions/gondolin/package.json index cdf6cb9..4e01025 100644 --- a/packages/coding-agent/examples/extensions/gondolin/package.json +++ b/packages/coding-agent/examples/extensions/gondolin/package.json @@ -1,7 +1,7 @@ { "name": "openabcode-extension-gondolin", "private": true, - "version": "1.0.9", + "version": "1.1.0", "type": "module", "scripts": { "clean": "echo 'nothing to clean'", diff --git a/packages/coding-agent/examples/extensions/sandbox/package-lock.json b/packages/coding-agent/examples/extensions/sandbox/package-lock.json index 55bfda8..d67e922 100644 --- a/packages/coding-agent/examples/extensions/sandbox/package-lock.json +++ b/packages/coding-agent/examples/extensions/sandbox/package-lock.json @@ -1,12 +1,12 @@ { "name": "pi-extension-sandbox", - "version": "1.0.9", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-sandbox", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "@anthropic-ai/sandbox-runtime": "^0.0.26" } diff --git a/packages/coding-agent/examples/extensions/sandbox/package.json b/packages/coding-agent/examples/extensions/sandbox/package.json index 2349966..6d19639 100644 --- a/packages/coding-agent/examples/extensions/sandbox/package.json +++ b/packages/coding-agent/examples/extensions/sandbox/package.json @@ -1,7 +1,7 @@ { "name": "openabcode-extension-sandbox", "private": true, - "version": "1.0.9", + "version": "1.1.0", "type": "module", "scripts": { "clean": "echo 'nothing to clean'", diff --git a/packages/coding-agent/examples/extensions/with-deps/package-lock.json b/packages/coding-agent/examples/extensions/with-deps/package-lock.json index ff87471..4b2a877 100644 --- a/packages/coding-agent/examples/extensions/with-deps/package-lock.json +++ b/packages/coding-agent/examples/extensions/with-deps/package-lock.json @@ -1,12 +1,12 @@ { "name": "pi-extension-with-deps", - "version": "1.0.9", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-with-deps", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { "ms": "^2.1.3" }, diff --git a/packages/coding-agent/examples/extensions/with-deps/package.json b/packages/coding-agent/examples/extensions/with-deps/package.json index 8f14648..83837d9 100644 --- a/packages/coding-agent/examples/extensions/with-deps/package.json +++ b/packages/coding-agent/examples/extensions/with-deps/package.json @@ -1,7 +1,7 @@ { "name": "openabcode-extension-with-deps", "private": true, - "version": "1.0.9", + "version": "1.1.0", "type": "module", "scripts": { "clean": "echo 'nothing to clean'", diff --git a/packages/coding-agent/install-lock/package-lock.json b/packages/coding-agent/install-lock/package-lock.json index 28ccaa0..a9d04d5 100644 --- a/packages/coding-agent/install-lock/package-lock.json +++ b/packages/coding-agent/install-lock/package-lock.json @@ -1,14 +1,14 @@ { "name": "@openabcode/coding-agent-install", - "version": "1.0.9", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@openabcode/coding-agent-install", - "version": "1.0.9", + "version": "1.1.0", "dependencies": { - "@openabcode/coding-agent": "1.0.9" + "@openabcode/coding-agent": "1.1.0" }, "engines": { "node": ">=22.19.0" @@ -700,11 +700,11 @@ ] }, "node_modules/@openabcode/agent-core": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { - "@openabcode/ai": "^1.0.9", + "@openabcode/ai": "^1.1.0", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" @@ -714,8 +714,8 @@ } }, "node_modules/@openabcode/ai": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/sdk": "0.91.1", @@ -738,13 +738,13 @@ } }, "node_modules/@openabcode/coding-agent": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/coding-agent/-/coding-agent-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/coding-agent/-/coding-agent-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { - "@openabcode/agent-core": "^1.0.9", - "@openabcode/ai": "^1.0.9", - "@openabcode/tui": "^1.0.9", + "@openabcode/agent-core": "^1.1.0", + "@openabcode/ai": "^1.1.0", + "@openabcode/tui": "^1.1.0", "@silvia-odwyer/photon-node": "0.3.4", "chalk": "5.6.2", "cross-spawn": "7.0.6", @@ -772,8 +772,8 @@ } }, "node_modules/@openabcode/tui": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { "get-east-asian-width": "1.6.0", diff --git a/packages/coding-agent/install-lock/package.json b/packages/coding-agent/install-lock/package.json index 558c1ad..3112b52 100644 --- a/packages/coding-agent/install-lock/package.json +++ b/packages/coding-agent/install-lock/package.json @@ -1,10 +1,10 @@ { "name": "@openabcode/coding-agent-install", - "version": "1.0.9", + "version": "1.1.0", "private": true, "description": "Lockfile root used by the Pi installer and updater.", "dependencies": { - "@openabcode/coding-agent": "1.0.9" + "@openabcode/coding-agent": "1.1.0" }, "overrides": { "rimraf": "6.1.2", diff --git a/packages/coding-agent/npm-shrinkwrap.json b/packages/coding-agent/npm-shrinkwrap.json index 842b8ad..71e7c84 100644 --- a/packages/coding-agent/npm-shrinkwrap.json +++ b/packages/coding-agent/npm-shrinkwrap.json @@ -1,17 +1,17 @@ { "name": "@openabcode/coding-agent", - "version": "1.0.9", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@openabcode/coding-agent", - "version": "1.0.9", + "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { - "@openabcode/agent-core": "^1.0.9", - "@openabcode/ai": "^1.0.9", - "@openabcode/tui": "^1.0.9", + "@openabcode/agent-core": "^1.1.0", + "@openabcode/ai": "^1.1.0", + "@openabcode/tui": "^1.1.0", "@silvia-odwyer/photon-node": "0.3.4", "chalk": "5.6.2", "cross-spawn": "7.0.6", @@ -724,11 +724,11 @@ ] }, "node_modules/@openabcode/agent-core": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { - "@openabcode/ai": "^1.0.9", + "@openabcode/ai": "^1.1.0", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" @@ -738,8 +738,8 @@ } }, "node_modules/@openabcode/ai": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/sdk": "0.91.1", @@ -762,8 +762,8 @@ } }, "node_modules/@openabcode/tui": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.0.9.tgz", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.1.0.tgz", "license": "AGPL-3.0", "dependencies": { "get-east-asian-width": "1.6.0", diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.json index c837e66..0f675cf 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/coding-agent", - "version": "1.0.9", + "version": "1.1.0", "description": "Coding agent CLI with read, bash, edit, write tools and session management", "type": "module", "piConfig": { @@ -41,9 +41,9 @@ "prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap" }, "dependencies": { - "@openabcode/agent-core": "^1.0.9", - "@openabcode/ai": "^1.0.9", - "@openabcode/tui": "^1.0.9", + "@openabcode/agent-core": "^1.1.0", + "@openabcode/ai": "^1.1.0", + "@openabcode/tui": "^1.1.0", "@silvia-odwyer/photon-node": "0.3.4", "chalk": "5.6.2", "cross-spawn": "7.0.6", diff --git a/packages/coding-agent/src/core/agent-session.ts b/packages/coding-agent/src/core/agent-session.ts index 8a7322f..a7d2eca 100644 --- a/packages/coding-agent/src/core/agent-session.ts +++ b/packages/coding-agent/src/core/agent-session.ts @@ -14,8 +14,9 @@ */ import { randomUUID } from "node:crypto"; -import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs"; -import { basename, dirname } from "node:path"; +import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; +import { readdir } from "node:fs/promises"; +import { basename, dirname, join } from "node:path"; import type { Agent, AgentEvent, @@ -94,13 +95,16 @@ import type { ResourceExtensionPaths, ResourceLoader } from "./resource-loader.t import { classifyProvider, classifyProviderHeuristic, + filterProjectSignalFiles, type ProviderChoice, pickRouteModel, ROUTE_PROVIDER_CHOICES, ROUTING_ENTRY_TYPE, + ROUTING_FEEDBACK_ENTRY_TYPE, type RouterConfig, type RoutingDecision, type RoutingMethod, + routeProviderOf, } from "./router.ts"; import type { BranchSummaryEntry, CompactionEntry, SessionEntry, SessionManager } from "./session-manager.ts"; import { CURRENT_SESSION_VERSION, getLatestCompactionEntry, type SessionHeader } from "./session-manager.ts"; @@ -280,6 +284,23 @@ function estimateMessagesTokens(messages: AgentMessage[]): number { /** Standard thinking levels */ const THINKING_LEVELS: ThinkingLevel[] = ["off", "minimal", "low", "medium", "high"]; +/** Consecutive low-confidence dissents that trigger a routing re-classification. */ +const ROUTE_DISSENT_RECLASSIFY_AFTER = 2; +/** Sticky turns after which the routing choice is revalidated by the classifier. */ +const ROUTE_STICKY_REVALIDATE_AFTER = 10; + +/** Diagnostic snapshot of the task router, for UI display and troubleshooting. */ +export interface RouteStatus { + mode: "auto" | "manual"; + /** Families with a configured, authenticated execution model. */ + availableChoices: ProviderChoice[]; + /** Families missing configuration or auth. */ + missingChoices: ProviderChoice[]; + /** Whether auto-routing will actually run for the next prompt. */ + active: boolean; + inactiveReason?: "manual" | "no-classifier" | "not-enough-families"; +} + // ============================================================================ // AgentSession Class // ============================================================================ @@ -352,6 +373,17 @@ export class AgentSession { // Sticky routing: last provider choice, reused until a conflicting // high-confidence heuristic signal or a manual model switch invalidates it. private _lastRouteChoice?: ProviderChoice; + /** Turns served by sticky reuse since the last classification. */ + private _stickyStreak = 0; + /** Consecutive low-confidence heuristic dissents against the sticky choice. */ + private _dissentStreak = 0; + private _dissentChoice?: ProviderChoice; + /** Most recent auto-routing decision, kept for veto detection on manual switches. */ + private _lastRoutingDecision?: { id: string; provider: ProviderChoice }; + /** Family the user chose when vetoing an auto-routing decision. */ + private _routeVetoChoice?: ProviderChoice; + /** Signal-relevant project files, collected once per cwd for the session. */ + private _routeProjectFiles?: { cwd: string; files: string[] }; // Tool registry for extension getTools/setTools private _toolRegistry: Map = new Map(); @@ -1573,17 +1605,53 @@ export class AgentSession { } setRouteMode(mode: "auto" | "manual"): void { + if (mode === "auto" && this._routeMode !== "auto" && this._routeVetoChoice) { + // Resume from the family the user last chose, not a fresh classification. + this._lastRouteChoice = this._routeVetoChoice; + } this._routeMode = mode; } + /** Why (and whether) auto-routing will run for the next prompt. */ + getRouteStatus(): RouteStatus { + const available = this._modelRegistry.getAvailable(); + const hasAuth = (model: Model) => this._modelRegistry.hasConfiguredAuth(model); + const configured = this.settingsManager.getRouterModels(); + const availableChoices = ROUTE_PROVIDER_CHOICES.filter((choice) => + pickRouteModel(choice, available, hasAuth, configured), + ); + const missingChoices = ROUTE_PROVIDER_CHOICES.filter((choice) => !availableChoices.includes(choice)); + const classifierRef = this.settingsManager.getRouterClassifierModel(); + const [classifierProvider, ...classifierIdParts] = classifierRef?.split("/") ?? []; + const classifierId = classifierIdParts.join("/"); + const classifierModel = classifierProvider + ? available.find( + (model) => model.provider === classifierProvider && model.id === classifierId && hasAuth(model), + ) + : undefined; + + let inactiveReason: RouteStatus["inactiveReason"]; + if (this._routeMode !== "auto") inactiveReason = "manual"; + else if (!classifierModel) inactiveReason = "no-classifier"; + else if (availableChoices.length < 2) inactiveReason = "not-enough-families"; + + return { + mode: this._routeMode, + availableChoices, + missingChoices, + active: inactiveReason === undefined, + inactiveReason, + }; + } + /** * OpenABCode task router: pick the best provider for the prompt before the * provider turn via a three-stage pipeline: * 1. zero-cost heuristic (keywords, file extensions, project markers) * 2. sticky reuse of the previous choice - * 3. LLM classifier fallback (first routed turn only) - * No-op when routing is manual, no authenticated classifier model is - * configured, or no eligible model is available. + * 3. LLM classifier (first routed turn, accumulated dissents, or stale sticky) + * Routing degrades to the configured families and is skipped when fewer than + * two are available or no authenticated classifier model is configured. * The switch is per-turn: it does not persist a new default model. */ private async _maybeRouteModel(text: string): Promise { @@ -1603,15 +1671,12 @@ export class AgentSession { ); if (!classifierModel) return; - // Skip routing entirely when any execution family is unavailable. - if (ROUTE_PROVIDER_CHOICES.some((choice) => !pickRouteModel(choice, available, hasAuth, configured))) return; - - let projectFiles: string[] = []; - try { - projectFiles = readdirSync(this._cwd).slice(0, 30); - } catch { - // Routing signals are best-effort; classify without project files. - } + // Degrade to the families that have a configured, authenticated model; + // routing between fewer than two families is pointless. + const availableChoices = ROUTE_PROVIDER_CHOICES.filter((choice) => + pickRouteModel(choice, available, hasAuth, configured), + ); + if (availableChoices.length < 2) return; const decisionID = `rtd_${randomUUID()}`; const routerConfig: RouterConfig = { @@ -1621,7 +1686,12 @@ export class AgentSession { projectMarkers: this.settingsManager.getRouterHeuristicProjectMarkers() as RouterConfig["projectMarkers"], defaultProvider: this.settingsManager.getRouterDefaultProvider() as ProviderChoice | undefined, }; - const heuristic = classifyProviderHeuristic({ text, projectFiles }, routerConfig); + const projectFiles = await this._collectRouteProjectFiles(routerConfig); + const heuristic = classifyProviderHeuristic({ text, projectFiles }, routerConfig, availableChoices); + + // A sticky choice whose family became unavailable must be re-classified. + const stickyChoice = + this._lastRouteChoice && availableChoices.includes(this._lastRouteChoice) ? this._lastRouteChoice : undefined; let choice: ProviderChoice; let method: RoutingMethod; @@ -1631,29 +1701,48 @@ export class AgentSession { choice = heuristic.choice; method = "heuristic"; matchedSignals = heuristic.matched; - } else if (this._lastRouteChoice) { - // Sticky: reuse the previous choice. Only a conflicting high-confidence - // heuristic (handled above) or a manual model switch re-routes. - choice = this._lastRouteChoice; - method = "sticky"; + this._resetRouteStreaks(); } else { - const auth = await this._modelRegistry.getApiKeyAndHeaders(classifierModel); - if (!auth.ok) return; - choice = await classifyProvider( - classifierModel, - { text, projectFiles, recentContext: this._recentRouteContext() }, - { - apiKey: auth.apiKey, - headers: - classifierModel.provider === OPENABCODE_PROVIDER - ? { ...auth.headers, [OPENABCODE_ROUTING_DECISION_HEADER]: decisionID } - : auth.headers, - env: auth.env, - }, - routerConfig, - ); - method = "classifier"; - usedClassifier = true; + // Track consecutive low-confidence dissents against the sticky choice. + const dissent = heuristic && stickyChoice && heuristic.choice !== stickyChoice ? heuristic.choice : undefined; + if (dissent && dissent === this._dissentChoice) { + this._dissentStreak++; + } else { + this._dissentChoice = dissent; + this._dissentStreak = dissent ? 1 : 0; + } + + // Reclassify when sticky is missing/stale, dissents accumulate, or the + // choice has gone unvalidated for too many turns. + const reclassify = + !stickyChoice || + this._dissentStreak >= ROUTE_DISSENT_RECLASSIFY_AFTER || + this._stickyStreak >= ROUTE_STICKY_REVALIDATE_AFTER; + if (!reclassify) { + choice = stickyChoice; + method = "sticky"; + this._stickyStreak++; + } else { + const auth = await this._modelRegistry.getApiKeyAndHeaders(classifierModel); + if (!auth.ok) return; + choice = await classifyProvider( + classifierModel, + { text, projectFiles, recentContext: this._recentRouteContext() }, + { + apiKey: auth.apiKey, + headers: + classifierModel.provider === OPENABCODE_PROVIDER + ? { ...auth.headers, [OPENABCODE_ROUTING_DECISION_HEADER]: decisionID } + : auth.headers, + env: auth.env, + }, + routerConfig, + availableChoices, + ); + method = "classifier"; + usedClassifier = true; + this._resetRouteStreaks(); + } } this._lastRouteChoice = choice; @@ -1673,6 +1762,7 @@ export class AgentSession { timestamp: Date.now(), }; this.sessionManager.appendCustomEntry(ROUTING_ENTRY_TYPE, decision); + this._lastRoutingDecision = { id: decision.id, provider: choice }; if (picked.model.provider === OPENABCODE_PROVIDER) { this.agent.requestHeaders = { [OPENABCODE_ROUTING_DECISION_HEADER]: decision.id }; } @@ -1686,6 +1776,54 @@ export class AgentSession { await this._emitModelSelect(picked.model, previousModel, "route"); } + private _resetRouteStreaks(): void { + this._stickyStreak = 0; + this._dissentStreak = 0; + this._dissentChoice = undefined; + } + + /** Signal-relevant project files (root + one level of subdirectories), cached per cwd. */ + private async _collectRouteProjectFiles(routerConfig: RouterConfig): Promise { + if (this._routeProjectFiles?.cwd === this._cwd) return this._routeProjectFiles.files; + let files: string[] = []; + try { + const entries = await readdir(this._cwd, { withFileTypes: true }); + // Monorepos keep their markers one level down (apps/mobile/pubspec.yaml). + const subdirs = entries.filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).slice(0, 10); + const nested = await Promise.all( + subdirs.map(async (dir) => { + try { + const children = await readdir(join(this._cwd, dir.name)); + return children.map((child) => `${dir.name}/${child}`); + } catch { + return []; + } + }), + ); + files = filterProjectSignalFiles([...entries.map((entry) => entry.name), ...nested.flat()], routerConfig); + } catch { + // Routing signals are best-effort; classify without project files. + } + this._routeProjectFiles = { cwd: this._cwd, files }; + return files; + } + + /** Record a manual override of the previous auto-routing decision as veto feedback. */ + private _recordRouteVeto(model: Model): void { + const vetoed = this._lastRoutingDecision; + this._lastRoutingDecision = undefined; + if (!vetoed) return; + const chosen = routeProviderOf(model); + if (!chosen || chosen === vetoed.provider) return; + this._routeVetoChoice = chosen; + this.sessionManager.appendCustomEntry(ROUTING_FEEDBACK_ENTRY_TYPE, { + vetoedDecisionId: vetoed.id, + vetoedProvider: vetoed.provider, + chosenProvider: chosen, + timestamp: Date.now(), + }); + } + /** Recent user prompts (truncated) used as extra classifier context. */ private _recentRouteContext(): string[] { const snippets: string[] = []; @@ -1711,8 +1849,10 @@ export class AgentSession { if (!options.preserveRouteMode) { // Explicit model choices outside Route configuration are manual overrides. + this._recordRouteVeto(model); this._routeMode = "manual"; this._lastRouteChoice = undefined; + this._resetRouteStreaks(); } const previousModel = this.model; @@ -1732,8 +1872,10 @@ export class AgentSession { throw new Error(`No API key for ${model.provider}/${model.id}`); } + this._recordRouteVeto(model); this._routeMode = "manual"; this._lastRouteChoice = undefined; + this._resetRouteStreaks(); const previousModel = this.model; const thinkingLevel = this._getThinkingLevelForModelSwitch(); this.agent.state.model = model; diff --git a/packages/coding-agent/src/core/router.ts b/packages/coding-agent/src/core/router.ts index 66d7d0f..6ca95bc 100644 --- a/packages/coding-agent/src/core/router.ts +++ b/packages/coding-agent/src/core/router.ts @@ -23,7 +23,7 @@ const ROUTING_RULES: Record = { openai: "Test and automation — choose for algorithms, code review, testing, data analysis, scripting, and CI/CD pipeline work", google: - "Google ecosystem — choose when the task specifically depends on Android, Flutter, Firebase, Google Cloud, Chrome extensions, Gradle, Kotlin, or Google APIs", + "Google ecosystem — choose ONLY when the task specifically depends on Android (AndroidManifest, Jetpack), Flutter, Firebase, Google Cloud, Chrome extensions, or Google APIs. Kotlin/Gradle alone does NOT imply this: Kotlin backend (Ktor, Spring) and desktop work belongs to anthropic", anthropic: "General development — choose for all code writing, editing, debugging, architecture, refactoring, migrations, UI implementation, and any development task that does not specifically fit google or openai", }; @@ -57,6 +57,9 @@ export interface RoutingDecision { /** Session entry customType used to persist routing decisions for audit. */ export const ROUTING_ENTRY_TYPE = "openabcode-routing"; +/** Session entry customType recording a manual override (veto) of a routing decision. */ +export const ROUTING_FEEDBACK_ENTRY_TYPE = "openabcode-routing-feedback"; + // --- Heuristic classifier (zero-cost fast path) --- /** Per-provider keyword lists that extend the built-in heuristic tables. */ @@ -88,12 +91,12 @@ export interface HeuristicRouteResult { } const HEURISTIC_KEYWORDS: Record = { + // "kotlin"/"gradle" are deliberately absent: Kotlin is multi-host (Ktor, + // Spring, Compose Desktop) and does not imply the Google ecosystem. google: [ "android", "flutter", "dart", - "kotlin", - "gradle", "gcp", "google cloud", "firebase", @@ -112,27 +115,14 @@ const HEURISTIC_KEYWORDS: Record = { "pipeline", "multimodal", ], - anthropic: [ - "refactor", - "debug", - "architecture", - "migration", - "implement", - "build", - "create", - "fix", - "feature", - "component", - "module", - ], + // Generic verbs (implement/build/create/fix…) are deliberately absent: they + // match nearly every prompt and anthropic is already the default fallback. + anthropic: ["refactor", "debug", "architecture", "migration"], }; const HEURISTIC_FILE_EXTENSIONS: Record = { - // Google ecosystem - ".kt": "google", - ".kts": "google", + // Google ecosystem (.kt/.kts/.gradle carry no signal: language-neutral) ".dart": "google", - ".gradle": "google", // Anthropic / primary coding (all non-Google languages) ".swift": "anthropic", ".storyboard": "anthropic", @@ -192,13 +182,11 @@ const HEURISTIC_FILE_EXTENSIONS: Record = { }; const HEURISTIC_PROJECT_MARKERS: Record = { - // Google ecosystem + // Google ecosystem (build.gradle*/settings.gradle* carry no signal: + // Ktor/Spring/Compose Desktop projects use them too) "pubspec.yaml": "google", - "build.gradle": "google", - "build.gradle.kts": "google", - "settings.gradle": "google", - "settings.gradle.kts": "google", "androidmanifest.xml": "google", + "google-services.json": "google", "firebase.json": "google", // Anthropic / primary coding (all non-Google project types) "package.swift": "anthropic", @@ -242,25 +230,52 @@ function keywordMatches(keyword: string, text: string): boolean { return text.includes(keyword); } +const MAX_PROJECT_SIGNAL_FILES = 50; + +/** + * Keep only entries that can produce a routing signal (marker names or known + * extensions), so callers can probe/cache a short list instead of a full + * directory listing. Entries may carry a subdirectory prefix (apps/pubspec.yaml). + */ +export function filterProjectSignalFiles(entries: string[], config?: RouterConfig): string[] { + const markers = config?.projectMarkers ?? HEURISTIC_PROJECT_MARKERS; + const extensions = Object.keys(config?.fileExtensions ?? HEURISTIC_FILE_EXTENSIONS); + const kept: string[] = []; + for (const entry of entries) { + if (kept.length >= MAX_PROJECT_SIGNAL_FILES) break; + const lower = entry.toLowerCase(); + const base = lower.split("/").pop() ?? lower; + if (markers[base] || extensions.some((extension) => lower.endsWith(extension))) kept.push(entry); + } + return kept; +} + /** * Zero-cost heuristic provider classification from prompt keywords, file * extensions, and project marker files. Returns undefined when no signal * matches or the top providers tie. * * When a config table is provided it fully replaces the corresponding built-in - * default; when absent the built-in table is used. + * default; when absent the built-in table is used. When `allowed` is provided, + * only those families are scored (degraded routing with missing families). */ -export function classifyProviderHeuristic(input: RouteSignal, config?: RouterConfig): HeuristicRouteResult | undefined { +export function classifyProviderHeuristic( + input: RouteSignal, + config?: RouterConfig, + allowed?: readonly ProviderChoice[], +): HeuristicRouteResult | undefined { + const choices = allowed && allowed.length > 0 ? allowed : ROUTE_PROVIDER_CHOICES; const text = input.text.toLowerCase(); const fileNames = (input.fileNames ?? []).map((name) => name.toLowerCase()); const projectFiles = (input.projectFiles ?? []).map((name) => name.toLowerCase()); const matched: Record> = { openai: new Set(), google: new Set(), anthropic: new Set() }; + const isAllowed = (provider: ProviderChoice) => choices.includes(provider); const effectiveKeywords: Record = config?.keywords ? { openai: [], google: [], anthropic: [], ...config.keywords } : HEURISTIC_KEYWORDS; - for (const provider of ROUTE_PROVIDER_CHOICES) { + for (const provider of choices) { for (const keyword of effectiveKeywords[provider]) { const normalized = keyword.toLowerCase(); if (normalized && keywordMatches(normalized, text)) { @@ -272,7 +287,7 @@ export function classifyProviderHeuristic(input: RouteSignal, config?: RouterCon const effectiveFileExtensions = config?.fileExtensions ?? HEURISTIC_FILE_EXTENSIONS; for (const fileName of fileNames) { for (const [extension, provider] of Object.entries(effectiveFileExtensions)) { - if (fileName.endsWith(extension)) { + if (isAllowed(provider) && fileName.endsWith(extension)) { matched[provider].add(`ext:${extension}`); } } @@ -280,23 +295,27 @@ export function classifyProviderHeuristic(input: RouteSignal, config?: RouterCon const effectiveProjectMarkers = config?.projectMarkers ?? HEURISTIC_PROJECT_MARKERS; for (const projectFile of projectFiles) { - const provider = effectiveProjectMarkers[projectFile]; - if (provider) { + // Match markers on the basename so subdirectory-prefixed entries + // (apps/mobile/pubspec.yaml) from monorepo scans still count. + const baseName = projectFile.split("/").pop() ?? projectFile; + const provider = effectiveProjectMarkers[baseName]; + if (provider && isAllowed(provider)) { matched[provider].add(`project:${projectFile}`); } // Bundle directories like MyApp.xcodeproj appear as project entries too. for (const [extension, extProvider] of Object.entries(effectiveFileExtensions)) { - if (projectFile.endsWith(extension)) { + if (isAllowed(extProvider) && projectFile.endsWith(extension)) { matched[extProvider].add(`project:${extension}`); } } } - const scores = ROUTE_PROVIDER_CHOICES.map((provider) => ({ provider, score: matched[provider].size })).sort( - (a, b) => b.score - a.score, - ); - const [top, runnerUp] = scores; - if (top.score === 0 || top.score === runnerUp.score) return undefined; + const scores = choices + .map((provider) => ({ provider, score: matched[provider].size })) + .sort((a, b) => b.score - a.score); + const top = scores[0]; + const runnerUpScore = scores[1]?.score ?? 0; + if (top.score === 0 || top.score === runnerUpScore) return undefined; // Project and file signals pointing to the default provider merely confirm // the ambient ecosystem, so let the classifier evaluate task complexity. @@ -307,7 +326,9 @@ export function classifyProviderHeuristic(input: RouteSignal, config?: RouterCon return { choice: top.provider, - confidence: top.score >= 2 ? "high" : "low", + // Default-provider results are capped at "low": the default is where + // sticky/classifier fall back anyway, so never let it preempt them. + confidence: top.provider === effectiveDefault ? "low" : top.score >= 2 ? "high" : "low", matched: [...matched[top.provider]].sort(), }; } @@ -320,38 +341,48 @@ function isProviderChoice(value: string): value is ProviderChoice { return ROUTE_PROVIDER_CHOICES.some((provider) => provider === value); } +/** Fallback family: the configured default when available, else the first allowed family. */ +function fallbackChoice(choices: readonly ProviderChoice[], config?: RouterConfig): ProviderChoice { + const defaultProvider = config?.defaultProvider ?? DEFAULT_PROVIDER_CHOICE; + return choices.includes(defaultProvider) ? defaultProvider : choices[0]; +} + function classifierPrompt( text: string, fileNames: string[], projectFiles: string[], recentContext: string[], config?: RouterConfig, + choices: readonly ProviderChoice[] = ROUTE_PROVIDER_CHOICES, ): string { const rules = config?.rules ?? ROUTING_RULES; - const defaultProvider = config?.defaultProvider ?? DEFAULT_PROVIDER_CHOICE; + const defaultProvider = fallbackChoice(choices, config); return `You are a coding task router. Given the project context and user request, choose which AI model provider should handle this task. Routing rules: -${ROUTE_PROVIDER_CHOICES.map((provider) => `- "${provider}": ${rules[provider] ?? "(no rule)"}`).join("\n")} +${choices.map((provider) => `- "${provider}": ${rules[provider] ?? "(no rule)"}`).join("\n")} Default to "${defaultProvider}" if the task does not clearly fit another provider. ${projectFiles.length > 0 ? `Project root files: ${projectFiles.join(", ")}\n` : ""}${fileNames.length > 0 ? `Files involved: ${fileNames.join(", ")}\n` : ""}${recentContext.length > 0 ? `Recent conversation:\n${recentContext.map((snippet) => `- ${snippet}`).join("\n")}\n` : ""}Task: "${text}" -Return ONLY one of: ${ROUTE_PROVIDER_CHOICES.map((provider) => `"${provider}"`).join(", ")}`; +Return ONLY one of: ${choices.map((provider) => `"${provider}"`).join(", ")}`; } /** * Use the configured classifier model to choose the best provider for this task. - * Falls back to "openai" (default) on any failure or timeout. + * Only families in `allowed` are offered; falls back to the default family (or + * the first allowed one) on any failure, timeout, or out-of-set answer. */ export async function classifyProvider( model: Model, input: RouteSignal, options: SimpleStreamOptions, config?: RouterConfig, + allowed?: readonly ProviderChoice[], ): Promise { - const defaultProvider = config?.defaultProvider ?? DEFAULT_PROVIDER_CHOICE; + const choices = allowed && allowed.length > 0 ? allowed : ROUTE_PROVIDER_CHOICES; + const defaultProvider = fallbackChoice(choices, config); const fileNames = (input.fileNames ?? []).filter(Boolean); const projectFiles = input.projectFiles ?? []; const recentContext = (input.recentContext ?? []).filter(Boolean); @@ -369,7 +400,7 @@ export async function classifyProvider( content: [ { type: "text", - text: classifierPrompt(input.text, fileNames, projectFiles, recentContext, config), + text: classifierPrompt(input.text, fileNames, projectFiles, recentContext, config, choices), }, ], timestamp: Date.now(), @@ -387,7 +418,7 @@ export async function classifyProvider( .trim() .toLowerCase() .replace(/"/g, ""); - if (isProviderChoice(raw)) return raw; + if (isProviderChoice(raw) && choices.includes(raw)) return raw; return defaultProvider; } catch { return defaultProvider; diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 7407e05..0c461b3 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -5832,6 +5832,18 @@ export class InteractiveMode { return; } + // Two configured families are enough: routing degrades to the available set. + if (slots.length - missing.length >= 2) { + this.session.setRouteMode("auto"); + this.settingsManager.setRouterEnabledAndSetupCompleted(true); + this.footer.invalidate(); + this.showWarning( + `Route is degraded, missing: ${missing.map((slot) => ROUTE_MODEL_LABELS[slot]).join(", ")}. Configure via /model.`, + ); + this.showStatus("Route on (degraded)"); + return; + } + this.session.setRouteMode("manual"); this.settingsManager.setRouterEnabledAndSetupCompleted(false); this.footer.invalidate(); diff --git a/packages/coding-agent/test/model-registry.test.ts b/packages/coding-agent/test/model-registry.test.ts index a082120..2993a49 100644 --- a/packages/coding-agent/test/model-registry.test.ts +++ b/packages/coding-agent/test/model-registry.test.ts @@ -1771,7 +1771,7 @@ describe("ModelRegistry", () => { refresh: "github-access-token", access: "tid=test;exp=9999999999;proxy-ep=proxy.individual.githubcopilot.com;", expires: Date.now() + 60_000, - availableModelIds: ["gpt-4.1"], + availableModelIds: ["gpt-5.4"], }); const registry = ModelRegistry.create(authStorage, modelsJsonPath); @@ -1781,7 +1781,7 @@ describe("ModelRegistry", () => { .getAvailable() .filter((m) => m.provider === "github-copilot") .map((m) => m.id), - ).toEqual(["gpt-4.1"]); + ).toEqual(["gpt-5.4"]); }); test("getApiKeyAndHeaders resolves authHeader on every request", async () => { diff --git a/packages/coding-agent/test/suite/agent-session-model-extension.test.ts b/packages/coding-agent/test/suite/agent-session-model-extension.test.ts index 39ed662..8ba4219 100644 --- a/packages/coding-agent/test/suite/agent-session-model-extension.test.ts +++ b/packages/coding-agent/test/suite/agent-session-model-extension.test.ts @@ -186,18 +186,307 @@ describe("AgentSession model and extension characterization", () => { expect(harness.session.model?.id).toBe("gemini-route"); // Weak signal sticks with the previous choice. - await maybeRoute("debug that screen"); + await maybeRoute("continue polishing that screen"); expect(harness.session.model?.id).toBe("gemini-route"); - // Conflicting high-confidence heuristic re-routes. - await maybeRoute("refactor the SwiftUI architecture of the iOS companion app"); - expect(harness.session.model?.id).toBe("claude-route"); + // A single default-provider dissent is capped at low confidence and sticks. + await maybeRoute("refactor the architecture of that screen"); + expect(harness.session.model?.id).toBe("gemini-route"); + + // Conflicting high-confidence heuristic (non-default provider) re-routes. + await maybeRoute("write unit tests and wire up the ci/cd pipeline"); + expect(harness.session.model?.id).toBe("gpt-route"); + + const methods = harness.sessionManager + .getEntries() + .filter((entry): entry is CustomEntry => entry.type === "custom" && entry.customType === "openabcode-routing") + .map((entry) => (entry.data as { method?: string }).method); + expect(methods).toEqual(["heuristic", "sticky", "sticky", "heuristic"]); + expect(harness.getPendingResponseCount()).toBe(0); + }); + + it("reclassifies after consecutive low-confidence dissents against the sticky choice", async () => { + const harness = await createHarness({ models: [{ id: "classifier", name: "Classifier" }] }); + harnesses.push(harness); + const classifier = harness.getModel("classifier")!; + + for (const [provider, id] of [ + ["openai", "gpt-route"], + ["google", "gemini-route"], + ["anthropic", "claude-route"], + ] as const) { + harness.authStorage.setRuntimeApiKey(provider, `${provider}-key`); + harness.session.modelRegistry.registerProvider(provider, { + baseUrl: classifier.baseUrl, + apiKey: `${provider}-key`, + api: classifier.api, + models: [ + { + id, + name: id, + reasoning: false, + input: ["text"], + cost: classifier.cost, + contextWindow: classifier.contextWindow, + maxTokens: classifier.maxTokens, + }, + ], + }); + harness.settingsManager.setRouterModel(provider, `${provider}/${id}`); + } + harness.settingsManager.setRouterClassifierModel(classifier.provider, classifier.id); + harness.session.setRouteMode("auto"); + + const maybeRoute = ( + harness.session as unknown as { _maybeRouteModel(text: string): Promise } + )._maybeRouteModel.bind(harness.session); + + await maybeRoute("add a Flutter screen to the Android app"); + expect(harness.session.model?.id).toBe("gemini-route"); + + // First low-confidence openai dissent sticks. + await maybeRoute("tweak the algorithm"); + expect(harness.session.model?.id).toBe("gemini-route"); + + // Second consecutive dissent triggers re-classification. + harness.setResponses([fauxAssistantMessage("openai")]); + await maybeRoute("optimize the algorithm further"); + expect(harness.session.model?.id).toBe("gpt-route"); + + const methods = harness.sessionManager + .getEntries() + .filter((entry): entry is CustomEntry => entry.type === "custom" && entry.customType === "openabcode-routing") + .map((entry) => (entry.data as { method?: string }).method); + expect(methods).toEqual(["heuristic", "sticky", "classifier"]); + expect(harness.getPendingResponseCount()).toBe(0); + }); + + it("revalidates a long-lived sticky choice with the classifier", async () => { + const harness = await createHarness({ models: [{ id: "classifier", name: "Classifier" }] }); + harnesses.push(harness); + const classifier = harness.getModel("classifier")!; + + for (const [provider, id] of [ + ["openai", "gpt-route"], + ["google", "gemini-route"], + ["anthropic", "claude-route"], + ] as const) { + harness.authStorage.setRuntimeApiKey(provider, `${provider}-key`); + harness.session.modelRegistry.registerProvider(provider, { + baseUrl: classifier.baseUrl, + apiKey: `${provider}-key`, + api: classifier.api, + models: [ + { + id, + name: id, + reasoning: false, + input: ["text"], + cost: classifier.cost, + contextWindow: classifier.contextWindow, + maxTokens: classifier.maxTokens, + }, + ], + }); + harness.settingsManager.setRouterModel(provider, `${provider}/${id}`); + } + harness.settingsManager.setRouterClassifierModel(classifier.provider, classifier.id); + harness.session.setRouteMode("auto"); + + const maybeRoute = ( + harness.session as unknown as { _maybeRouteModel(text: string): Promise } + )._maybeRouteModel.bind(harness.session); + + await maybeRoute("add a Flutter screen to the Android app"); + // Ten signal-free turns ride the sticky choice. + for (let turn = 0; turn < 10; turn++) { + await maybeRoute("continue with the next step"); + } + expect(harness.session.model?.id).toBe("gemini-route"); + + // The eleventh signal-free turn revalidates via the classifier. + harness.setResponses([fauxAssistantMessage("google")]); + await maybeRoute("continue with the next step"); + expect(harness.session.model?.id).toBe("gemini-route"); + + const methods = harness.sessionManager + .getEntries() + .filter((entry): entry is CustomEntry => entry.type === "custom" && entry.customType === "openabcode-routing") + .map((entry) => (entry.data as { method?: string }).method); + expect(methods).toEqual(["heuristic", ...Array(10).fill("sticky"), "classifier"]); + // Revalidation confirming the same choice must not emit a model change. + expect(harness.sessionManager.getEntries().filter((entry) => entry.type === "model_change")).toHaveLength(1); + expect(harness.getPendingResponseCount()).toBe(0); + }); + + it("records a manual override as veto feedback and resumes from the user's family", async () => { + const harness = await createHarness({ models: [{ id: "classifier", name: "Classifier" }] }); + harnesses.push(harness); + const classifier = harness.getModel("classifier")!; + + for (const [provider, id] of [ + ["openai", "gpt-route"], + ["google", "gemini-route"], + ["anthropic", "claude-route"], + ] as const) { + harness.authStorage.setRuntimeApiKey(provider, `${provider}-key`); + harness.session.modelRegistry.registerProvider(provider, { + baseUrl: classifier.baseUrl, + apiKey: `${provider}-key`, + api: classifier.api, + models: [ + { + id, + name: id, + reasoning: false, + input: ["text"], + cost: classifier.cost, + contextWindow: classifier.contextWindow, + maxTokens: classifier.maxTokens, + }, + ], + }); + harness.settingsManager.setRouterModel(provider, `${provider}/${id}`); + } + harness.settingsManager.setRouterClassifierModel(classifier.provider, classifier.id); + harness.session.setRouteMode("auto"); + + const maybeRoute = ( + harness.session as unknown as { _maybeRouteModel(text: string): Promise } + )._maybeRouteModel.bind(harness.session); + + await maybeRoute("add a Flutter screen to the Android app"); + expect(harness.session.model?.id).toBe("gemini-route"); + + // Manual switch to a different family right after auto-routing is a veto. + const claude = harness.session.modelRegistry.getAvailable().find((m) => m.id === "claude-route")!; + await harness.session.setModel(claude); + expect(harness.session.routeMode).toBe("manual"); + + const feedback = harness.sessionManager + .getEntries() + .filter( + (entry): entry is CustomEntry => + entry.type === "custom" && entry.customType === "openabcode-routing-feedback", + ); + expect(feedback).toHaveLength(1); + expect(feedback[0]?.data).toMatchObject({ + vetoedDecisionId: expect.stringMatching(/^rtd_/), + vetoedProvider: "google", + chosenProvider: "anthropic", + }); + // Back to auto: sticky resumes from the vetoed-in family, no classifier call. + harness.session.setRouteMode("auto"); + await maybeRoute("continue with the previous work"); + expect(harness.session.model?.id).toBe("claude-route"); const methods = harness.sessionManager .getEntries() .filter((entry): entry is CustomEntry => entry.type === "custom" && entry.customType === "openabcode-routing") .map((entry) => (entry.data as { method?: string }).method); - expect(methods).toEqual(["heuristic", "sticky", "heuristic"]); + expect(methods).toEqual(["heuristic", "sticky"]); + expect(harness.getPendingResponseCount()).toBe(0); + }); + + it("reports route status with degraded and inactive reasons", async () => { + const harness = await createHarness({ models: [{ id: "classifier", name: "Classifier" }] }); + harnesses.push(harness); + const classifier = harness.getModel("classifier")!; + + // Manual mode, nothing configured. + expect(harness.session.getRouteStatus()).toMatchObject({ + mode: "manual", + active: false, + inactiveReason: "manual", + availableChoices: [], + }); + + // Auto mode without a classifier model. + harness.session.setRouteMode("auto"); + expect(harness.session.getRouteStatus()).toMatchObject({ active: false, inactiveReason: "no-classifier" }); + + // Classifier configured but fewer than two families available. + harness.settingsManager.setRouterClassifierModel(classifier.provider, classifier.id); + expect(harness.session.getRouteStatus()).toMatchObject({ + active: false, + inactiveReason: "not-enough-families", + }); + + // Two families configured: active but degraded. + for (const [provider, id] of [ + ["google", "gemini-route"], + ["anthropic", "claude-route"], + ] as const) { + harness.authStorage.setRuntimeApiKey(provider, `${provider}-key`); + harness.session.modelRegistry.registerProvider(provider, { + baseUrl: classifier.baseUrl, + apiKey: `${provider}-key`, + api: classifier.api, + models: [ + { + id, + name: id, + reasoning: false, + input: ["text"], + cost: classifier.cost, + contextWindow: classifier.contextWindow, + maxTokens: classifier.maxTokens, + }, + ], + }); + harness.settingsManager.setRouterModel(provider, `${provider}/${id}`); + } + expect(harness.session.getRouteStatus()).toMatchObject({ + active: true, + availableChoices: ["google", "anthropic"], + missingChoices: ["openai"], + }); + }); + + it("routes between the configured families when one is missing", async () => { + const harness = await createHarness({ models: [{ id: "classifier", name: "Classifier" }] }); + harnesses.push(harness); + const classifier = harness.getModel("classifier")!; + + // openai is deliberately left unconfigured: routing degrades to two families. + for (const [provider, id] of [ + ["google", "gemini-route"], + ["anthropic", "claude-route"], + ] as const) { + harness.authStorage.setRuntimeApiKey(provider, `${provider}-key`); + harness.session.modelRegistry.registerProvider(provider, { + baseUrl: classifier.baseUrl, + apiKey: `${provider}-key`, + api: classifier.api, + models: [ + { + id, + name: id, + reasoning: false, + input: ["text"], + cost: classifier.cost, + contextWindow: classifier.contextWindow, + maxTokens: classifier.maxTokens, + }, + ], + }); + harness.settingsManager.setRouterModel(provider, `${provider}/${id}`); + } + harness.settingsManager.setRouterClassifierModel(classifier.provider, classifier.id); + harness.session.setRouteMode("auto"); + + const maybeRoute = ( + harness.session as unknown as { _maybeRouteModel(text: string): Promise } + )._maybeRouteModel.bind(harness.session); + + await maybeRoute("add a Flutter screen to the Android app"); + expect(harness.session.model?.id).toBe("gemini-route"); + + // A sticky choice whose family became unavailable is re-classified. + (harness.session as unknown as { _lastRouteChoice?: string })._lastRouteChoice = "openai"; + harness.setResponses([fauxAssistantMessage("anthropic")]); + await maybeRoute("continue with the previous work"); + expect(harness.session.model?.id).toBe("claude-route"); expect(harness.getPendingResponseCount()).toBe(0); }); diff --git a/packages/coding-agent/test/suite/router.test.ts b/packages/coding-agent/test/suite/router.test.ts index 2398238..169f7c2 100644 --- a/packages/coding-agent/test/suite/router.test.ts +++ b/packages/coding-agent/test/suite/router.test.ts @@ -5,7 +5,13 @@ import { OPENABCODE_PROVIDER_ID as OPENABCODE_PROVIDER, } from "@openabcode/ai/providers/openabcode"; import { describe, expect, it } from "vitest"; -import { classifyProvider, classifyProviderHeuristic, pickRouteModel, routeProviderOf } from "../../src/core/router.ts"; +import { + classifyProvider, + classifyProviderHeuristic, + filterProjectSignalFiles, + pickRouteModel, + routeProviderOf, +} from "../../src/core/router.ts"; import { BUILTIN_SLASH_COMMANDS } from "../../src/core/slash-commands.ts"; function model(provider: string, id: string): Model { @@ -43,6 +49,25 @@ describe("OpenABCode router", () => { } }); + it("classifyProvider falls back when the answer is outside the allowed set", async () => { + const faux = registerFauxProvider(); + faux.setResponses([fauxAssistantMessage("anthropic")]); + + try { + // Default (anthropic) is unavailable too, so fall back to the first allowed family + const choice = await classifyProvider( + faux.getModel(), + { text: "review this concurrency code" }, + { apiKey: "faux-key" }, + undefined, + ["openai", "google"], + ); + expect(choice).toBe("openai"); + } finally { + faux.unregister(); + } + }); + it("registers the route-model command", () => { expect(BUILTIN_SLASH_COMMANDS.find((command) => command.name === "route-model")?.description).toContain( "classify", @@ -147,6 +172,26 @@ describe("OpenABCode heuristic router", () => { expect(result?.confidence).toBe("high"); }); + it("does not treat Kotlin/Gradle as Google ecosystem signals", () => { + // Kotlin backend (Ktor/Spring) and desktop projects must not route to google + const result = classifyProviderHeuristic({ + text: "refactor this Kotlin service", + fileNames: ["src/main/kotlin/UserService.kt"], + projectFiles: ["build.gradle.kts", "settings.gradle.kts"], + }); + expect(result?.choice).not.toBe("google"); + }); + + it("still routes Android projects to google via strong markers", () => { + const result = classifyProviderHeuristic({ + text: "add a screen to the Android app", + fileNames: ["app/src/main/java/MainActivity.kt"], + projectFiles: ["androidmanifest.xml", "google-services.json", "build.gradle.kts"], + }); + expect(result?.choice).toBe("google"); + expect(result?.confidence).toBe("high"); + }); + it("returns undefined on a tie between providers", () => { const result = classifyProviderHeuristic({ text: "debug the flutter app" }); // "debug" (anthropic) vs "flutter" (google) — one signal each @@ -197,10 +242,21 @@ describe("OpenABCode heuristic router", () => { expect(result).toBeUndefined(); }); - it("allows explicit task keywords to select the default provider", () => { + it("allows explicit task keywords to select the default provider at low confidence", () => { const result = classifyProviderHeuristic({ text: "debug the module" }); expect(result?.choice).toBe("anthropic"); - expect(result?.confidence).toBe("high"); + expect(result?.confidence).toBe("low"); + }); + + it("caps default-provider confidence at low even with multiple signals", () => { + // Sticky/classifier fall back to the default anyway; never let it preempt them + const result = classifyProviderHeuristic({ text: "refactor the architecture before the migration" }); + expect(result?.choice).toBe("anthropic"); + expect(result?.confidence).toBe("low"); + }); + + it("ignores generic verbs that match nearly every prompt", () => { + expect(classifyProviderHeuristic({ text: "implement a login page and fix the build" })).toBeUndefined(); }); it("allows default-provider signals when defaultProvider is overridden", () => { @@ -209,4 +265,49 @@ describe("OpenABCode heuristic router", () => { expect(result?.choice).toBe("anthropic"); expect(result?.confidence).toBe("low"); }); + + it("ignores signals for families outside the allowed set", () => { + const result = classifyProviderHeuristic( + { text: "add a Flutter screen to the Android app", projectFiles: ["pubspec.yaml"] }, + undefined, + ["openai", "anthropic"], + ); + expect(result).toBeUndefined(); + }); + + it("routes between two allowed families without the third", () => { + // "debug" (anthropic) is ignored, so "flutter" no longer ties with it + const result = classifyProviderHeuristic({ text: "debug the flutter app" }, undefined, ["google", "openai"]); + expect(result?.choice).toBe("google"); + expect(result?.confidence).toBe("low"); + }); + + it("matches project markers by basename for monorepo subdirectory entries", () => { + const result = classifyProviderHeuristic({ + text: "add a Flutter screen", + projectFiles: ["apps/mobile/pubspec.yaml"], + }); + expect(result?.choice).toBe("google"); + expect(result?.matched).toContain("project:apps/mobile/pubspec.yaml"); + }); + + it("filterProjectSignalFiles keeps only marker and extension entries", () => { + const files = filterProjectSignalFiles([ + "README.md", + "pubspec.yaml", + "apps/web/package.json", + "MyApp.xcodeproj", + "notes.txt", + "LICENSE", + ]); + expect(files).toEqual(["pubspec.yaml", "apps/web/package.json", "MyApp.xcodeproj"]); + }); + + it("filterProjectSignalFiles respects replaced config tables", () => { + const files = filterProjectSignalFiles(["pubspec.yaml", "custom.marker"], { + projectMarkers: { "custom.marker": "openai" }, + fileExtensions: {}, + }); + expect(files).toEqual(["custom.marker"]); + }); }); diff --git a/packages/orchestrator/CHANGELOG.md b/packages/orchestrator/CHANGELOG.md index 28c7f7b..4aeb4e2 100644 --- a/packages/orchestrator/CHANGELOG.md +++ b/packages/orchestrator/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [1.1.0] - 2026-09-16 + ## [1.0.9] - 2026-07-19 ## [1.0.8] - 2026-07-19 diff --git a/packages/orchestrator/package.json b/packages/orchestrator/package.json index 55c7951..1b0434c 100644 --- a/packages/orchestrator/package.json +++ b/packages/orchestrator/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/orchestrator", - "version": "1.0.9", + "version": "1.1.0", "description": "Experimental orchestration package for OpenABCode coding agents", "type": "module", "main": "./dist/index.js", @@ -38,7 +38,7 @@ "node": ">=22.19.0" }, "dependencies": { - "@openabcode/coding-agent": "^1.0.9" + "@openabcode/coding-agent": "^1.1.0" }, "devDependencies": { "shx": "0.4.0" diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.md index 074b827..0785595 100644 --- a/packages/tui/CHANGELOG.md +++ b/packages/tui/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [1.1.0] - 2026-09-16 + ## [1.0.9] - 2026-07-19 ## [1.0.8] - 2026-07-19 diff --git a/packages/tui/package.json b/packages/tui/package.json index a1b3340..8a0b558 100644 --- a/packages/tui/package.json +++ b/packages/tui/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/tui", - "version": "1.0.9", + "version": "1.1.0", "description": "Terminal User Interface library with differential rendering for efficient text-based applications", "type": "module", "main": "dist/index.js",