From ea3007ebfc54e0211c281ac6a234f2a8fd63df60 Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sun, 18 Oct 2026 17:02:06 +0800 Subject: [PATCH 1/5] update AI gateway DEFAULT_BASE_URL --- packages/ai/src/providers/openabcode.ts | 2 +- .../test/suite/agent-session-model-extension.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ai/src/providers/openabcode.ts b/packages/ai/src/providers/openabcode.ts index 2ee9fcb..282c68f 100644 --- a/packages/ai/src/providers/openabcode.ts +++ b/packages/ai/src/providers/openabcode.ts @@ -6,7 +6,7 @@ import type { Model } from "../types.ts"; export const OPENABCODE_PROVIDER_ID = "openabcode"; export const OPENABCODE_ROUTING_DECISION_HEADER = "x-openabcode-routing-decision-id"; -const DEFAULT_BASE_URL = "https://gateway.openabcode.com/v1"; +const DEFAULT_BASE_URL = "https://api.openabcode.com/v1"; export function openabcodeGatewayBaseUrl(): string { const fromEnv = process.env.OPENABCODE_BASE_URL ?? process.env.OPENABCODE_API_BASE_URL; 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 8ba4219..31f19b4 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 @@ -512,7 +512,7 @@ describe("AgentSession model and extension characterization", () => { const classifier = harness.getModel("classifier")!; harness.authStorage.setRuntimeApiKey("openabcode", "hosted-key"); harness.session.modelRegistry.registerProvider("openabcode", { - baseUrl: "https://gateway.openabcode.com/v1", + baseUrl: "https://api.openabcode.com/v1", apiKey: "hosted-key", api: classifier.api, models: [ From ebcf4a36dc7ddbd631c0a0fc83d3a49c1acbbd5a Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sun, 18 Oct 2026 17:14:43 +0800 Subject: [PATCH 2/5] Refresh model catalogs from upstream and update changelog --- packages/ai/CHANGELOG.md | 5 + packages/ai/scripts/generate-models.ts | 24 +- packages/ai/src/image-models.generated.ts | 135 ++ .../ai/src/providers/amazon-bedrock.models.ts | 619 ++++- packages/ai/src/providers/anthropic.models.ts | 57 +- .../azure-openai-responses.models.ts | 85 + packages/ai/src/providers/cerebras.models.ts | 6 +- .../providers/cloudflare-ai-gateway.models.ts | 125 +- .../providers/cloudflare-workers-ai.models.ts | 12 +- packages/ai/src/providers/fireworks.models.ts | 249 +- packages/ai/src/providers/fireworks.ts | 8 +- .../ai/src/providers/github-copilot.models.ts | 151 ++ .../ai/src/providers/google-vertex.models.ts | 49 +- packages/ai/src/providers/google.models.ts | 23 +- .../ai/src/providers/huggingface.models.ts | 54 + .../ai/src/providers/minimax-cn.models.ts | 2 +- packages/ai/src/providers/minimax.models.ts | 2 +- packages/ai/src/providers/mistral.models.ts | 176 +- .../ai/src/providers/moonshotai-cn.models.ts | 4 +- .../ai/src/providers/moonshotai.models.ts | 4 +- packages/ai/src/providers/nvidia.models.ts | 103 +- packages/ai/src/providers/openai.models.ts | 85 + .../ai/src/providers/opencode-go.models.ts | 247 +- packages/ai/src/providers/opencode-go.ts | 6 +- packages/ai/src/providers/opencode.models.ts | 363 ++- .../ai/src/providers/openrouter.models.ts | 2149 ++++++++++------- packages/ai/src/providers/together.models.ts | 114 +- .../src/providers/vercel-ai-gateway.models.ts | 2034 ++++++++++++---- packages/ai/src/providers/xai.models.ts | 18 + .../providers/xiaomi-token-plan-ams.models.ts | 36 + .../providers/xiaomi-token-plan-cn.models.ts | 36 + .../providers/xiaomi-token-plan-sgp.models.ts | 36 + packages/ai/src/providers/xiaomi.models.ts | 54 + packages/ai/test/abort.test.ts | 2 +- packages/ai/test/cache-retention.test.ts | 2 +- packages/ai/test/context-overflow.test.ts | 4 +- packages/ai/test/empty.test.ts | 2 +- packages/ai/test/fireworks-models.test.ts | 22 +- packages/ai/test/image-tool-result.test.ts | 2 +- ...i-completions-cache-control-format.test.ts | 2 +- .../openai-completions-tool-choice.test.ts | 16 +- packages/ai/test/stream.test.ts | 4 +- packages/ai/test/supports-xhigh.test.ts | 8 +- packages/ai/test/together-models.test.ts | 16 +- packages/ai/test/tokens.test.ts | 2 +- .../ai/test/tool-call-without-result.test.ts | 2 +- packages/ai/test/total-tokens.test.ts | 4 +- packages/ai/test/unicode-surrogate.test.ts | 2 +- 48 files changed, 5253 insertions(+), 1908 deletions(-) diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 16e0633..f06d989 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +### Changed + +- Updated the default `openabcode` hosted gateway base URL from `https://gateway.openabcode.com/v1` to `https://api.openabcode.com/v1`. +- Refreshed generated model catalogs from upstream (`models.dev`, OpenRouter, Vercel AI Gateway, NVIDIA NIM) and aligned provider registrations (`fireworks`, `opencode-go`, `kimi-coding`). + ## [1.1.0] - 2026-09-16 ### Changed diff --git a/packages/ai/scripts/generate-models.ts b/packages/ai/scripts/generate-models.ts index 27e006f..ce7548e 100644 --- a/packages/ai/scripts/generate-models.ts +++ b/packages/ai/scripts/generate-models.ts @@ -95,7 +95,10 @@ const TOGETHER_REASONING_ONLY_MODELS = new Set([ "MiniMaxAI/MiniMax-M2.7", ]); const TOGETHER_REASONING_EFFORT_MODELS = new Set(["openai/gpt-oss-20b", "openai/gpt-oss-120b"]); -const TOGETHER_TOGGLE_REASONING_EFFORT_MODELS = new Set(["deepseek-ai/DeepSeek-V4-Pro"]); +const TOGETHER_TOGGLE_REASONING_EFFORT_MODELS = new Set([ + "deepseek-ai/DeepSeek-V4-Pro", + "deepseek-ai/DeepSeek-V4-Pro-0813", +]); const TOGETHER_FIXED_REASONING_LEVEL_MAP = { off: null, minimal: null, @@ -247,6 +250,7 @@ const OPENCODE_OPENAI_COMPLETIONS_LONG_CACHE_RETENTION_UNSUPPORTED_MODELS = new "opencode:kimi-k2.6", "opencode:minimax-m2.7", "opencode-go:kimi-k2.6", + "opencode-go:kimi-k3", ]); // GitHub's "Models with extended capabilities" table lists these Copilot models as supporting @@ -599,14 +603,14 @@ function applyThinkingLevelMetadata(model: Model): void { if (model.provider === "openrouter" && model.id === "z-ai/glm-5.2") { mergeThinkingLevelMap(model, { xhigh: "xhigh" }); } - if (model.provider === "fireworks" && model.id.includes("glm-5p2")) { + if (model.provider === "fireworks" && (model.id.includes("glm-5p2") || model.id.includes("glm-5p3"))) { mergeThinkingLevelMap(model, { off: "none", minimal: null, low: "high", medium: "high", max: "max" }); } if (model.provider === "opencode-go" && model.id === "glm-5.2") { mergeThinkingLevelMap(model, OPENCODE_GO_GLM52_THINKING_LEVEL_MAP); } - if (model.provider === "opencode-go" && model.id === "kimi-k2.6") { - // OpenCode Go exposes Kimi K2.6 thinking as on/off, not distinct effort tiers. + if (model.provider === "opencode-go" && (model.id === "kimi-k2.6" || model.id === "kimi-k3")) { + // OpenCode Go exposes Kimi K2.6/K3 thinking as on/off, not distinct effort tiers. mergeThinkingLevelMap(model, { minimal: null, low: null, medium: null }); } if (model.provider === "opencode" && model.id === "grok-build-0.1") { @@ -1373,8 +1377,11 @@ async function loadModelsDevData(): Promise[]> { compat = { ...(compat ?? {}), supportsReasoningEffort: false }; } - if ((variant.provider === "opencode" || variant.provider === "opencode-go") && modelId === "kimi-k2.6") { - // OpenCode Kimi K2.6 accepts Anthropic-style thinking objects + if ( + (variant.provider === "opencode" || variant.provider === "opencode-go") && + (modelId === "kimi-k2.6" || modelId === "kimi-k3") + ) { + // OpenCode Kimi K2.6/K3 accepts Anthropic-style thinking objects // and rejects string thinking values or combined reasoning_effort. compat = { ...(compat ?? {}), thinkingFormat: "deepseek", supportsReasoningEffort: false }; } @@ -1519,8 +1526,9 @@ async function loadModelsDevData(): Promise[]> { } // Process Kimi For Coding models - if (data["kimi-for-coding"]?.models) { - const kimiModels = data["kimi-for-coding"].models as Record; + const kimiForCodingProvider = data["kimi-for-coding"] ?? data["kimi-code-plan-global"] ?? data["kimi-code-plan-cn"]; + if (kimiForCodingProvider?.models) { + const kimiModels = kimiForCodingProvider.models as Record; const hasCanonicalModel = Object.prototype.hasOwnProperty.call(kimiModels, "kimi-for-coding"); const kimiAliases = new Set(["k2p5", "k2p6"]); diff --git a/packages/ai/src/image-models.generated.ts b/packages/ai/src/image-models.generated.ts index 85a6c8f..31b49fe 100644 --- a/packages/ai/src/image-models.generated.ts +++ b/packages/ai/src/image-models.generated.ts @@ -5,6 +5,36 @@ import type { ImagesApi, ImagesModel } from "./types.ts"; export const IMAGE_MODELS = { openrouter: { + "black-forest-labs/flux-3-image": { + id: "black-forest-labs/flux-3-image", + name: "Black Forest Labs: FLUX 3 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">, + "black-forest-labs/flux-3-image-klein": { + id: "black-forest-labs/flux-3-image-klein", + name: "Black Forest Labs: FLUX 3 Image Klein", + 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">, "black-forest-labs/flux.2-flex": { id: "black-forest-labs/flux.2-flex", name: "Black Forest Labs: FLUX.2 Flex", @@ -80,6 +110,21 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "bytedance-seed/seedream-5-0-flash": { + id: "bytedance-seed/seedream-5-0-flash", + name: "ByteDance Seed: Seedream 5.0 Flash", + 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-lite": { id: "bytedance-seed/seedream-5-0-lite", name: "ByteDance Seed: Seedream 5.0 Lite", @@ -200,6 +245,36 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "google/gemini-nano-banana-2.1": { + id: "google/gemini-nano-banana-2.1", + name: "Google: Nano Banana 2.1", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["image", "text"], + output: ["image", "text"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, + "krea/k3-edit": { + id: "krea/k3-edit", + name: "Krea: K3 Edit", + 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-large": { id: "krea/krea-2-large", name: "Krea: Krea 2 Large", @@ -470,6 +545,36 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "qwen/qwen-image-2.1-pro": { + id: "qwen/qwen-image-2.1-pro", + name: "Qwen: Qwen Image 2.1 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">, + "qwen/qwen-image-2.1-turbo": { + id: "qwen/qwen-image-2.1-turbo", + name: "Qwen: Qwen Image 2.1 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">, "qwen/qwen-image-3": { id: "qwen/qwen-image-3", name: "Qwen: Qwen Image 3", @@ -650,6 +755,21 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "recraft/recraft-v4.1-flash": { + id: "recraft/recraft-v4.1-flash", + name: "Recraft: Recraft V4.1 Flash", + api: "openrouter-images", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + input: ["text"], + output: ["image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + } satisfies ImagesModel<"openrouter-images">, "recraft/recraft-v4.1-pro": { id: "recraft/recraft-v4.1-pro", name: "Recraft: Recraft V4.1 Pro", @@ -785,6 +905,21 @@ export const IMAGE_MODELS = { cacheWrite: 0, }, } satisfies ImagesModel<"openrouter-images">, + "tencent/hy-image-v3.5-preview": { + id: "tencent/hy-image-v3.5-preview", + name: "Tencent: Hy Image 3.5 Preview", + 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-2.0": { id: "x-ai/grok-imagine-image-2.0", name: "xAI: Grok Imagine Image 2.0", diff --git a/packages/ai/src/providers/amazon-bedrock.models.ts b/packages/ai/src/providers/amazon-bedrock.models.ts index c769028..a12efb3 100644 --- a/packages/ai/src/providers/amazon-bedrock.models.ts +++ b/packages/ai/src/providers/amazon-bedrock.models.ts @@ -125,6 +125,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "anthropic.claude-haiku-5-5": { + id: "anthropic.claude-haiku-5-5", + name: "Claude Haiku 5.5", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "anthropic.claude-opus-4-1-20250805-v1:0": { id: "anthropic.claude-opus-4-1-20250805-v1:0", name: "Claude Opus 4.1", @@ -230,6 +247,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "anthropic.claude-opus-5-5": { + id: "anthropic.claude-opus-5-5", + name: "Claude Opus 5.5", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, + }, + 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", @@ -283,6 +317,24 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "anthropic.claude-sonnet-5-5": { + id: "anthropic.claude-sonnet-5-5", + name: "Claude Sonnet 5.5", + 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: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + 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)", @@ -368,6 +420,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "au.anthropic.claude-haiku-5-5": { + id: "au.anthropic.claude-haiku-5-5", + name: "Claude Haiku 5.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: 0.11, + output: 0.55, + cacheRead: 0.011, + cacheWrite: 0.1375, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "au.anthropic.claude-opus-4-6-v1": { id: "au.anthropic.claude-opus-4-6-v1", name: "AU Anthropic Claude Opus 4.6", @@ -439,6 +508,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "au.anthropic.claude-opus-5-5": { + id: "au.anthropic.claude-opus-5-5", + name: "Claude Opus 5.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: 4.4, + output: 22, + cacheRead: 0.22, + cacheWrite: 5.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "au.anthropic.claude-sonnet-4-5-20250929-v1:0": { id: "au.anthropic.claude-sonnet-4-5-20250929-v1:0", name: "Claude Sonnet 4.5 (AU)", @@ -646,6 +732,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "eu.anthropic.claude-haiku-5-5": { + id: "eu.anthropic.claude-haiku-5-5", + name: "Claude Haiku 5.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: 0.11, + output: 0.55, + cacheRead: 0.011, + cacheWrite: 0.1375, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "eu.anthropic.claude-opus-4-5-20251101-v1:0": { id: "eu.anthropic.claude-opus-4-5-20251101-v1:0", name: "Claude Opus 4.5 (EU)", @@ -734,6 +837,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "eu.anthropic.claude-opus-5-5": { + id: "eu.anthropic.claude-opus-5-5", + name: "Claude Opus 5.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: 4.4, + output: 22, + cacheRead: 0.22, + cacheWrite: 5.5, + }, + 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)", @@ -804,6 +924,24 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "eu.anthropic.claude-sonnet-5-5": { + id: "eu.anthropic.claude-sonnet-5-5", + name: "Claude Sonnet 5.5 (EU)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 2.2, + output: 11, + cacheRead: 0.11, + cacheWrite: 2.75, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "eu.mistral.pixtral-large-2502-v1:0": { id: "eu.mistral.pixtral-large-2502-v1:0", name: "Pixtral Large (25.02) (EU)", @@ -891,6 +1029,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-haiku-5-5": { + id: "global.anthropic.claude-haiku-5-5", + name: "Claude Haiku 5.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: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "global.anthropic.claude-opus-4-5-20251101-v1:0": { id: "global.anthropic.claude-opus-4-5-20251101-v1:0", name: "Claude Opus 4.5 (Global)", @@ -979,6 +1134,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-opus-5-5": { + id: "global.anthropic.claude-opus-5-5", + name: "Claude Opus 5.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: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, + }, + 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)", @@ -1049,6 +1221,41 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "global.anthropic.claude-sonnet-5-5": { + id: "global.anthropic.claude-sonnet-5-5", + name: "Claude Sonnet 5.5 (Global)", + 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: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.moonshotai.kimi-k3": { + id: "global.moonshotai.kimi-k3", + name: "Kimi K3 (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: 1048576, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "global.openai.gpt-5.6-luna": { id: "global.openai.gpt-5.6-luna", name: "GPT-5.6 Luna (Global)", @@ -1120,6 +1327,57 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "global.openai.gpt-6-luna": { + id: "global.openai.gpt-6-luna", + name: "GPT-6 Luna (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.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.openai.gpt-6-sol": { + id: "global.openai.gpt-6-sol", + name: "GPT-6 Sol (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: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "global.openai.gpt-6.1-sol": { + id: "global.openai.gpt-6.1-sol", + name: "GPT-6.1 Sol (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: 10, + cacheRead: 0.1, + cacheWrite: 2.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)", @@ -1137,6 +1395,40 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"bedrock-converse-stream">, + "global.xai.grok-4.7": { + id: "global.xai.grok-4.7", + name: "Grok 4.7 (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">, + "global.zai.glm-5.3": { + id: "global.zai.glm-5.3", + name: "GLM-5.3 (Global)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text"], + cost: { + input: 1.68, + output: 5.28, + cacheRead: 0.312, + cacheWrite: 2.1, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "google.gemma-4-26b-a4b": { id: "google.gemma-4-26b-a4b", name: "Gemma 4 26B A4B IT", @@ -1188,6 +1480,58 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 131072, maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, + "in.anthropic.claude-haiku-4-5-20251001-v1:0": { + id: "in.anthropic.claude-haiku-4-5-20251001-v1:0", + name: "Claude Haiku 4.5 (India)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.1, + output: 5.5, + cacheRead: 0.11, + cacheWrite: 1.375, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"bedrock-converse-stream">, + "in.anthropic.claude-opus-5": { + id: "in.anthropic.claude-opus-5", + name: "Claude Opus 5 (India)", + 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">, + "in.anthropic.claude-sonnet-5": { + id: "in.anthropic.claude-sonnet-5", + name: "Claude Sonnet 5 (India)", + 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: 2.2, + output: 11, + cacheRead: 0.22, + cacheWrite: 2.75, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "in.openai.gpt-5.6-luna": { id: "in.openai.gpt-5.6-luna", name: "GPT-5.6 Luna (India)", @@ -1258,6 +1602,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "jp.anthropic.claude-haiku-5-5": { + id: "jp.anthropic.claude-haiku-5-5", + name: "Claude Haiku 5.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: 0.11, + output: 0.55, + cacheRead: 0.011, + cacheWrite: 0.1375, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "jp.anthropic.claude-opus-4-7": { id: "jp.anthropic.claude-opus-4-7", name: "Claude Opus 4.7 (JP)", @@ -1311,6 +1672,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "jp.anthropic.claude-opus-5-5": { + id: "jp.anthropic.claude-opus-5-5", + name: "Claude Opus 5.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: 4.4, + output: 22, + cacheRead: 0.22, + cacheWrite: 5.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "jp.anthropic.claude-sonnet-4-5-20250929-v1:0": { id: "jp.anthropic.claude-sonnet-4-5-20250929-v1:0", name: "Claude Sonnet 4.5 (JP)", @@ -1480,7 +1858,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 204800, + contextWindow: 196608, maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, "minimax.minimax-m2.5": { @@ -1514,7 +1892,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "mistral.magistral-small-2509": { @@ -1599,7 +1977,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "mistral.pixtral-large-2502-v1:0": { @@ -1667,7 +2045,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262143, + contextWindow: 262144, maxTokens: 16000, } satisfies Model<"bedrock-converse-stream">, "moonshotai.kimi-k2.5": { @@ -1684,7 +2062,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262143, + contextWindow: 262144, maxTokens: 16384, } satisfies Model<"bedrock-converse-stream">, "nvidia.nemotron-nano-12b-v2": { @@ -1701,7 +2079,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 131072, maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, "nvidia.nemotron-nano-3-30b": { @@ -1770,7 +2148,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0.275, cacheWrite: 0, }, - contextWindow: 272000, + contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-5.5": { @@ -1788,7 +2166,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0.55, cacheWrite: 0, }, - contextWindow: 272000, + contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-5.6-luna": { @@ -1862,6 +2240,57 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "openai.gpt-6-luna": { + id: "openai.gpt-6-luna", + name: "GPT-6 Luna", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.11, + output: 0.55, + cacheRead: 0.011, + cacheWrite: 0.1375, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "openai.gpt-6-sol": { + id: "openai.gpt-6-sol", + name: "GPT-6 Sol", + 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: 11, + cacheRead: 0.22, + cacheWrite: 2.75, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "openai.gpt-6.1-sol": { + id: "openai.gpt-6.1-sol", + name: "GPT-6.1 Sol", + 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: 11, + cacheRead: 0.11, + cacheWrite: 2.75, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "openai.gpt-oss-120b": { id: "openai.gpt-oss-120b", name: "gpt-oss-120b", @@ -1876,8 +2305,8 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 131072, + maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-oss-120b-1:0": { id: "openai.gpt-oss-120b-1:0", @@ -1893,8 +2322,8 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 131072, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-oss-20b": { id: "openai.gpt-oss-20b", @@ -1910,8 +2339,8 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 131072, + maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-oss-20b-1:0": { id: "openai.gpt-oss-20b-1:0", @@ -1927,8 +2356,8 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 131072, + maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, "openai.gpt-oss-safeguard-120b": { id: "openai.gpt-oss-safeguard-120b", @@ -2255,6 +2684,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"bedrock-converse-stream">, + "us.anthropic.claude-haiku-5-5": { + id: "us.anthropic.claude-haiku-5-5", + name: "Claude Haiku 5.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: 0.11, + output: 0.55, + cacheRead: 0.011, + cacheWrite: 0.1375, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "us.anthropic.claude-opus-4-1-20250805-v1:0": { id: "us.anthropic.claude-opus-4-1-20250805-v1:0", name: "Claude Opus 4.1 (US)", @@ -2360,6 +2806,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "us.anthropic.claude-opus-5-5": { + id: "us.anthropic.claude-opus-5-5", + name: "Claude Opus 5.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: 4.4, + output: 22, + cacheRead: 0.22, + cacheWrite: 5.5, + }, + 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)", @@ -2430,6 +2893,24 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "us.anthropic.claude-sonnet-5-5": { + id: "us.anthropic.claude-sonnet-5-5", + name: "Claude Sonnet 5.5 (US)", + 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: 2.2, + output: 11, + cacheRead: 0.11, + cacheWrite: 2.75, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "us.meta.llama3-1-70b-instruct-v1:0": { id: "us.meta.llama3-1-70b-instruct-v1:0", name: "Llama 3.1 70B Instruct (US)", @@ -2532,6 +3013,23 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 128000, maxTokens: 8192, } satisfies Model<"bedrock-converse-stream">, + "us.moonshotai.kimi-k3": { + id: "us.moonshotai.kimi-k3", + name: "Kimi K3 (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: 1048576, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "us.openai.gpt-5.6-luna": { id: "us.openai.gpt-5.6-luna", name: "GPT-5.6 Luna (US)", @@ -2603,6 +3101,57 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-6-luna": { + id: "us.openai.gpt-6-luna", + name: "GPT-6 Luna (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.11, + output: 0.55, + cacheRead: 0.011, + cacheWrite: 0.1375, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-6-sol": { + id: "us.openai.gpt-6-sol", + name: "GPT-6 Sol (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: 11, + cacheRead: 0.22, + cacheWrite: 2.75, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, + "us.openai.gpt-6.1-sol": { + id: "us.openai.gpt-6.1-sol", + name: "GPT-6.1 Sol (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: 11, + cacheRead: 0.11, + cacheWrite: 2.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)", @@ -2654,6 +3203,40 @@ export const AMAZON_BEDROCK_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"bedrock-converse-stream">, + "us.xai.grok-4.7": { + id: "us.xai.grok-4.7", + name: "Grok 4.7 (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">, + "us.zai.glm-5.3": { + id: "us.zai.glm-5.3", + name: "GLM-5.3 (US)", + api: "bedrock-converse-stream", + provider: "amazon-bedrock", + baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", + reasoning: true, + input: ["text"], + cost: { + input: 1.848, + output: 5.808, + cacheRead: 0.3432, + cacheWrite: 2.31, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"bedrock-converse-stream">, "writer.palmyra-x4-v1:0": { id: "writer.palmyra-x4-v1:0", name: "Palmyra X4", @@ -2736,7 +3319,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 204800, + contextWindow: 202752, maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, "zai.glm-4.7-flash": { @@ -2753,7 +3336,7 @@ export const AMAZON_BEDROCK_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 200000, + contextWindow: 202752, maxTokens: 131072, } satisfies Model<"bedrock-converse-stream">, "zai.glm-5": { diff --git a/packages/ai/src/providers/anthropic.models.ts b/packages/ai/src/providers/anthropic.models.ts index 662b539..0826077 100644 --- a/packages/ai/src/providers/anthropic.models.ts +++ b/packages/ai/src/providers/anthropic.models.ts @@ -76,6 +76,23 @@ export const ANTHROPIC_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "claude-haiku-5-5": { + id: "claude-haiku-5-5", + name: "Claude Haiku 5.5", + api: "anthropic-messages", + provider: "anthropic", + baseUrl: "https://api.anthropic.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-opus-4-5": { id: "claude-opus-4-5", name: "Claude Opus 4.5 (latest)", @@ -184,6 +201,23 @@ export const ANTHROPIC_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-opus-5-5": { + id: "claude-opus-5-5", + name: "Claude Opus 5.5", + api: "anthropic-messages", + provider: "anthropic", + baseUrl: "https://api.anthropic.com", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-sonnet-4-5": { id: "claude-sonnet-4-5", name: "Claude Sonnet 4.5 (latest)", @@ -198,7 +232,7 @@ export const ANTHROPIC_MODELS = { cacheRead: 0.3, cacheWrite: 3.75, }, - contextWindow: 1000000, + contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, "claude-sonnet-4-5-20250929": { @@ -215,7 +249,7 @@ export const ANTHROPIC_MODELS = { cacheRead: 0.3, cacheWrite: 3.75, }, - contextWindow: 1000000, + contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, "claude-sonnet-4-6": { @@ -256,4 +290,23 @@ export const ANTHROPIC_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-sonnet-5-5": { + id: "claude-sonnet-5-5", + name: "Claude Sonnet 5.5", + api: "anthropic-messages", + provider: "anthropic", + baseUrl: "https://api.anthropic.com", + compat: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, } as const; diff --git a/packages/ai/src/providers/azure-openai-responses.models.ts b/packages/ai/src/providers/azure-openai-responses.models.ts index a2759e8..7cb8160 100644 --- a/packages/ai/src/providers/azure-openai-responses.models.ts +++ b/packages/ai/src/providers/azure-openai-responses.models.ts @@ -569,6 +569,91 @@ export const AZURE_OPENAI_RESPONSES_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"azure-openai-responses">, + "gpt-6-luna": { + id: "gpt-6-luna", + name: "GPT-6 Luna", + api: "azure-openai-responses", + provider: "azure-openai-responses", + baseUrl: "", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"azure-openai-responses">, + "gpt-6-sol": { + id: "gpt-6-sol", + name: "GPT-6 Sol", + api: "azure-openai-responses", + provider: "azure-openai-responses", + baseUrl: "", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"azure-openai-responses">, + "gpt-6.1-sol": { + id: "gpt-6.1-sol", + name: "GPT-6.1 Sol", + api: "azure-openai-responses", + provider: "azure-openai-responses", + baseUrl: "", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"azure-openai-responses">, + "gpt-daybreak-blue-latest": { + id: "gpt-daybreak-blue-latest", + name: "Daybreak Blue", + api: "azure-openai-responses", + provider: "azure-openai-responses", + baseUrl: "", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"azure-openai-responses">, + "gpt-daybreak-red-latest": { + id: "gpt-daybreak-red-latest", + name: "Daybreak Red", + api: "azure-openai-responses", + provider: "azure-openai-responses", + baseUrl: "", + reasoning: true, + input: ["text", "image"], + cost: { + input: 12.5, + output: 75, + cacheRead: 1.25, + cacheWrite: 15.625, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"azure-openai-responses">, "gpt-realtime-2.1": { id: "gpt-realtime-2.1", name: "GPT-Realtime-2.1", diff --git a/packages/ai/src/providers/cerebras.models.ts b/packages/ai/src/providers/cerebras.models.ts index da24271..6d97e72 100644 --- a/packages/ai/src/providers/cerebras.models.ts +++ b/packages/ai/src/providers/cerebras.models.ts @@ -34,10 +34,10 @@ export const CEREBRAS_MODELS = { cost: { input: 0.99, output: 1.49, - cacheRead: 0, + cacheRead: 0.99, cacheWrite: 0, }, - contextWindow: 65536, - maxTokens: 32768, + contextWindow: 131072, + maxTokens: 40960, } 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 a2cee6a..3826011 100644 --- a/packages/ai/src/providers/cloudflare-ai-gateway.models.ts +++ b/packages/ai/src/providers/cloudflare-ai-gateway.models.ts @@ -60,6 +60,24 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "claude-haiku-5.5": { + id: "claude-haiku-5.5", + name: "Claude Haiku 5.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: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-opus-4.5": { id: "claude-opus-4.5", name: "Claude Opus 4.5 (latest)", @@ -153,6 +171,24 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-opus-5.5": { + id: "claude-opus-5.5", + name: "Claude Opus 5.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: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-sonnet-4.5": { id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5 (latest)", @@ -168,7 +204,7 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { cacheRead: 0.3, cacheWrite: 3.75, }, - contextWindow: 1000000, + contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, "claude-sonnet-4.6": { @@ -209,6 +245,25 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-sonnet-5.5": { + id: "claude-sonnet-5.5", + name: "Claude Sonnet 5.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,"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "gpt-4.1": { id: "gpt-4.1", name: "GPT-4.1", @@ -528,6 +583,74 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, + "gpt-6-astra": { + id: "gpt-6-astra", + name: "GPT-6 Astra", + 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: 10, + output: 50, + cacheRead: 1, + cacheWrite: 12, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6-luna": { + id: "gpt-6-luna", + name: "GPT-6 Luna", + 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: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6-sol": { + id: "gpt-6-sol", + name: "GPT-6 Sol", + 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: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6.1-sol": { + id: "gpt-6.1-sol", + name: "GPT-6.1 Sol", + 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: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, "o3": { id: "o3", name: "o3", diff --git a/packages/ai/src/providers/cloudflare-workers-ai.models.ts b/packages/ai/src/providers/cloudflare-workers-ai.models.ts index f004c3c..c54d4dd 100644 --- a/packages/ai/src/providers/cloudflare-workers-ai.models.ts +++ b/packages/ai/src/providers/cloudflare-workers-ai.models.ts @@ -20,7 +20,7 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { cacheRead: 0.014, cacheWrite: 0, }, - contextWindow: 1310720, + contextWindow: 1048576, maxTokens: 1048576, } satisfies Model<"openai-completions">, "@cf/deepseek-ai/deepseek-v4-pro-0813": { @@ -54,7 +54,7 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { cost: { input: 0.1, output: 0.3, - cacheRead: 0, + cacheRead: 0.05, cacheWrite: 0, }, contextWindow: 256000, @@ -122,7 +122,7 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true}, reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.351, output: 0.555, @@ -309,8 +309,8 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { cacheRead: 0.26, cacheWrite: 0, }, - contextWindow: 1310720, - maxTokens: 1310720, + contextWindow: 1048576, + maxTokens: 1048576, } satisfies Model<"openai-completions">, "@cf/zai-org/glm-5.3-flash": { id: "@cf/zai-org/glm-5.3-flash", @@ -327,7 +327,7 @@ export const CLOUDFLARE_WORKERS_AI_MODELS = { cacheRead: 0.03, cacheWrite: 0, }, - contextWindow: 1310720, + contextWindow: 1048576, 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 123114f..2014488 100644 --- a/packages/ai/src/providers/fireworks.models.ts +++ b/packages/ai/src/providers/fireworks.models.ts @@ -4,27 +4,9 @@ import type { Model } from "../types.ts"; export const FIREWORKS_MODELS = { - "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", - compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, - reasoning: true, - input: ["text"], - cost: { - 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", + "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", @@ -32,53 +14,17 @@ export const FIREWORKS_MODELS = { 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/deepseek-v4-pro": { - id: "accounts/fireworks/models/deepseek-v4-pro", - name: "DeepSeek V4 Pro", - 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.2, + input: 0.3, output: 1.2, - cacheRead: 0.6, - cacheWrite: 0, - }, - contextWindow: 1000000, - maxTokens: 384000, - } satisfies Model<"anthropic-messages">, - "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", - compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, - reasoning: true, - input: ["text"], - cost: { - input: 1.32, - output: 3.96, - cacheRead: 0.044, + cacheRead: 0.006, cacheWrite: 0, }, 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", + "accounts/fireworks/models/ember-1": { + id: "accounts/fireworks/models/ember-1", + name: "Ember-1", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -86,33 +32,14 @@ export const FIREWORKS_MODELS = { 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", - name: "GLM 5.2", - api: "openai-completions", - provider: "fireworks", - baseUrl: "https://api.fireworks.ai/inference/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false}, - reasoning: true, - thinkingLevelMap: {"off":"none","minimal":null,"low":"high","medium":"high","max":"max"}, - input: ["text"], - cost: { - input: 1.4, - output: 4.4, - cacheRead: 0.14, + input: 3, + output: 15, + cacheRead: 0.3, cacheWrite: 0, }, - contextWindow: 1048575, + contextWindow: 1048576, maxTokens: 131072, - } satisfies Model<"openai-completions">, + } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/glm-5p3": { id: "accounts/fireworks/models/glm-5p3", name: "GLM 5.3", @@ -121,6 +48,7 @@ export const FIREWORKS_MODELS = { baseUrl: "https://api.fireworks.ai/inference", compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, reasoning: true, + thinkingLevelMap: {"off":"none","minimal":null,"low":"high","medium":"high","max":"max"}, input: ["text"], cost: { input: 1.4, @@ -139,6 +67,7 @@ export const FIREWORKS_MODELS = { baseUrl: "https://api.fireworks.ai/inference", compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, reasoning: true, + thinkingLevelMap: {"off":"none","minimal":null,"low":"high","medium":"high","max":"max"}, input: ["text", "image"], cost: { input: 0.15, @@ -185,42 +114,6 @@ export const FIREWORKS_MODELS = { contextWindow: 1048576, maxTokens: 1048576, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/models/kimi-k2p6": { - id: "accounts/fireworks/models/kimi-k2p6", - name: "Kimi K2.6", - 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.95, - output: 4, - cacheRead: 0.16, - cacheWrite: 0, - }, - contextWindow: 262000, - maxTokens: 262000, - } satisfies Model<"anthropic-messages">, - "accounts/fireworks/models/kimi-k2p7-code": { - id: "accounts/fireworks/models/kimi-k2p7-code", - name: "Kimi K2.7 Code", - 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.95, - output: 4, - cacheRead: 0.19, - cacheWrite: 0, - }, - contextWindow: 262000, - maxTokens: 262000, - } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/kimi-k3": { id: "accounts/fireworks/models/kimi-k3", name: "Kimi K3", @@ -239,24 +132,6 @@ export const FIREWORKS_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/models/minimax-m2p7": { - id: "accounts/fireworks/models/minimax-m2p7", - name: "MiniMax-M2.7", - 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.2, - output: 1.2, - cacheRead: 0.6, - cacheWrite: 0, - }, - contextWindow: 196608, - maxTokens: 131072, - } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/minimax-m3": { id: "accounts/fireworks/models/minimax-m3", name: "MiniMax-M3", @@ -275,27 +150,9 @@ 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", + "accounts/fireworks/models/muse-spark-open": { + id: "accounts/fireworks/models/muse-spark-open", + name: "Muse Spark Open", api: "anthropic-messages", provider: "fireworks", baseUrl: "https://api.fireworks.ai/inference", @@ -303,12 +160,12 @@ export const FIREWORKS_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.35, - output: 1.5, - cacheRead: 0.04, + input: 1.25, + output: 4.25, + cacheRead: 0.15, cacheWrite: 0, }, - contextWindow: 131072, + contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/nemotron-3-ultra-nvfp4": { @@ -347,24 +204,6 @@ export const FIREWORKS_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"anthropic-messages">, - "accounts/fireworks/models/qwen3p7-plus": { - id: "accounts/fireworks/models/qwen3p7-plus", - name: "Qwen 3.7 Plus", - 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.4, - output: 1.6, - cacheRead: 0.08, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 65536, - } satisfies Model<"anthropic-messages">, "accounts/fireworks/models/qwen3p8-2p4t-a95b": { id: "accounts/fireworks/models/qwen3p8-2p4t-a95b", name: "Qwen3.8 2.4T A95B", @@ -411,51 +250,14 @@ export const FIREWORKS_MODELS = { 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, + input: 0.3, + output: 1.2, + cacheRead: 0.006, 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", - api: "openai-completions", - provider: "fireworks", - baseUrl: "https://api.fireworks.ai/inference/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false}, - reasoning: true, - thinkingLevelMap: {"off":"none","minimal":null,"low":"high","medium":"high","max":"max"}, - input: ["text"], - cost: { - input: 2.1, - output: 6.6, - cacheRead: 0.21, - cacheWrite: 0, - }, - contextWindow: 1048575, - maxTokens: 131072, - } satisfies Model<"openai-completions">, "accounts/fireworks/routers/glm-5p3-fast": { id: "accounts/fireworks/routers/glm-5p3-fast", name: "GLM 5.3 Fast", @@ -464,6 +266,7 @@ export const FIREWORKS_MODELS = { baseUrl: "https://api.fireworks.ai/inference", compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false}, reasoning: true, + thinkingLevelMap: {"off":"none","minimal":null,"low":"high","medium":"high","max":"max"}, input: ["text"], cost: { input: 2.1, diff --git a/packages/ai/src/providers/fireworks.ts b/packages/ai/src/providers/fireworks.ts index 518fb25..9c0b509 100644 --- a/packages/ai/src/providers/fireworks.ts +++ b/packages/ai/src/providers/fireworks.ts @@ -1,19 +1,15 @@ import { anthropicMessagesApi } from "../api/anthropic-messages.lazy.ts"; -import { openAICompletionsApi } from "../api/openai-completions.lazy.ts"; import { envApiKeyAuth } from "../auth/helpers.ts"; import { createProvider, type Provider } from "../models.ts"; import { FIREWORKS_MODELS } from "./fireworks.models.ts"; -export function fireworksProvider(): Provider<"anthropic-messages" | "openai-completions"> { +export function fireworksProvider(): Provider<"anthropic-messages"> { return createProvider({ id: "fireworks", name: "Fireworks", baseUrl: "https://api.fireworks.ai/inference", auth: { apiKey: envApiKeyAuth("Fireworks API key", ["FIREWORKS_API_KEY"]) }, models: Object.values(FIREWORKS_MODELS), - api: { - "anthropic-messages": anthropicMessagesApi(), - "openai-completions": openAICompletionsApi(), - }, + api: anthropicMessagesApi(), }); } diff --git a/packages/ai/src/providers/github-copilot.models.ts b/packages/ai/src/providers/github-copilot.models.ts index 8d9a3c0..b70ed1d 100644 --- a/packages/ai/src/providers/github-copilot.models.ts +++ b/packages/ai/src/providers/github-copilot.models.ts @@ -61,6 +61,24 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "claude-haiku-5.5": { + id: "claude-haiku-5.5", + name: "Claude Haiku 5.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"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-opus-4.7": { id: "claude-opus-4.7", name: "Claude Opus 4.7", @@ -119,6 +137,24 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "claude-opus-5.5": { + id: "claude-opus-5.5", + name: "Claude Opus 5.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"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-sonnet-4.6": { id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6", @@ -159,6 +195,26 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-sonnet-5.5": { + id: "claude-sonnet-5.5", + name: "Claude Sonnet 5.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: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "gemini-3.5-flash": { id: "gemini-3.5-flash", name: "Gemini 3.5 Flash", @@ -235,6 +291,25 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"openai-completions">, + "gemini-4-argon": { + id: "gemini-4-argon", + name: "Gemini 4 Argon", + 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: 10, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, "gpt-5-mini": { id: "gpt-5-mini", name: "GPT-5 Mini", @@ -425,6 +500,63 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "gpt-6-luna": { + id: "gpt-6-luna", + name: "GPT-6 Luna", + 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.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "gpt-6-sol": { + id: "gpt-6-sol", + name: "GPT-6 Sol", + 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: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "gpt-6.1-sol": { + id: "gpt-6.1-sol", + name: "GPT-6.1 Sol", + 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: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, "grok-4.5": { id: "grok-4.5", name: "Grok 4.5", @@ -463,6 +595,25 @@ export const GITHUB_COPILOT_MODELS = { contextWindow: 500000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "grok-4.7": { + id: "grok-4.7", + name: "Grok 4.7", + 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", diff --git a/packages/ai/src/providers/google-vertex.models.ts b/packages/ai/src/providers/google-vertex.models.ts index a4ca1a5..331db95 100644 --- a/packages/ai/src/providers/google-vertex.models.ts +++ b/packages/ai/src/providers/google-vertex.models.ts @@ -91,6 +91,24 @@ export const GOOGLE_VERTEX_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-vertex">, + "gemini-3.1-flash-lite-image": { + id: "gemini-3.1-flash-lite-image", + name: "Nano Banana 2 Lite", + api: "google-vertex", + provider: "google-vertex", + baseUrl: "https://{location}-aiplatform.googleapis.com", + reasoning: true, + thinkingLevelMap: {"off":null}, + input: ["text", "image"], + cost: { + input: 0.25, + output: 30, + cacheRead: 0.025, + cacheWrite: 0, + }, + contextWindow: 65536, + maxTokens: 4096, + } satisfies Model<"google-vertex">, "gemini-3.1-pro-preview": { id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview", @@ -217,37 +235,18 @@ export const GOOGLE_VERTEX_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-vertex">, - "gemini-flash-latest": { - id: "gemini-flash-latest", - name: "Gemini Flash Latest", + "gemini-4-argon": { + id: "gemini-4-argon", + name: "Gemini 4 Argon", api: "google-vertex", provider: "google-vertex", baseUrl: "https://{location}-aiplatform.googleapis.com", reasoning: true, - thinkingLevelMap: {"off":null}, input: ["text", "image"], cost: { - input: 1.5, - output: 9, - cacheRead: 0.15, - cacheWrite: 0, - }, - contextWindow: 1048576, - maxTokens: 65536, - } satisfies Model<"google-vertex">, - "gemini-flash-lite-latest": { - id: "gemini-flash-lite-latest", - name: "Gemini Flash-Lite Latest", - api: "google-vertex", - provider: "google-vertex", - baseUrl: "https://{location}-aiplatform.googleapis.com", - reasoning: true, - thinkingLevelMap: {"off":null}, - input: ["text", "image"], - cost: { - input: 0.25, - output: 1.5, - cacheRead: 0.025, + input: 2, + output: 10, + cacheRead: 0.1, cacheWrite: 0, }, contextWindow: 1048576, diff --git a/packages/ai/src/providers/google.models.ts b/packages/ai/src/providers/google.models.ts index 6def441..80281df 100644 --- a/packages/ai/src/providers/google.models.ts +++ b/packages/ai/src/providers/google.models.ts @@ -52,8 +52,8 @@ export const GOOGLE_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 65536, + contextWindow: 128000, + maxTokens: 64000, } satisfies Model<"google-generative-ai">, "gemini-2.5-flash": { id: "gemini-2.5-flash", @@ -158,7 +158,7 @@ export const GOOGLE_MODELS = { cacheWrite: 0, }, contextWindow: 65536, - maxTokens: 65536, + maxTokens: 4096, } satisfies Model<"google-generative-ai">, "gemini-3.1-flash-lite-preview": { id: "gemini-3.1-flash-lite-preview", @@ -322,6 +322,23 @@ export const GOOGLE_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, + "gemini-4-argon": { + id: "gemini-4-argon", + name: "Gemini 4 Argon", + api: "google-generative-ai", + provider: "google", + baseUrl: "https://generativelanguage.googleapis.com/v1beta", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 32768, + } satisfies Model<"google-generative-ai">, "gemini-flash-latest": { id: "gemini-flash-latest", name: "Gemini Flash Latest", diff --git a/packages/ai/src/providers/huggingface.models.ts b/packages/ai/src/providers/huggingface.models.ts index b0bccdf..a0a0f39 100644 --- a/packages/ai/src/providers/huggingface.models.ts +++ b/packages/ai/src/providers/huggingface.models.ts @@ -4,6 +4,24 @@ import type { Model } from "../types.ts"; export const HUGGINGFACE_MODELS = { + "MiniMaxAI/MiniMax-M1-80k": { + id: "MiniMaxAI/MiniMax-M1-80k", + name: "MiniMax M1 80K", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.55, + output: 2.2, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 80000, + } satisfies Model<"openai-completions">, "MiniMaxAI/MiniMax-M2": { id: "MiniMaxAI/MiniMax-M2", name: "MiniMax-M2", @@ -328,6 +346,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 131072, maxTokens: 32768, } satisfies Model<"openai-completions">, + "Qwen/Qwen3-VL-30B-A3B-Instruct": { + id: "Qwen/Qwen3-VL-30B-A3B-Instruct", + name: "Qwen3 VL 30B A3B Instruct", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.2, + output: 0.7, + 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", @@ -1102,6 +1138,24 @@ export const HUGGINGFACE_MODELS = { contextWindow: 262144, maxTokens: 128000, } satisfies Model<"openai-completions">, + "tencent/Hy4-preview": { + id: "tencent/Hy4-preview", + name: "Hy4 preview", + api: "openai-completions", + provider: "huggingface", + baseUrl: "https://router.huggingface.co/v1", + compat: {"supportsDeveloperRole":false}, + reasoning: true, + input: ["text"], + cost: { + input: 0.834, + output: 2.501, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "thinkingmachines/Inkling": { id: "thinkingmachines/Inkling", name: "Inkling", diff --git a/packages/ai/src/providers/minimax-cn.models.ts b/packages/ai/src/providers/minimax-cn.models.ts index 2017128..0e454f0 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: 1048576, + contextWindow: 1000000, 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 60ec9d9..bd65570 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: 1048576, + contextWindow: 1000000, 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 6a492b1..4a3e2ff 100644 --- a/packages/ai/src/providers/mistral.models.ts +++ b/packages/ai/src/providers/mistral.models.ts @@ -4,6 +4,23 @@ import type { Model } from "../types.ts"; export const MISTRAL_MODELS = { + "codestral-2508": { + id: "codestral-2508", + name: "Codestral 25.08", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: false, + input: ["text"], + cost: { + input: 0.3, + output: 0.9, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 256000, + maxTokens: 8192, + } satisfies Model<"mistral-conversations">, "codestral-latest": { id: "codestral-latest", name: "Codestral (latest)", @@ -123,6 +140,23 @@ export const MISTRAL_MODELS = { contextWindow: 128000, maxTokens: 128000, } satisfies Model<"mistral-conversations">, + "glm-5-2": { + id: "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: 1048576, + maxTokens: 131072, + } satisfies Model<"mistral-conversations">, "labs-devstral-small-2512": { id: "labs-devstral-small-2512", name: "Devstral Small 2", @@ -140,6 +174,23 @@ export const MISTRAL_MODELS = { contextWindow: 256000, maxTokens: 256000, } satisfies Model<"mistral-conversations">, + "labs-leanstral-1-5-1": { + id: "labs-leanstral-1-5-1", + name: "Leanstral 1.5", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 128000, + } satisfies Model<"mistral-conversations">, "magistral-medium-latest": { id: "magistral-medium-latest", name: "Magistral Medium (latest)", @@ -147,32 +198,49 @@ export const MISTRAL_MODELS = { provider: "mistral", baseUrl: "https://api.mistral.ai", reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { input: 2, output: 5, cacheRead: 0.2, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 262144, maxTokens: 16384, } satisfies Model<"mistral-conversations">, - "magistral-small": { - id: "magistral-small", - name: "Magistral Small", + "ministral-14b-2512": { + id: "ministral-14b-2512", + name: "Ministral 3 14B", api: "mistral-conversations", provider: "mistral", baseUrl: "https://api.mistral.ai", - reasoning: true, - input: ["text"], + reasoning: false, + input: ["text", "image"], cost: { - input: 0.5, - output: 1.5, - cacheRead: 0.05, + input: 0.2, + output: 0.2, + cacheRead: 0.02, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 128000, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"mistral-conversations">, + "ministral-3b-2512": { + id: "ministral-3b-2512", + name: "Ministral 3 3B", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.1, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 262144, } satisfies Model<"mistral-conversations">, "ministral-3b-latest": { id: "ministral-3b-latest", @@ -181,16 +249,33 @@ export const MISTRAL_MODELS = { provider: "mistral", baseUrl: "https://api.mistral.ai", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.04, output: 0.04, cacheRead: 0.004, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 131072, maxTokens: 128000, } satisfies Model<"mistral-conversations">, + "ministral-8b-2512": { + id: "ministral-8b-2512", + name: "Ministral 3 8B", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.15, + output: 0.15, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 262144, + } satisfies Model<"mistral-conversations">, "ministral-8b-latest": { id: "ministral-8b-latest", name: "Ministral 8B (latest)", @@ -198,14 +283,14 @@ export const MISTRAL_MODELS = { provider: "mistral", baseUrl: "https://api.mistral.ai", reasoning: false, - input: ["text"], + input: ["text", "image"], cost: { input: 0.1, output: 0.1, cacheRead: 0.01, cacheWrite: 0, }, - contextWindow: 128000, + contextWindow: 262144, maxTokens: 128000, } satisfies Model<"mistral-conversations">, "mistral-large-2411": { @@ -242,6 +327,23 @@ export const MISTRAL_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"mistral-conversations">, + "mistral-large-4": { + id: "mistral-large-4", + name: "Mistral Large 4", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.68, + output: 2.09, + cacheRead: 0.07, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 262144, + } satisfies Model<"mistral-conversations">, "mistral-large-latest": { id: "mistral-large-latest", name: "Mistral Large (latest)", @@ -392,7 +494,7 @@ export const MISTRAL_MODELS = { cacheRead: 0.015, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 256000, } satisfies Model<"mistral-conversations">, "mistral-small-latest": { @@ -409,7 +511,7 @@ export const MISTRAL_MODELS = { cacheRead: 0.015, cacheWrite: 0, }, - contextWindow: 256000, + contextWindow: 262144, maxTokens: 256000, } satisfies Model<"mistral-conversations">, "open-mistral-7b": { @@ -514,6 +616,23 @@ export const MISTRAL_MODELS = { contextWindow: 128000, maxTokens: 128000, } satisfies Model<"mistral-conversations">, + "voxtral-small-2507": { + id: "voxtral-small-2507", + name: "Voxtral Small", + api: "mistral-conversations", + provider: "mistral", + baseUrl: "https://api.mistral.ai", + reasoning: false, + input: ["text"], + cost: { + input: 0.1, + output: 0.4, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 32768, + maxTokens: 32000, + } satisfies Model<"mistral-conversations">, "voxtral-small-latest": { id: "voxtral-small-latest", name: "Voxtral Small (latest)", @@ -528,7 +647,7 @@ export const MISTRAL_MODELS = { cacheRead: 0.01, cacheWrite: 0, }, - contextWindow: 32000, + contextWindow: 32768, maxTokens: 32000, } satisfies Model<"mistral-conversations">, "zai-glm-5-2": { @@ -545,7 +664,24 @@ export const MISTRAL_MODELS = { cacheRead: 0.14, cacheWrite: 0, }, - contextWindow: 1000000, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"mistral-conversations">, + "zai-glm-5-3": { + id: "zai-glm-5-3", + name: "GLM-5.3", + 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: 1048576, 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 cba6d87..a172082 100644 --- a/packages/ai/src/providers/moonshotai-cn.models.ts +++ b/packages/ai/src/providers/moonshotai-cn.models.ts @@ -73,9 +73,9 @@ export const MOONSHOTAI_CN_MODELS = { input: 3, output: 15, cacheRead: 0.3, - cacheWrite: 0, + cacheWrite: 3, }, contextWindow: 1048576, - maxTokens: 131072, + maxTokens: 1048576, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/moonshotai.models.ts b/packages/ai/src/providers/moonshotai.models.ts index 9de9e71..f0a5cc5 100644 --- a/packages/ai/src/providers/moonshotai.models.ts +++ b/packages/ai/src/providers/moonshotai.models.ts @@ -73,9 +73,9 @@ export const MOONSHOTAI_MODELS = { input: 3, output: 15, cacheRead: 0.3, - cacheWrite: 0, + cacheWrite: 3, }, contextWindow: 1048576, - maxTokens: 131072, + maxTokens: 1048576, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/nvidia.models.ts b/packages/ai/src/providers/nvidia.models.ts index 5552c12..c7c321b 100644 --- a/packages/ai/src/providers/nvidia.models.ts +++ b/packages/ai/src/providers/nvidia.models.ts @@ -4,9 +4,9 @@ import type { Model } from "../types.ts"; export const NVIDIA_MODELS = { - "deepseek-ai/deepseek-v4-flash-0731": { - id: "deepseek-ai/deepseek-v4-flash-0731", - name: "DeepSeek V4 Flash 0731", + "deepseek-ai/deepseek-v4.1-flash": { + id: "deepseek-ai/deepseek-v4.1-flash", + name: "DeepSeek V4.1 Flash", api: "openai-completions", provider: "nvidia", baseUrl: "https://integrate.api.nvidia.com/v1", @@ -14,7 +14,7 @@ export const NVIDIA_MODELS = { 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"], + input: ["text", "image"], cost: { input: 0, output: 0, @@ -24,6 +24,25 @@ export const NVIDIA_MODELS = { contextWindow: 1000000, maxTokens: 384000, } satisfies Model<"openai-completions">, + "google/diffusiongemma-26b-a4b-it": { + id: "google/diffusiongemma-26b-a4b-it", + name: "DiffusionGemma 26B A4B 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: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 250000, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "google/gemma-3-12b-it": { id: "google/gemma-3-12b-it", name: "Gemma 3 12B IT", @@ -157,25 +176,6 @@ export const NVIDIA_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"openai-completions">, - "moonshotai/kimi-k3": { - id: "moonshotai/kimi-k3", - name: "Kimi K3", - 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: 1048576, - maxTokens: 131072, - } satisfies Model<"openai-completions">, "nvidia/cosmos-reason2-8b": { id: "nvidia/cosmos-reason2-8b", name: "Cosmos Reason2 8B", @@ -252,25 +252,6 @@ export const NVIDIA_MODELS = { contextWindow: 256000, maxTokens: 65536, } satisfies Model<"openai-completions">, - "nvidia/nemotron-3-super-120b-a12b": { - id: "nvidia/nemotron-3-super-120b-a12b", - name: "Nemotron 3 Super", - 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.2, - output: 0.8, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 262144, - } satisfies Model<"openai-completions">, "nvidia/nemotron-3-ultra-550b-a55b": { id: "nvidia/nemotron-3-ultra-550b-a55b", name: "Nemotron 3 Ultra 550B A55B", @@ -309,6 +290,25 @@ export const NVIDIA_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"openai-completions">, + "nvidia/nemotron-3.5-super-vl-120b-a12b": { + id: "nvidia/nemotron-3.5-super-vl-120b-a12b", + name: "Nemotron 3.5 Super VL 120B A12B", + 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: 1048576, + maxTokens: 8192, + } satisfies Model<"openai-completions">, "openai/gpt-oss-20b": { id: "openai/gpt-oss-20b", name: "GPT OSS 20B", @@ -347,6 +347,25 @@ export const NVIDIA_MODELS = { contextWindow: 262144, maxTokens: 16384, } satisfies Model<"openai-completions">, + "z-ai/glm-5.3": { + id: "z-ai/glm-5.3", + name: "GLM-5.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"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "z-ai/glm-5.3-flash": { id: "z-ai/glm-5.3-flash", name: "GLM-5.3-Flash", diff --git a/packages/ai/src/providers/openai.models.ts b/packages/ai/src/providers/openai.models.ts index 820977c..0347df7 100644 --- a/packages/ai/src/providers/openai.models.ts +++ b/packages/ai/src/providers/openai.models.ts @@ -576,6 +576,91 @@ export const OPENAI_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, + "gpt-6-luna": { + id: "gpt-6-luna", + name: "GPT-6 Luna", + api: "openai-responses", + provider: "openai", + baseUrl: "https://api.openai.com/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6-sol": { + id: "gpt-6-sol", + name: "GPT-6 Sol", + api: "openai-responses", + provider: "openai", + baseUrl: "https://api.openai.com/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6.1-sol": { + id: "gpt-6.1-sol", + name: "GPT-6.1 Sol", + api: "openai-responses", + provider: "openai", + baseUrl: "https://api.openai.com/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-daybreak-blue-latest": { + id: "gpt-daybreak-blue-latest", + name: "Daybreak Blue", + api: "openai-responses", + provider: "openai", + baseUrl: "https://api.openai.com/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-daybreak-red-latest": { + id: "gpt-daybreak-red-latest", + name: "Daybreak Red", + api: "openai-responses", + provider: "openai", + baseUrl: "https://api.openai.com/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 12.5, + output: 75, + cacheRead: 1.25, + cacheWrite: 15.625, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, "gpt-realtime-2.1": { id: "gpt-realtime-2.1", name: "GPT-Realtime-2.1", diff --git a/packages/ai/src/providers/opencode-go.models.ts b/packages/ai/src/providers/opencode-go.models.ts index 22ee752..d5071d5 100644 --- a/packages/ai/src/providers/opencode-go.models.ts +++ b/packages/ai/src/providers/opencode-go.models.ts @@ -4,44 +4,41 @@ import type { Model } from "../types.ts"; export const OPENCODE_GO_MODELS = { - "deepseek-v4-flash": { - id: "deepseek-v4-flash", - name: "DeepSeek V4 Flash", + "beam-free": { + id: "beam-free", + name: "Beam Free", 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"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, reasoning: true, - thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":"max"}, input: ["text"], cost: { - input: 0.15, - output: 0.6, - cacheRead: 0.003, + input: 0, + output: 0, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 384000, + contextWindow: 1048576, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "deepseek-v4-flash-vision-exp": { - id: "deepseek-v4-flash-vision-exp", - name: "DeepSeek V4 Flash Vision Exp", - api: "openai-completions", + "claude-haiku-5-5": { + id: "claude-haiku-5-5", + name: "Claude Haiku 5.5", + api: "anthropic-messages", provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + baseUrl: "https://opencode.ai/zen/go", 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, + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, }, contextWindow: 1000000, - maxTokens: 384000, - } satisfies Model<"openai-completions">, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "deepseek-v4-pro": { id: "deepseek-v4-pro", name: "DeepSeek V4 Pro (New)", @@ -80,24 +77,23 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1000000, maxTokens: 384000, } satisfies Model<"openai-completions">, - "glm-5.1": { - id: "glm-5.1", - name: "GLM-5.1", - api: "openai-completions", + "gemini-4-argon-contributor": { + id: "gemini-4-argon-contributor", + name: "Gemini 4 Argon Contributor", + api: "google-generative-ai", provider: "opencode-go", baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 1.4, - output: 4.4, - cacheRead: 0.26, + input: 4, + output: 20, + cacheRead: 0.2, cacheWrite: 0, }, - contextWindow: 202752, - maxTokens: 32768, - } satisfies Model<"openai-completions">, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, "glm-5.2": { id: "glm-5.2", name: "GLM-5.2", @@ -171,9 +167,26 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, - "grok-4.6": { - id: "grok-4.6", - name: "Grok 4.6", + "gpt-6-luna": { + id: "gpt-6-luna", + name: "GPT-6 Luna", + api: "openai-responses", + provider: "opencode-go", + baseUrl: "https://opencode.ai/zen/go/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "grok-4.7": { + id: "grok-4.7", + name: "Grok 4.7", api: "openai-responses", provider: "opencode-go", baseUrl: "https://opencode.ai/zen/go/v1", @@ -224,25 +237,6 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1024000, maxTokens: 64000, } satisfies Model<"openai-completions">, - "kimi-k2.6": { - id: "kimi-k2.6", - name: "Kimi K2.6", - api: "openai-completions", - provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"thinkingFormat":"deepseek","supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsLongCacheRetention":false}, - reasoning: true, - thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, - input: ["text", "image"], - cost: { - input: 0.95, - output: 4, - cacheRead: 0.16, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 65536, - } satisfies Model<"openai-completions">, "kimi-k2.7-code": { id: "kimi-k2.7-code", name: "Kimi K2.7 Code", @@ -267,8 +261,9 @@ export const OPENCODE_GO_MODELS = { api: "openai-completions", provider: "opencode-go", baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"thinkingFormat":"deepseek","supportsReasoningEffort":false,"maxTokensField":"max_tokens","supportsLongCacheRetention":false}, reasoning: true, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, input: ["text", "image"], cost: { input: 3, @@ -297,6 +292,24 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, + "longcat-2.5-preview-free": { + id: "longcat-2.5-preview-free", + name: "LongCat 2.5 Preview Free", + 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, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "mimo-v2.5": { id: "mimo-v2.5", name: "MiMo V2.5", @@ -333,22 +346,40 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1048576, maxTokens: 128000, } satisfies Model<"openai-completions">, - "minimax-m2.7": { - id: "minimax-m2.7", - name: "MiniMax-M2.7", + "mimo-v2.6-flash": { + id: "mimo-v2.6-flash", + name: "MiMo-V2.6-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"], + input: ["text", "image"], cost: { - input: 0.3, - output: 1.2, - cacheRead: 0.06, + input: 0.14, + output: 0.28, + cacheRead: 0.0028, cacheWrite: 0, }, - contextWindow: 204800, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "mimo-v2.6-pro": { + id: "mimo-v2.6-pro", + name: "MiMo-V2.6-Pro", + 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.435, + output: 0.87, + cacheRead: 0.003625, + cacheWrite: 0, + }, + contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, "minimax-m3": { @@ -402,49 +433,12 @@ export const OPENCODE_GO_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-responses">, - "qwen3.6-plus": { - id: "qwen3.6-plus", - name: "Qwen3.6 Plus", - api: "openai-completions", - provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"thinkingFormat":"qwen","maxTokensField":"max_tokens"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.5, - output: 3, - cacheRead: 0.05, - cacheWrite: 0.625, - }, - contextWindow: 1000000, - maxTokens: 65536, - } satisfies Model<"openai-completions">, - "qwen3.7-max": { - id: "qwen3.7-max", - name: "Qwen3.7 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"], - cost: { - input: 2.5, - output: 7.5, - cacheRead: 0.5, - cacheWrite: 3.125, - }, - contextWindow: 1000000, - maxTokens: 65536, - } satisfies Model<"openai-completions">, "qwen3.7-plus": { id: "qwen3.7-plus", name: "Qwen3.7 Plus", - api: "openai-completions", + api: "anthropic-messages", provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + baseUrl: "https://opencode.ai/zen/go", reasoning: true, input: ["text", "image"], cost: { @@ -455,7 +449,7 @@ export const OPENCODE_GO_MODELS = { }, contextWindow: 1000000, maxTokens: 65536, - } satisfies Model<"openai-completions">, + } satisfies Model<"anthropic-messages">, "qwen3.8-flash": { id: "qwen3.8-flash", name: "Qwen3.8 Flash", @@ -476,10 +470,9 @@ export const OPENCODE_GO_MODELS = { "qwen3.8-max": { id: "qwen3.8-max", name: "Qwen3.8 Max", - api: "openai-completions", + api: "anthropic-messages", provider: "opencode-go", - baseUrl: "https://opencode.ai/zen/go/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + baseUrl: "https://opencode.ai/zen/go", reasoning: true, input: ["text", "image"], cost: { @@ -490,5 +483,41 @@ export const OPENCODE_GO_MODELS = { }, contextWindow: 1000000, maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "space-bunny": { + id: "space-bunny", + name: "Space Bunny", + 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.6, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 524288, + } satisfies Model<"openai-completions">, + "step-5-preview": { + id: "step-5-preview", + name: "Step 5 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", "image"], + cost: { + input: 1, + output: 2.7, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65536, } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/opencode-go.ts b/packages/ai/src/providers/opencode-go.ts index 0831ef3..b9b875d 100644 --- a/packages/ai/src/providers/opencode-go.ts +++ b/packages/ai/src/providers/opencode-go.ts @@ -1,11 +1,14 @@ import { anthropicMessagesApi } from "../api/anthropic-messages.lazy.ts"; +import { googleGenerativeAIApi } from "../api/google-generative-ai.lazy.ts"; import { openAICompletionsApi } from "../api/openai-completions.lazy.ts"; import { openAIResponsesApi } from "../api/openai-responses.lazy.ts"; import { envApiKeyAuth } from "../auth/helpers.ts"; import { createProvider, type Provider } from "../models.ts"; import { OPENCODE_GO_MODELS } from "./opencode-go.models.ts"; -export function opencodeGoProvider(): Provider<"anthropic-messages" | "openai-completions" | "openai-responses"> { +export function opencodeGoProvider(): Provider< + "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses" +> { return createProvider({ id: "opencode-go", name: "OpenCode Zen Go", @@ -13,6 +16,7 @@ export function opencodeGoProvider(): Provider<"anthropic-messages" | "openai-co models: Object.values(OPENCODE_GO_MODELS), api: { "anthropic-messages": anthropicMessagesApi(), + "google-generative-ai": googleGenerativeAIApi(), "openai-completions": openAICompletionsApi(), "openai-responses": openAIResponsesApi(), }, diff --git a/packages/ai/src/providers/opencode.models.ts b/packages/ai/src/providers/opencode.models.ts index a20bf16..fc0e4b9 100644 --- a/packages/ai/src/providers/opencode.models.ts +++ b/packages/ai/src/providers/opencode.models.ts @@ -4,6 +4,24 @@ import type { Model } from "../types.ts"; export const OPENCODE_MODELS = { + "beam-free": { + id: "beam-free", + name: "Beam 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: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "big-pickle": { id: "big-pickle", name: "Big Pickle", @@ -77,6 +95,23 @@ export const OPENCODE_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "claude-haiku-5-5": { + id: "claude-haiku-5-5", + name: "Claude Haiku 5.5", + api: "anthropic-messages", + provider: "opencode", + baseUrl: "https://opencode.ai/zen", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-opus-4-5": { id: "claude-opus-4-5", name: "Claude Opus 4.5", @@ -168,6 +203,23 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-opus-5-5": { + id: "claude-opus-5-5", + name: "Claude Opus 5.5", + api: "anthropic-messages", + provider: "opencode", + baseUrl: "https://opencode.ai/zen", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "claude-sonnet-4": { id: "claude-sonnet-4", name: "Claude Sonnet 4", @@ -240,6 +292,25 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "claude-sonnet-5-5": { + id: "claude-sonnet-5-5", + name: "Claude Sonnet 5.5", + api: "anthropic-messages", + provider: "opencode", + baseUrl: "https://opencode.ai/zen", + compat: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "deepseek-v4-flash": { id: "deepseek-v4-flash", name: "DeepSeek V4 Flash", @@ -297,6 +368,44 @@ export const OPENCODE_MODELS = { 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", + 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", "image"], + cost: { + input: 0.3, + output: 1.2, + cacheRead: 0.006, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 384000, + } satisfies Model<"openai-completions">, + "deepseek-v4.1-flash-free": { + id: "deepseek-v4.1-flash-free", + name: "DeepSeek V4.1 Flash Free", + 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", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 200000, + maxTokens: 32000, + } satisfies Model<"openai-completions">, "gemini-3-flash": { id: "gemini-3-flash", name: "Gemini 3 Flash", @@ -423,6 +532,23 @@ export const OPENCODE_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"google-generative-ai">, + "gemini-4-argon": { + id: "gemini-4-argon", + name: "Gemini 4 Argon", + api: "google-generative-ai", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"google-generative-ai">, "glm-5": { id: "glm-5", name: "GLM-5", @@ -513,6 +639,24 @@ export const OPENCODE_MODELS = { contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, + "glm-5.3-flash-free": { + id: "glm-5.3-flash-free", + name: "GLM-5.3-Flash Free", + 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, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 200000, + maxTokens: 32000, + } satisfies Model<"openai-completions">, "gpt-5": { id: "gpt-5", name: "GPT-5", @@ -821,7 +965,7 @@ export const OPENCODE_MODELS = { } satisfies Model<"openai-responses">, "gpt-5.6-sol": { id: "gpt-5.6-sol", - name: "GPT-5.6 Sol (50% Off)", + name: "GPT-5.6 Sol", api: "openai-responses", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", @@ -829,10 +973,10 @@ export const OPENCODE_MODELS = { thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2, - output: 10, - cacheRead: 0.2, - cacheWrite: 2.5, + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -872,6 +1016,57 @@ export const OPENCODE_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-responses">, + "gpt-6-luna": { + id: "gpt-6-luna", + name: "GPT-6 Luna", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6-sol": { + id: "gpt-6-sol", + name: "GPT-6 Sol", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, + "gpt-6.1-sol": { + id: "gpt-6.1-sol", + name: "GPT-6.1 Sol", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-responses">, "grok-4.5": { id: "grok-4.5", name: "Grok 4.5", @@ -906,6 +1101,23 @@ export const OPENCODE_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"openai-responses">, + "grok-4.7": { + id: "grok-4.7", + name: "Grok 4.7", + api: "openai-responses", + provider: "opencode", + baseUrl: "https://opencode.ai/zen/v1", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 6, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"openai-responses">, "grok-build-0.1": { id: "grok-build-0.1", name: "Grok Build 0.1", @@ -985,7 +1197,7 @@ export const OPENCODE_MODELS = { api: "openai-completions", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"thinkingFormat":"deepseek","supportsReasoningEffort":false,"maxTokensField":"max_tokens"}, reasoning: true, input: ["text", "image"], cost: { @@ -997,27 +1209,27 @@ export const OPENCODE_MODELS = { 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", + "longcat-2.5-preview-free": { + id: "longcat-2.5-preview-free", + name: "LongCat 2.5 Preview Free", api: "openai-completions", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", compat: {"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 32768, + contextWindow: 1000000, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "mimo-v2.5-free": { - id: "mimo-v2.5-free", - name: "MiMo V2.5 Free", + "mimo-v2.6-flash-free": { + id: "mimo-v2.6-flash-free", + name: "MiMo-V2.6-Flash Free", api: "openai-completions", provider: "opencode", baseUrl: "https://opencode.ai/zen/v1", @@ -1087,35 +1299,36 @@ 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", + "mistral-large-4": { + id: "mistral-large-4", + name: "Mistral Large 4", + 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: 1.25, - output: 4.25, - cacheRead: 0.15, + input: 0.68, + output: 2.09, + cacheRead: 0.07, 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", + contextWindow: 524288, + maxTokens: 262144, + } 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: 0, - output: 0, - cacheRead: 0, + input: 1.25, + output: 4.25, + cacheRead: 0.15, cacheWrite: 0, }, contextWindow: 1048576, @@ -1138,23 +1351,6 @@ export const OPENCODE_MODELS = { 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", @@ -1191,6 +1387,24 @@ export const OPENCODE_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"openai-completions">, + "nemotron-3.5-super-vl-free": { + id: "nemotron-3.5-super-vl-free", + name: "Nemotron 3.5 Super VL Free", + 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, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "qwen3.5-plus": { id: "qwen3.5-plus", name: "Qwen3.5 Plus", @@ -1225,4 +1439,57 @@ export const OPENCODE_MODELS = { contextWindow: 262144, maxTokens: 65536, } satisfies Model<"anthropic-messages">, + "qwen3.8-flash": { + id: "qwen3.8-flash", + name: "Qwen3.8 Flash", + api: "anthropic-messages", + provider: "opencode", + baseUrl: "https://opencode.ai/zen", + 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", + baseUrl: "https://opencode.ai/zen/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: 262144, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "space-bunny-free": { + id: "space-bunny-free", + name: "Space Bunny Free", + 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, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 524288, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/openrouter.models.ts b/packages/ai/src/providers/openrouter.models.ts index 8e1ced7..b06b5d6 100644 --- a/packages/ai/src/providers/openrouter.models.ts +++ b/packages/ai/src/providers/openrouter.models.ts @@ -58,6 +58,42 @@ export const OPENROUTER_MODELS = { contextWindow: 131072, maxTokens: 32768, } satisfies Model<"openai-completions">, + "aion-labs/aion-3.5": { + id: "aion-labs/aion-3.5", + name: "AionLabs: Aion 3.5", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 3, + output: 6, + cacheRead: 0.75, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "aion-labs/aion-3.5-mini": { + id: "aion-labs/aion-3.5-mini", + name: "AionLabs: Aion 3.5 Mini", + 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: 1.4, + cacheRead: 0.18, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "amazon/nova-2-lite-v1": { id: "amazon/nova-2-lite-v1", name: "Amazon: Nova 2 Lite", @@ -148,24 +184,6 @@ export const OPENROUTER_MODELS = { contextWindow: 300000, maxTokens: 5120, } satisfies Model<"openai-completions">, - "anthropic/claude-3-haiku": { - id: "anthropic/claude-3-haiku", - name: "Anthropic: Claude 3 Haiku", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.25, - output: 1.25, - cacheRead: 0.03, - cacheWrite: 0.3, - }, - contextWindow: 200000, - maxTokens: 4096, - } satisfies Model<"openai-completions">, "anthropic/claude-fable-5": { id: "anthropic/claude-fable-5", name: "Anthropic: Claude Fable 5", @@ -274,9 +292,9 @@ export const OPENROUTER_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"openai-completions">, - "anthropic/claude-opus-4": { - id: "anthropic/claude-opus-4", - name: "Anthropic: Claude Opus 4", + "anthropic/claude-haiku-5.5": { + id: "anthropic/claude-haiku-5.5", + name: "Anthropic: Claude Haiku 5.5", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -284,13 +302,31 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 15, - output: 75, - cacheRead: 1.5, - cacheWrite: 18.75, + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, }, - contextWindow: 200000, - maxTokens: 32000, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "anthropic/claude-haiku-5.5:batch": { + id: "anthropic/claude-haiku-5.5:batch", + name: "Anthropic: Claude Haiku 5.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.05, + output: 0.25, + cacheRead: 0.005, + cacheWrite: 0.0625, + }, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"openai-completions">, "anthropic/claude-opus-4.1": { id: "anthropic/claude-opus-4.1", @@ -496,9 +532,9 @@ export const OPENROUTER_MODELS = { 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)", + "anthropic/claude-opus-5.5": { + id: "anthropic/claude-opus-5.5", + name: "Anthropic: Claude Opus 5.5", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -506,17 +542,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2.5, - output: 12.5, - cacheRead: 0.25, - cacheWrite: 3.125, + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, }, contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "anthropic/claude-sonnet-4": { - id: "anthropic/claude-sonnet-4", - name: "Anthropic: Claude Sonnet 4", + "anthropic/claude-opus-5.5:batch": { + id: "anthropic/claude-opus-5.5:batch", + name: "Anthropic: Claude Opus 5.5 (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -524,13 +560,31 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, }, - contextWindow: 200000, - maxTokens: 64000, + 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, } satisfies Model<"openai-completions">, "anthropic/claude-sonnet-4.5": { id: "anthropic/claude-sonnet-4.5", @@ -625,6 +679,44 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "anthropic/claude-sonnet-5.5": { + id: "anthropic/claude-sonnet-5.5", + name: "Anthropic: Claude Sonnet 5.5", + 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: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "anthropic/claude-sonnet-5.5:batch": { + id: "anthropic/claude-sonnet-5.5:batch", + name: "Anthropic: Claude Sonnet 5.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.05, + cacheWrite: 1.25, + }, + 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)", @@ -788,6 +880,24 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 131072, } satisfies Model<"openai-completions">, + "cohere/command-a-plus": { + id: "cohere/command-a-plus", + name: "Cohere: Command A+", + 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.5, + cacheRead: 0.15, + cacheWrite: 0, + }, + contextWindow: 192000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "cohere/command-r-08-2024": { id: "cohere/command-r-08-2024", name: "Cohere: Command R (08-2024)", @@ -852,13 +962,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.2574, - output: 1.0287, + input: 0.32, + output: 0.89, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 128000, - maxTokens: 16000, + contextWindow: 163840, + maxTokens: 16384, } satisfies Model<"openai-completions">, "deepseek/deepseek-chat-v3-0324": { id: "deepseek/deepseek-chat-v3-0324", @@ -870,13 +980,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.25, - output: 1, - cacheRead: 0, + input: 0.29, + output: 1.14, + cacheRead: 0.11, cacheWrite: 0, }, - contextWindow: 163840, - maxTokens: 147456, + contextWindow: 128000, + maxTokens: 115200, } satisfies Model<"openai-completions">, "deepseek/deepseek-chat-v3.1": { id: "deepseek/deepseek-chat-v3.1", @@ -944,11 +1054,11 @@ export const OPENROUTER_MODELS = { cost: { input: 0.27, output: 1, - cacheRead: 0.135, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 163840, + maxTokens: 147456, } satisfies Model<"openai-completions">, "deepseek/deepseek-v3.2": { id: "deepseek/deepseek-v3.2", @@ -960,12 +1070,12 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.269, - output: 0.4, - cacheRead: 0.1345, + input: 0.28, + output: 0.42, + cacheRead: 0.028, cacheWrite: 0, }, - contextWindow: 163840, + contextWindow: 131072, maxTokens: 65536, } satisfies Model<"openai-completions">, "deepseek/deepseek-v3.2-exp": { @@ -984,7 +1094,7 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 163840, - maxTokens: 65536, + maxTokens: 147456, } satisfies Model<"openai-completions">, "deepseek/deepseek-v4-flash": { id: "deepseek/deepseek-v4-flash", @@ -997,13 +1107,13 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, input: ["text"], cost: { - input: 0.088606, - output: 0.177212, - cacheRead: 0.017721, + input: 0.091, + output: 0.182, + cacheRead: 0.0182, cacheWrite: 0, }, - contextWindow: 1024000, - maxTokens: 384000, + contextWindow: 1048575, + maxTokens: 943717, } satisfies Model<"openai-completions">, "deepseek/deepseek-v4-flash-0731": { id: "deepseek/deepseek-v4-flash-0731", @@ -1016,28 +1126,9 @@ export const OPENROUTER_MODELS = { 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, + input: 0.0049, + output: 0.45, + cacheRead: 0.0049, cacheWrite: 0, }, contextWindow: 1048576, @@ -1054,32 +1145,13 @@ export const OPENROUTER_MODELS = { 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, + input: 0.2156, + output: 0.6468, + cacheRead: 0.00686, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 943718, + maxTokens: 262144, } satisfies Model<"openai-completions">, "deepseek/deepseek-v4-pro": { id: "deepseek/deepseek-v4-pro", @@ -1092,13 +1164,13 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","max":null,"xhigh":"xhigh"}, input: ["text"], cost: { - input: 1.6, - output: 3.2, - cacheRead: 0.135, + input: 0.2088, + output: 0.4176, + cacheRead: 0.0174, cacheWrite: 0, }, - contextWindow: 1048576, - maxTokens: 393216, + contextWindow: 1024000, + maxTokens: 384000, } satisfies Model<"openai-completions">, "deepseek/deepseek-v4-pro-0813": { id: "deepseek/deepseek-v4-pro-0813", @@ -1111,36 +1183,36 @@ export const OPENROUTER_MODELS = { 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, + input: 0.66, + output: 1.98, + cacheRead: 0.022, 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)", + "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"], + input: ["text", "image"], cost: { - input: 0.66, - output: 1.98, - cacheRead: 0.022, + input: 0.0648, + output: 0.144, + cacheRead: 0.0016, 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", + "deepseek/deepseek-v4.1-flash-1017": { + id: "deepseek/deepseek-v4.1-flash-1017", + name: "DeepSeek: DeepSeek V4.1 Flash 1017", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1155,6 +1227,25 @@ export const OPENROUTER_MODELS = { cacheWrite: 0, }, contextWindow: 1048576, + maxTokens: 393216, + } satisfies Model<"openai-completions">, + "deepseek/deepseek-v4.1-flash:batch": { + id: "deepseek/deepseek-v4.1-flash:batch", + name: "DeepSeek: DeepSeek V4.1 Flash (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.05, + output: 0.15, + cacheRead: 0.004, + cacheWrite: 0, + }, + contextWindow: 1048576, maxTokens: 384000, } satisfies Model<"openai-completions">, "dots-studio/dots-3-note-preview:free": { @@ -1175,9 +1266,9 @@ export const OPENROUTER_MODELS = { 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", + "elorian/glimpse": { + id: "elorian/glimpse", + name: "Elorian: Glimpse", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1185,13 +1276,49 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.3, - output: 2.5, - cacheRead: 0.03, - cacheWrite: 0.083333, - }, - contextWindow: 1048576, - maxTokens: 65535, + input: 0.6, + output: 3, + cacheRead: 0.06, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 256000, + } satisfies Model<"openai-completions">, + "fireworks/ember-1": { + id: "fireworks/ember-1", + name: "Fireworks: Ember-1", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 3, + output: 15, + cacheRead: 0.3, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "google/gemini-2.5-flash": { + id: "google/gemini-2.5-flash", + name: "Google: Gemini 2.5 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.3, + output: 2.5, + cacheRead: 0.03, + cacheWrite: 0.083333, + }, + contextWindow: 1048576, + maxTokens: 65535, } satisfies Model<"openai-completions">, "google/gemini-2.5-flash-lite": { id: "google/gemini-2.5-flash-lite", @@ -1617,9 +1744,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.75, - output: 3.75, - cacheRead: 0.075, + input: 0.825, + output: 4.125, + cacheRead: 0.0825, cacheWrite: 0.041667, }, contextWindow: 1048576, @@ -1643,6 +1770,60 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 65536, } satisfies Model<"openai-completions">, + "google/gemini-4-argon": { + id: "google/gemini-4-argon", + name: "Google: Gemini 4 Argon", + 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.1, + cacheWrite: 0.1875, + }, + contextWindow: 1048576, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "google/gemini-4-argon:batch": { + id: "google/gemini-4-argon:batch", + name: "Google: Gemini 4 Argon (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: 5, + cacheRead: 0.05, + cacheWrite: 0.1875, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, + "google/gemini-nano-banana-2.1": { + id: "google/gemini-nano-banana-2.1", + name: "Google: Nano Banana 2.1", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 65536, + maxTokens: 58982, + } satisfies Model<"openai-completions">, "google/gemma-3-12b-it": { id: "google/gemma-3-12b-it", name: "Google: Gemma 3 12B", @@ -1672,7 +1853,7 @@ export const OPENROUTER_MODELS = { input: ["text", "image"], cost: { input: 0.08, - output: 0.45, + output: 0.35, cacheRead: 0.04, cacheWrite: 0, }, @@ -1689,9 +1870,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.09, - output: 0.3, - cacheRead: 0.05, + input: 0.0675, + output: 0.225, + cacheRead: 0.0375, cacheWrite: 0, }, contextWindow: 262144, @@ -1725,9 +1906,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.09, - output: 0.34, - cacheRead: 0.05, + input: 0.2, + output: 0.4, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, @@ -1825,60 +2006,6 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 32768, } satisfies Model<"openai-completions">, - "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: true, - input: ["text"], - cost: { - input: 0.06, - output: 0.18, - cacheRead: 0.012, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 235929, - } satisfies Model<"openai-completions">, - "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", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 32768, - } satisfies Model<"openai-completions">, - "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: true, - input: ["text"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - 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", @@ -1897,63 +2024,45 @@ export const OPENROUTER_MODELS = { 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)", + "inclusionai/ling-3.1-flash": { + id: "inclusionai/ling-3.1-flash", + name: "inclusionAI: Ling 3.1 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, - 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", - name: "Kwaipilot: KAT-Coder-Pro V2", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, input: ["text"], cost: { - input: 0.3, - output: 1.2, - cacheRead: 0.06, + input: 0.075, + output: 0.225, + cacheRead: 0.015, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 144000, + maxTokens: 235929, } satisfies Model<"openai-completions">, - "kwaipilot/kat-coder-pro-v2.5": { - id: "kwaipilot/kat-coder-pro-v2.5", - name: "Kwaipilot: KAT-Coder-Pro V2.5", + "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: false, + reasoning: true, input: ["text"], cost: { - input: 0.74, - output: 2.96, - cacheRead: 0.15, + input: 0, + output: 0, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 235929, + contextWindow: 65536, + maxTokens: 8192, } 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)", + "liquid/lfm-2.5-24b-a2b": { + id: "liquid/lfm-2.5-24b-a2b", + name: "LiquidAI: LFM2.5-24B-A2B", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -1961,12 +2070,12 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.05, + output: 0.7, + cacheRead: 0.025, cacheWrite: 0, }, - contextWindow: 65536, + contextWindow: 128000, maxTokens: 8192, } satisfies Model<"openai-completions">, "meituan/longcat-2.0": { @@ -2053,7 +2162,7 @@ export const OPENROUTER_MODELS = { cost: { input: 0.1875, output: 0.6525, - cacheRead: 0, + cacheRead: 0.05, cacheWrite: 0, }, contextWindow: 128000, @@ -2087,31 +2196,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.35, - output: 1.5, + input: 0.3, + output: 1.2, 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, + maxTokens: 16384, } satisfies Model<"openai-completions">, "meta/muse-spark-1.1": { id: "meta/muse-spark-1.1", @@ -2203,6 +2294,42 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 943718, } satisfies Model<"openai-completions">, + "meta/muse-spark-open": { + id: "meta/muse-spark-open", + name: "Meta: Muse Spark Open", + 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-wonder": { + id: "meta/muse-wonder", + name: "Meta: Muse Wonder", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, "minimax/minimax-m1": { id: "minimax/minimax-m1", name: "MiniMax: MiniMax M1", @@ -2213,7 +2340,7 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.4, + input: 0.55, output: 2.2, cacheRead: 0, cacheWrite: 0, @@ -2268,12 +2395,12 @@ export const OPENROUTER_MODELS = { input: ["text"], cost: { input: 0.27, - output: 1.08, - cacheRead: 0.027, + output: 0.95, + cacheRead: 0.03, cacheWrite: 0, }, - contextWindow: 200000, - maxTokens: 128000, + contextWindow: 198000, + maxTokens: 32768, } satisfies Model<"openai-completions">, "minimax/minimax-m2.7": { id: "minimax/minimax-m2.7", @@ -2311,24 +2438,6 @@ 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", @@ -2527,6 +2636,24 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 209715, } satisfies Model<"openai-completions">, + "mistralai/mistral-large-4-0": { + id: "mistralai/mistral-large-4-0", + name: "Mistral: Mistral Large 4", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.68, + output: 2.09, + cacheRead: 0.07, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 262144, + } satisfies Model<"openai-completions">, "mistralai/mistral-medium-3": { id: "mistralai/mistral-medium-3", name: "Mistral: Mistral Medium 3", @@ -2627,7 +2754,7 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.019, + input: 0.029, output: 0.03, cacheRead: 0, cacheWrite: 0, @@ -2689,6 +2816,24 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 209715, } satisfies Model<"openai-completions">, + "mistralai/mistral-small-3.1-24b-instruct": { + id: "mistralai/mistral-small-3.1-24b-instruct", + name: "Mistral: Mistral Small 3.1 24B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.351, + output: 0.555, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 102400, + } satisfies Model<"openai-completions">, "mistralai/mistral-small-3.2-24b-instruct": { id: "mistralai/mistral-small-3.2-24b-instruct", name: "Mistral: Mistral Small 3.2 24B", @@ -2825,9 +2970,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.95, - output: 4, - cacheRead: 0.16, + input: 0.65, + output: 3.41, + cacheRead: 0.15, cacheWrite: 0, }, contextWindow: 262144, @@ -2843,8 +2988,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.7062, - output: 3.21, + input: 0.6712, + output: 3.35, cacheRead: 0.18, cacheWrite: 0, }, @@ -2861,9 +3006,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2.648138, - output: 13.282724, - cacheRead: 0.302644, + input: 0.304, + output: 11.936, + cacheRead: 0.21, cacheWrite: 0, }, contextWindow: 1048576, @@ -2879,35 +3024,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, + input: 2.28, + output: 11.4, + cacheRead: 0.228, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 943718, - } satisfies Model<"openai-completions">, - "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", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0, - output: 0, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 235929, + maxTokens: 16384, } satisfies Model<"openai-completions">, - "nex-agi/nex-n2.5-pro:free": { - id: "nex-agi/nex-n2.5-pro:free", - name: "Nex AGI: Nex-N2.5-Pro (free)", + "nex-agi/nex-n2.5-pro": { + id: "nex-agi/nex-n2.5-pro", + name: "Nex AGI: Nex-N2.5-Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -2915,9 +3042,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.075, + output: 0.25, + cacheRead: 0.015, cacheWrite: 0, }, contextWindow: 262144, @@ -2933,9 +3060,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.05, - output: 0.2, - cacheRead: 0.03, + input: 0.06, + output: 0.24, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, @@ -3005,13 +3132,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.625, - output: 3.125, - cacheRead: 0.1875, + input: 0.6, + output: 2.4, + cacheRead: 0.12, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 32768, + contextWindow: 202800, + maxTokens: 182520, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-ultra-550b-a55b:free": { id: "nvidia/nemotron-3-ultra-550b-a55b:free", @@ -3041,13 +3168,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.08, + input: 0.07, output: 0.2, cacheRead: 0.04, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 131072, + maxTokens: 235929, } satisfies Model<"openai-completions">, "nvidia/nemotron-3.5-lightning:free": { id: "nvidia/nemotron-3.5-lightning:free", @@ -3067,6 +3194,42 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 65536, } satisfies Model<"openai-completions">, + "nvidia/nemotron-3.5-super-vl": { + id: "nvidia/nemotron-3.5-super-vl", + name: "NVIDIA: Nemotron 3.5 Super 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.1, + output: 0.4, + cacheRead: 0.08, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 235929, + } satisfies Model<"openai-completions">, + "nvidia/nemotron-3.5-super-vl:free": { + id: "nvidia/nemotron-3.5-super-vl:free", + name: "NVIDIA: Nemotron 3.5 Super 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: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "openai/gpt-3.5-turbo": { id: "openai/gpt-3.5-turbo", name: "OpenAI: GPT-3.5 Turbo", @@ -4109,10 +4272,10 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2, - output: 10, - cacheRead: 0.2, - cacheWrite: 2.5, + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -4128,10 +4291,10 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 2, - output: 10, - cacheRead: 0.2, - cacheWrite: 2.5, + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -4147,10 +4310,10 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, @@ -4166,10 +4329,10 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, contextWindow: 1050000, maxTokens: 128000, @@ -4340,135 +4503,135 @@ export const OPENROUTER_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-audio": { - id: "openai/gpt-audio", - name: "OpenAI: GPT Audio", + "openai/gpt-6-luna": { + id: "openai/gpt-6-luna", + name: "OpenAI: GPT-6 Luna", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], + reasoning: true, + input: ["text", "image"], cost: { - input: 2.5, - output: 10, - cacheRead: 0, - cacheWrite: 0, + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-audio-mini": { - id: "openai/gpt-audio-mini", - name: "OpenAI: GPT Audio Mini", + "openai/gpt-6-luna-pro": { + id: "openai/gpt-6-luna-pro", + name: "OpenAI: GPT-6 Luna Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], + reasoning: true, + input: ["text", "image"], cost: { - input: 0.6, - output: 2.4, - cacheRead: 0, - cacheWrite: 0, + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, }, - contextWindow: 128000, - maxTokens: 16384, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-chat-latest": { - id: "openai/gpt-chat-latest", - name: "OpenAI: GPT Chat Latest", + "openai/gpt-6-luna-pro:batch": { + id: "openai/gpt-6-luna-pro:batch", + name: "OpenAI: GPT-6 Luna Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, - reasoning: false, + reasoning: true, input: ["text", "image"], cost: { - input: 5, - output: 30, - cacheRead: 0.5, - cacheWrite: 0, + input: 0.05, + output: 0.25, + cacheRead: 0.005, + cacheWrite: 0.0625, }, - contextWindow: 400000, + contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-oss-120b": { - id: "openai/gpt-oss-120b", - name: "OpenAI: gpt-oss-120b", + "openai/gpt-6-luna:batch": { + id: "openai/gpt-6-luna:batch", + name: "OpenAI: GPT-6 Luna (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.037, - output: 0.17, - cacheRead: 0, - cacheWrite: 0, + input: 0.05, + output: 0.25, + cacheRead: 0.005, + cacheWrite: 0.0625, }, - contextWindow: 131072, - maxTokens: 117964, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-oss-120b:batch": { - id: "openai/gpt-oss-120b:batch", - name: "OpenAI: gpt-oss-120b (batch)", + "openai/gpt-6-sol": { + id: "openai/gpt-6-sol", + name: "OpenAI: GPT-6 Sol", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.15, - output: 0.6, - cacheRead: 0, - cacheWrite: 0, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, - contextWindow: 131072, - maxTokens: 117964, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-oss-20b": { - id: "openai/gpt-oss-20b", - name: "OpenAI: gpt-oss-20b", + "openai/gpt-6-sol-pro": { + id: "openai/gpt-6-sol-pro", + name: "OpenAI: GPT-6 Sol Pro", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.03, - output: 0.13, - cacheRead: 0.03, - cacheWrite: 0, + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, }, - contextWindow: 131072, - maxTokens: 117964, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/gpt-oss-safeguard-20b": { - id: "openai/gpt-oss-safeguard-20b", - name: "OpenAI: gpt-oss-safeguard-20b", + "openai/gpt-6-sol-pro:batch": { + id: "openai/gpt-6-sol-pro:batch", + name: "OpenAI: GPT-6 Sol Pro (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", compat: {"thinkingFormat":"openrouter"}, reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { - input: 0.075, - output: 0.3, - cacheRead: 0.0375, - cacheWrite: 0, + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, }, - contextWindow: 131072, - maxTokens: 65536, + contextWindow: 1050000, + maxTokens: 128000, } satisfies Model<"openai-completions">, - "openai/o1": { - id: "openai/o1", - name: "OpenAI: o1", + "openai/gpt-6-sol:batch": { + id: "openai/gpt-6-sol:batch", + name: "OpenAI: GPT-6 Sol (batch)", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -4476,13 +4639,247 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 15, - output: 60, - cacheRead: 7.5, - cacheWrite: 0, + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, }, - contextWindow: 200000, - maxTokens: 100000, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-6.1-sol": { + id: "openai/gpt-6.1-sol", + name: "OpenAI: GPT-6.1 Sol", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-6.1-sol-pro": { + id: "openai/gpt-6.1-sol-pro", + name: "OpenAI: GPT-6.1 Sol Pro", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-6.1-sol-pro:batch": { + id: "openai/gpt-6.1-sol-pro:batch", + name: "OpenAI: GPT-6.1 Sol Pro (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 5, + cacheRead: 0.05, + cacheWrite: 1.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-6.1-sol:batch": { + id: "openai/gpt-6.1-sol:batch", + name: "OpenAI: GPT-6.1 Sol (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 5, + cacheRead: 0.05, + cacheWrite: 1.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-audio": { + id: "openai/gpt-audio", + name: "OpenAI: GPT Audio", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text"], + cost: { + input: 2.5, + output: 10, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"openai-completions">, + "openai/gpt-audio-mini": { + id: "openai/gpt-audio-mini", + name: "OpenAI: GPT Audio Mini", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text"], + cost: { + input: 0.6, + output: 2.4, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"openai-completions">, + "openai/gpt-chat-latest": { + id: "openai/gpt-chat-latest", + name: "OpenAI: GPT Chat Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 5, + output: 30, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"openai-completions">, + "openai/gpt-oss-120b": { + id: "openai/gpt-oss-120b", + name: "OpenAI: gpt-oss-120b", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.15, + output: 0.6, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "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", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.0296, + output: 0.136, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 117964, + } satisfies Model<"openai-completions">, + "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", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.018, + output: 0.09, + cacheRead: 0.009, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 32768, + } satisfies Model<"openai-completions">, + "openai/gpt-oss-20b:batch": { + id: "openai/gpt-oss-20b:batch", + name: "OpenAI: gpt-oss-20b (batch)", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.024, + output: 0.112, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 117964, + } satisfies Model<"openai-completions">, + "openai/gpt-oss-safeguard-20b": { + id: "openai/gpt-oss-safeguard-20b", + name: "OpenAI: gpt-oss-safeguard-20b", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 0.075, + output: 0.3, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 131072, + maxTokens: 65536, + } satisfies Model<"openai-completions">, + "openai/o1": { + id: "openai/o1", + name: "OpenAI: o1", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 15, + output: 60, + cacheRead: 7.5, + cacheWrite: 0, + }, + contextWindow: 200000, + maxTokens: 100000, } satisfies Model<"openai-completions">, "openai/o3": { id: "openai/o3", @@ -4718,6 +5115,42 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 30000, } satisfies Model<"openai-completions">, + "openrouter/pareto-code": { + id: "openrouter/pareto-code", + name: "Pareto Code Router", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: -1000000, + output: -1000000, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 2000000, + maxTokens: 4096, + } satisfies Model<"openai-completions">, + "perceptron/perceptron-mk1.5": { + id: "perceptron/perceptron-mk1.5", + name: "Perceptron: Perceptron Mk1.5", + 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.5, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 36864, + maxTokens: 8192, + } satisfies Model<"openai-completions">, "poolside/laguna-s-2.1": { id: "poolside/laguna-s-2.1", name: "Poolside: Laguna S 2.1", @@ -4790,6 +5223,24 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 32768, } satisfies Model<"openai-completions">, + "prism-ml/ternary-bonsai-2-27b": { + id: "prism-ml/ternary-bonsai-2-27b", + name: "PrismML: Ternary Bonsai 2 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.075, + output: 0.5, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 32768, + } satisfies Model<"openai-completions">, "qwen/qwen-2.5-72b-instruct": { id: "qwen/qwen-2.5-72b-instruct", name: "Qwen2.5 72B Instruct", @@ -4844,24 +5295,6 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 32768, } satisfies Model<"openai-completions">, - "qwen/qwen-plus-2025-07-28": { - id: "qwen/qwen-plus-2025-07-28", - name: "Qwen: Qwen Plus 0728", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.26, - output: 0.78, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 1000000, - maxTokens: 32768, - } satisfies Model<"openai-completions">, "qwen/qwen3-14b": { id: "qwen/qwen3-14b", name: "Qwen: Qwen3 14B", @@ -4880,24 +5313,6 @@ export const OPENROUTER_MODELS = { contextWindow: 40960, maxTokens: 16384, } satisfies Model<"openai-completions">, - "qwen/qwen3-235b-a22b": { - id: "qwen/qwen3-235b-a22b", - name: "Qwen: Qwen3 235B A22B", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.455, - output: 1.82, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 8192, - } satisfies Model<"openai-completions">, "qwen/qwen3-235b-a22b-2507": { id: "qwen/qwen3-235b-a22b-2507", name: "Qwen: Qwen3 235B A22B Instruct 2507", @@ -4908,13 +5323,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.0875, - output: 0.35, - cacheRead: 0.0175, + input: 0.09, + output: 0.55, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 235929, + maxTokens: 16384, } satisfies Model<"openai-completions">, "qwen/qwen3-235b-a22b-thinking-2507": { id: "qwen/qwen3-235b-a22b-thinking-2507", @@ -4926,13 +5341,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.23, - output: 2.3, + input: 0.45, + output: 3.5, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 117964, + contextWindow: 128000, + maxTokens: 16384, } satisfies Model<"openai-completions">, "qwen/qwen3-30b-a3b": { id: "qwen/qwen3-30b-a3b", @@ -4962,31 +5377,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.04815, - output: 0.19305, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 128000, - maxTokens: 32000, - } satisfies Model<"openai-completions">, - "qwen/qwen3-30b-a3b-thinking-2507": { - id: "qwen/qwen3-30b-a3b-thinking-2507", - name: "Qwen: Qwen3 30B A3B Thinking 2507", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.2, - output: 2.4, + input: 0.09, + output: 0.3, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 81920, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3-32b": { id: "qwen/qwen3-32b", @@ -5006,24 +5403,6 @@ export const OPENROUTER_MODELS = { contextWindow: 40960, maxTokens: 16384, } satisfies Model<"openai-completions">, - "qwen/qwen3-8b": { - id: "qwen/qwen3-8b", - name: "Qwen: Qwen3 8B", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.117, - output: 0.455, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 8192, - } satisfies Model<"openai-completions">, "qwen/qwen3-coder": { id: "qwen/qwen3-coder", name: "Qwen: Qwen3 Coder 480B A35B", @@ -5096,60 +5475,6 @@ export const OPENROUTER_MODELS = { contextWindow: 262144, maxTokens: 235929, } satisfies Model<"openai-completions">, - "qwen/qwen3-coder-plus": { - id: "qwen/qwen3-coder-plus", - name: "Qwen: Qwen3 Coder Plus", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.65, - output: 3.25, - cacheRead: 0.13, - cacheWrite: 0.8125, - }, - contextWindow: 1000000, - maxTokens: 65536, - } satisfies Model<"openai-completions">, - "qwen/qwen3-max": { - id: "qwen/qwen3-max", - name: "Qwen: Qwen3 Max", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.78, - output: 3.9, - cacheRead: 0.156, - cacheWrite: 0.975, - }, - contextWindow: 262144, - maxTokens: 65536, - } satisfies Model<"openai-completions">, - "qwen/qwen3-max-thinking": { - id: "qwen/qwen3-max-thinking", - name: "Qwen: Qwen3 Max Thinking", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 0.78, - output: 3.9, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 65536, - } satisfies Model<"openai-completions">, "qwen/qwen3-next-80b-a3b-instruct": { id: "qwen/qwen3-next-80b-a3b-instruct", name: "Qwen: Qwen3 Next 80B A3B Instruct", @@ -5183,8 +5508,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3-vl-235b-a22b-instruct": { id: "qwen/qwen3-vl-235b-a22b-instruct", @@ -5195,28 +5520,10 @@ export const OPENROUTER_MODELS = { compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, reasoning: false, input: ["text", "image"], - cost: { - input: 0.21, - output: 1.9, - cacheRead: 0.1, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 32768, - } satisfies Model<"openai-completions">, - "qwen/qwen3-vl-235b-a22b-thinking": { - id: "qwen/qwen3-vl-235b-a22b-thinking", - name: "Qwen: Qwen3 VL 235B A22B Thinking", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.4, - output: 4, - cacheRead: 0, + cost: { + input: 0.21, + output: 1.9, + cacheRead: 0.1, cacheWrite: 0, }, contextWindow: 131072, @@ -5250,31 +5557,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.2, - output: 2.4, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 32768, - } satisfies Model<"openai-completions">, - "qwen/qwen3-vl-32b-instruct": { - id: "qwen/qwen3-vl-32b-instruct", - name: "Qwen: Qwen3 VL 32B Instruct", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.104, - output: 0.416, + input: 0.29, + output: 1, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3-vl-8b-instruct": { id: "qwen/qwen3-vl-8b-instruct", @@ -5286,31 +5575,13 @@ export const OPENROUTER_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 0.117, - output: 0.455, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 32768, - } satisfies Model<"openai-completions">, - "qwen/qwen3-vl-8b-thinking": { - id: "qwen/qwen3-vl-8b-thinking", - name: "Qwen: Qwen3 VL 8B Thinking", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.18, - output: 2.1, - cacheRead: 0, + input: 0.25, + output: 0.75, + cacheRead: 0.12, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3.5-122b-a10b": { id: "qwen/qwen3.5-122b-a10b", @@ -5340,13 +5611,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.195, - output: 1.56, + input: 0.26, + output: 2.6, cacheRead: 0, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 65536, + maxTokens: 81920, } satisfies Model<"openai-completions">, "qwen/qwen3.5-35b-a3b": { id: "qwen/qwen3.5-35b-a3b", @@ -5358,13 +5629,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.1625, - output: 1.3, - cacheRead: 0, + input: 0.15, + output: 1, + cacheRead: 0.05, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 65536, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3.5-397b-a17b": { id: "qwen/qwen3.5-397b-a17b", @@ -5376,9 +5647,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.55, - output: 3.5, - cacheRead: 0.225, + input: 0.5, + output: 3.6, + cacheRead: 0.3, cacheWrite: 0, }, contextWindow: 262144, @@ -5399,26 +5670,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 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, + contextWindow: 256000, + maxTokens: 32768, } satisfies Model<"openai-completions">, "qwen/qwen3.5-flash-02-23": { id: "qwen/qwen3.5-flash-02-23", @@ -5484,9 +5737,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.3, + input: 0.25, output: 2, - cacheRead: 0.03, + cacheRead: 0.025, cacheWrite: 0, }, contextWindow: 262144, @@ -5502,8 +5755,8 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.1, - output: 0.9, + input: 0.15, + output: 1, cacheRead: 0.05, cacheWrite: 0, }, @@ -5528,24 +5781,6 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, maxTokens: 65536, } satisfies Model<"openai-completions">, - "qwen/qwen3.6-max-preview": { - id: "qwen/qwen3.6-max-preview", - name: "Qwen: Qwen3.6 Max Preview", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: true, - input: ["text"], - cost: { - input: 1.027, - output: 6.162, - cacheRead: 0, - cacheWrite: 1.28375, - }, - contextWindow: 262144, - maxTokens: 65536, - } satisfies Model<"openai-completions">, "qwen/qwen3.6-plus": { id: "qwen/qwen3.6-plus", name: "Qwen: Qwen3.6 Plus", @@ -5618,27 +5853,27 @@ export const OPENROUTER_MODELS = { contextWindow: 1000000, 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", + "qwen/qwen3.7-plus:batch": { + id: "qwen/qwen3.7-plus:batch", + name: "Qwen: Qwen3.7 Plus (batch)", 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: 2, - output: 6, - cacheRead: 0.25, + input: 0.23, + output: 0.92, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 1000000, + contextWindow: 262144, 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)", + "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", @@ -5651,8 +5886,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 1010000, - maxTokens: 909000, + contextWindow: 1000000, + maxTokens: 131072, } satisfies Model<"openai-completions">, "qwen/qwen3.8-27b": { id: "qwen/qwen3.8-27b", @@ -5664,13 +5899,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.214, - output: 2.55, - cacheRead: 0.15, + input: 0.24, + output: 2.2, + cacheRead: 0.05, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 131072, + maxTokens: 235929, } satisfies Model<"openai-completions">, "qwen/qwen3.8-flash": { id: "qwen/qwen3.8-flash", @@ -5685,7 +5920,7 @@ export const OPENROUTER_MODELS = { input: 0.15, output: 0.47, cacheRead: 0.016, - cacheWrite: 0.2, + cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 131072, @@ -5703,11 +5938,65 @@ export const OPENROUTER_MODELS = { input: 2, output: 6, cacheRead: 0.25, - cacheWrite: 2.5, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-max-prime": { + id: "qwen/qwen3.8-max-prime", + name: "Qwen: Qwen3.8 Max Prime", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 12, + cacheRead: 0.5, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "qwen/qwen3.8-omni-flash": { + id: "qwen/qwen3.8-omni-flash", + name: "Qwen: Qwen3.8 Omni 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, }, contextWindow: 1000000, maxTokens: 131072, } satisfies Model<"openai-completions">, + "reflection/beam-1.0-501b-a23b": { + id: "reflection/beam-1.0-501b-a23b", + name: "Reflection: Beam 1.0 501B A23B", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 1, + output: 3, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 943718, + } satisfies Model<"openai-completions">, "rekaai/reka-edge": { id: "rekaai/reka-edge", name: "Reka Edge", @@ -5816,24 +6105,6 @@ export const OPENROUTER_MODELS = { 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", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.85, - output: 0.85, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 16384, - } satisfies Model<"openai-completions">, "stepfun/step-3.5-flash": { id: "stepfun/step-3.5-flash", name: "StepFun: Step 3.5 Flash", @@ -5870,6 +6141,24 @@ export const OPENROUTER_MODELS = { contextWindow: 256000, maxTokens: 230400, } satisfies Model<"openai-completions">, + "stepfun/step-5-preview": { + id: "stepfun/step-5-preview", + name: "StepFun: Step 5 Preview", + 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.7, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"openai-completions">, "tencent/hy3": { id: "tencent/hy3", name: "Tencent: Hy3", @@ -5924,24 +6213,6 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 64000, } satisfies Model<"openai-completions">, - "thedrummer/unslopnemo-12b": { - id: "thedrummer/unslopnemo-12b", - name: "TheDrummer: UnslopNemo 12B", - api: "openai-completions", - provider: "openrouter", - baseUrl: "https://openrouter.ai/api/v1", - compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, - reasoning: false, - input: ["text"], - cost: { - input: 0.4, - output: 0.4, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 1024000, - maxTokens: 819200, - } satisfies Model<"openai-completions">, "thinkingmachines/inkling": { id: "thinkingmachines/inkling", name: "Thinking Machines: Inkling", @@ -5996,9 +6267,27 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 262144, } satisfies Model<"openai-completions">, - "thinkingmachines/inkling:batch": { - id: "thinkingmachines/inkling:batch", - name: "Thinking Machines: Inkling (batch)", + "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">, + "typesafe/jev-router": { + id: "typesafe/jev-router", + name: "TypeSafe: Jev Router", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -6006,31 +6295,67 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1, - output: 4.05, - cacheRead: 0.17, + input: -1000000, + output: -1000000, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 4096, + } satisfies Model<"openai-completions">, + "unbiased/pareto-26.10": { + id: "unbiased/pareto-26.10", + name: "Pareto 26.10", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.8, + output: 3.2, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "unbiased/pareto-26.9": { + id: "unbiased/pareto-26.9", + name: "Pareto 26.9", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 2.5, + output: 7.5, + cacheRead: 0.25, cacheWrite: 0, }, - contextWindow: 524288, - maxTokens: 471859, + contextWindow: 262144, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "thinkingmachines/inkling:free": { - id: "thinkingmachines/inkling:free", - name: "Thinking Machines: Inkling (free)", + "upstage/solar-mini4": { + id: "upstage/solar-mini4", + name: "Upstage: Solar Mini 4", 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.05, + output: 0.2, + cacheRead: 0.005, cacheWrite: 0, }, - contextWindow: 1048576, - maxTokens: 262144, + contextWindow: 524288, + maxTokens: 131072, } satisfies Model<"openai-completions">, "upstage/solar-pro-3": { id: "upstage/solar-pro-3", @@ -6158,6 +6483,24 @@ export const OPENROUTER_MODELS = { contextWindow: 500000, maxTokens: 450000, } satisfies Model<"openai-completions">, + "x-ai/grok-4.7": { + id: "x-ai/grok-4.7", + name: "SpaceXAI: Grok 4.7", + 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: "SpaceXAI: Grok Build 0.1", @@ -6212,6 +6555,78 @@ export const OPENROUTER_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "xiaomi/mimo-v2.6-flash": { + id: "xiaomi/mimo-v2.6-flash", + name: "Xiaomi: MiMo-V2.6-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.14, + output: 0.28, + cacheRead: 0.0028, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "xiaomi/mimo-v2.6-pro": { + id: "xiaomi/mimo-v2.6-pro", + name: "Xiaomi: MiMo-V2.6-Pro", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.435, + output: 0.87, + cacheRead: 0.0036, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "xiaomi/mimo-v2.6-pro-ultraspeed": { + id: "xiaomi/mimo-v2.6-pro-ultraspeed", + name: "Xiaomi: MiMo-V2.6-Pro-UltraSpeed", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 4.35, + output: 8.7, + cacheRead: 0.036, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "xingchen-agi/xing4.0-29b-a4b:free": { + id: "xingchen-agi/xing4.0-29b-a4b:free", + name: "XingChen: Xing4.0 29B A4B (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: 262144, + maxTokens: 235929, + } satisfies Model<"openai-completions">, "z-ai/glm-4.5": { id: "z-ai/glm-4.5", name: "Z.ai: GLM 4.5", @@ -6276,13 +6691,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.43, - output: 1.75, - cacheRead: 0.08, + input: 0.5, + output: 2, + cacheRead: 0.1, cacheWrite: 0, }, - contextWindow: 198000, - maxTokens: 16384, + contextWindow: 202752, + maxTokens: 131072, } satisfies Model<"openai-completions">, "z-ai/glm-4.6v": { id: "z-ai/glm-4.6v", @@ -6312,12 +6727,12 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.4, - output: 1.75, - cacheRead: 0.08, + input: 0.54, + output: 1.98, + cacheRead: 0.099, cacheWrite: 0, }, - contextWindow: 202752, + contextWindow: 204800, maxTokens: 131072, } satisfies Model<"openai-completions">, "z-ai/glm-4.7-flash": { @@ -6353,8 +6768,8 @@ export const OPENROUTER_MODELS = { cacheRead: 0.119, cacheWrite: 0, }, - contextWindow: 198000, - maxTokens: 128000, + contextWindow: 202752, + maxTokens: 131072, } satisfies Model<"openai-completions">, "z-ai/glm-5-turbo": { id: "z-ai/glm-5-turbo", @@ -6403,17 +6818,17 @@ export const OPENROUTER_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text"], cost: { - input: 1.4, - output: 4.4, + input: 0.62, + output: 2.42, cacheRead: 0.14, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 128000, + maxTokens: 943718, } satisfies Model<"openai-completions">, - "z-ai/glm-5.2:batch": { - id: "z-ai/glm-5.2:batch", - name: "Z.ai: GLM 5.2 (batch)", + "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", @@ -6421,35 +6836,35 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.7, - output: 2.2, - cacheRead: 0.07, + input: 0.079, + output: 2.5, + cacheRead: 0.078, 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", + "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"], + input: ["text", "image"], cost: { - input: 1.4, - output: 4.4, - cacheRead: 0.26, + input: 0.048, + output: 0.2, + cacheRead: 0.006, cacheWrite: 0, }, - contextWindow: 1048575, - maxTokens: 943717, + contextWindow: 1048576, + maxTokens: 943718, } satisfies Model<"openai-completions">, - "z-ai/glm-5.3-flash": { - id: "z-ai/glm-5.3-flash", - name: "Z.ai: GLM 5.3 Flash", + "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", @@ -6457,17 +6872,17 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.09, - output: 0.3, - cacheRead: 0.018, + input: 0.05, + output: 0.18, + cacheRead: 0.01, 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)", + "z-ai/glm-5.3-flashx": { + id: "z-ai/glm-5.3-flashx", + name: "Z.ai: GLM 5.3 FlashX", api: "openai-completions", provider: "openrouter", baseUrl: "https://openrouter.ai/api/v1", @@ -6475,13 +6890,31 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.075, - output: 0.25, - cacheRead: 0.015, + input: 0.37, + output: 1.25, + cacheRead: 0.09, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 943718, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "z-ai/glm-5.3-prime": { + id: "z-ai/glm-5.3-prime", + name: "Z.ai: GLM 5.3 Prime", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: true, + input: ["text"], + cost: { + input: 2.8, + output: 8.8, + cacheRead: 0.56, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, } satisfies Model<"openai-completions">, "z-ai/glm-5.3:batch": { id: "z-ai/glm-5.3:batch", @@ -6493,13 +6926,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.7, - output: 2.2, - cacheRead: 0.13, + input: 0.45, + output: 2, + cacheRead: 0.1, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 943718, + maxTokens: 131072, } satisfies Model<"openai-completions">, "z-ai/glm-5v-turbo": { id: "z-ai/glm-5v-turbo", @@ -6547,13 +6980,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 1, - output: 5, - cacheRead: 0.1, - cacheWrite: 1.25, + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, }, - contextWindow: 200000, - maxTokens: 64000, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"openai-completions">, "~anthropic/claude-opus-latest": { id: "~anthropic/claude-opus-latest", @@ -6565,10 +6998,10 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 5, - output: 25, - cacheRead: 0.5, - cacheWrite: 6.25, + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, }, contextWindow: 1000000, maxTokens: 128000, @@ -6585,7 +7018,7 @@ export const OPENROUTER_MODELS = { cost: { input: 2, output: 10, - cacheRead: 0.2, + cacheRead: 0.1, cacheWrite: 2.5, }, contextWindow: 1000000, @@ -6601,9 +7034,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.15, + input: 0.05, output: 0.6, - cacheRead: 0.015, + cacheRead: 0.008, cacheWrite: 0, }, contextWindow: 1048576, @@ -6619,13 +7052,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.66, - output: 1.98, - cacheRead: 0.022, + input: 0.12, + output: 8, + cacheRead: 0.12, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 384000, + maxTokens: 393216, } satisfies Model<"openai-completions">, "~deepseek/deepseek-v4-flash-latest": { id: "~deepseek/deepseek-v4-flash-latest", @@ -6638,13 +7071,13 @@ export const OPENROUTER_MODELS = { 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, + input: 0.00392, + output: 0.143616, + cacheRead: 0.001523, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 393216, + maxTokens: 943718, } satisfies Model<"openai-completions">, "~google/gemini-flash-latest": { id: "~google/gemini-flash-latest", @@ -6675,9 +7108,9 @@ export const OPENROUTER_MODELS = { input: ["text", "image"], cost: { input: 2, - output: 12, - cacheRead: 0.2, - cacheWrite: 0.375, + output: 10, + cacheRead: 0.1, + cacheWrite: 0.1875, }, contextWindow: 1048576, maxTokens: 65536, @@ -6692,9 +7125,9 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 2.1, - output: 10.95, - cacheRead: 0.23, + input: 0.27, + output: 14, + cacheRead: 0.27, cacheWrite: 0, }, contextWindow: 1048576, @@ -6728,10 +7161,10 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.2, - output: 1.2, - cacheRead: 0.02, - cacheWrite: 0.25, + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, }, contextWindow: 1050000, maxTokens: 128000, @@ -6766,7 +7199,7 @@ export const OPENROUTER_MODELS = { cost: { input: 2, output: 10, - cacheRead: 0.2, + cacheRead: 0.1, cacheWrite: 2.5, }, contextWindow: 1050000, @@ -6790,6 +7223,24 @@ export const OPENROUTER_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"openai-completions">, + "~unbiased/pareto-latest": { + id: "~unbiased/pareto-latest", + name: "Pareto Latest", + api: "openai-completions", + provider: "openrouter", + baseUrl: "https://openrouter.ai/api/v1", + compat: {"supportsDeveloperRole":false,"thinkingFormat":"openrouter"}, + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.8, + output: 3.2, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, "~x-ai/grok-latest": { id: "~x-ai/grok-latest", name: "xAI: Grok Latest", @@ -6818,13 +7269,13 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.075, - output: 0.25, - cacheRead: 0.015, + input: 0.048, + output: 0.2, + cacheRead: 0.006, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 131072, + maxTokens: 943718, } satisfies Model<"openai-completions">, "~z-ai/glm-latest": { id: "~z-ai/glm-latest", @@ -6836,12 +7287,12 @@ export const OPENROUTER_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.8775, - output: 2.97, - cacheRead: 0.1755, + input: 0.0632, + output: 4.4, + cacheRead: 0.0588, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 235929, + contextWindow: 1048576, + maxTokens: 131072, } 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 559d7e9..4eefbee 100644 --- a/packages/ai/src/providers/together.models.ts +++ b/packages/ai/src/providers/together.models.ts @@ -20,7 +20,7 @@ export const TOGETHER_MODELS = { cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 202752, + contextWindow: 196608, maxTokens: 131072, } satisfies Model<"openai-completions">, "MiniMaxAI/MiniMax-M3": { @@ -132,26 +132,7 @@ export const TOGETHER_MODELS = { 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", - api: "openai-completions", - provider: "together", - baseUrl: "https://api.together.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, - reasoning: true, - thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","xhigh":null}, - input: ["text"], - cost: { - input: 1.74, - output: 3.48, - cacheRead: 0.2, - cacheWrite: 0, - }, - contextWindow: 512000, + contextWindow: 1048576, maxTokens: 384000, } satisfies Model<"openai-completions">, "deepseek-ai/DeepSeek-V4-Pro-0813": { @@ -160,9 +141,9 @@ export const TOGETHER_MODELS = { 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}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, reasoning: true, - thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null,"high":"high","xhigh":null}, input: ["text"], cost: { input: 1.32, @@ -192,25 +173,6 @@ export const TOGETHER_MODELS = { contextWindow: 1048576, maxTokens: 384000, } satisfies Model<"openai-completions">, - "google/gemma-4-31B-it": { - id: "google/gemma-4-31B-it", - name: "Gemma 4 31B Instruct", - 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.39, - output: 0.97, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 131072, - } satisfies Model<"openai-completions">, "meta-llama/Llama-3.3-70B-Instruct-Turbo": { id: "meta-llama/Llama-3.3-70B-Instruct-Turbo", name: "Llama 3.3 70B", @@ -229,9 +191,9 @@ export const TOGETHER_MODELS = { contextWindow: 131072, maxTokens: 131072, } satisfies Model<"openai-completions">, - "moonshotai/Kimi-K2.6": { - id: "moonshotai/Kimi-K2.6", - name: "Kimi K2.6", + "meta-models/Muse-Spark-Open-816B-A42B": { + id: "meta-models/Muse-Spark-Open-816B-A42B", + name: "Muse Spark Open", api: "openai-completions", provider: "together", baseUrl: "https://api.together.ai/v1", @@ -240,36 +202,36 @@ export const TOGETHER_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, input: ["text", "image"], cost: { - input: 1.2, - output: 4.5, - cacheRead: 0.2, + input: 1.25, + output: 4.25, + cacheRead: 0.15, cacheWrite: 0, }, - contextWindow: 262144, - maxTokens: 131000, + contextWindow: 1048576, + maxTokens: 131072, } satisfies Model<"openai-completions">, - "moonshotai/Kimi-K2.7-Code": { - id: "moonshotai/Kimi-K2.7-Code", - name: "Kimi K2.7 Code", + "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"], + input: ["text", "image"], cost: { - input: 0.95, - output: 4, - cacheRead: 0.19, + input: 3, + output: 15, + cacheRead: 0.3, cacheWrite: 0, }, - contextWindow: 262144, + contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, - "moonshotai/Kimi-K3": { - id: "moonshotai/Kimi-K3", - name: "Kimi K3", + "nvidia/NVIDIA-Nemotron-3.5-Super-VL": { + id: "nvidia/NVIDIA-Nemotron-3.5-Super-VL", + name: "Nemotron 3.5 Super VL 120B A12B", api: "openai-completions", provider: "together", baseUrl: "https://api.together.ai/v1", @@ -278,13 +240,13 @@ export const TOGETHER_MODELS = { thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, + input: 0.15, + output: 0.5, + cacheRead: 0.02, cacheWrite: 0, }, - contextWindow: 1048576, - maxTokens: 131072, + contextWindow: 262144, + maxTokens: 262144, } satisfies Model<"openai-completions">, "nvidia/nemotron-3-ultra-550b-a55b": { id: "nvidia/nemotron-3-ultra-550b-a55b", @@ -324,23 +286,23 @@ export const TOGETHER_MODELS = { contextWindow: 131072, maxTokens: 131072, } satisfies Model<"openai-completions">, - "openai/gpt-oss-20b": { - id: "openai/gpt-oss-20b", - name: "GPT OSS 20B", + "reflection/Beam-1.0-501B-A23B": { + id: "reflection/Beam-1.0-501B-A23B", + name: "Beam 1.0 501B A23B", api: "openai-completions", provider: "together", baseUrl: "https://api.together.ai/v1", - compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":true,"maxTokensField":"max_tokens","thinkingFormat":"openai","supportsStrictMode":false,"supportsLongCacheRetention":false}, + compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false,"maxTokensField":"max_tokens","thinkingFormat":"together","supportsStrictMode":false,"supportsLongCacheRetention":false}, reasoning: true, - thinkingLevelMap: {"off":null,"minimal":null}, + thinkingLevelMap: {"minimal":null,"low":null,"medium":null}, input: ["text"], cost: { - input: 0.05, - output: 0.2, - cacheRead: 0, + input: 0.4, + output: 1.2, + cacheRead: 0.04, cacheWrite: 0, }, - contextWindow: 131072, + contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, "thinkingmachines/Inkling": { @@ -378,7 +340,7 @@ export const TOGETHER_MODELS = { cacheRead: 0.26, cacheWrite: 0, }, - contextWindow: 512000, + contextWindow: 1048575, maxTokens: 164000, } satisfies Model<"openai-completions">, "zai-org/GLM-5.3": { diff --git a/packages/ai/src/providers/vercel-ai-gateway.models.ts b/packages/ai/src/providers/vercel-ai-gateway.models.ts index 60a2386..0d65673 100644 --- a/packages/ai/src/providers/vercel-ai-gateway.models.ts +++ b/packages/ai/src/providers/vercel-ai-gateway.models.ts @@ -27,7 +27,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.22, @@ -64,48 +64,14 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.16, - output: 0.64, + input: 0.15, + output: 0.6, cacheRead: 0, cacheWrite: 0, }, contextWindow: 128000, maxTokens: 8192, } satisfies Model<"anthropic-messages">, - "alibaba/qwen-3.6-max-preview": { - id: "alibaba/qwen-3.6-max-preview", - name: "Qwen 3.6 Max Preview", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text"], - cost: { - input: 1.3, - output: 7.8, - cacheRead: 0.13, - cacheWrite: 1.625, - }, - contextWindow: 240000, - maxTokens: 64000, - } satisfies Model<"anthropic-messages">, - "alibaba/qwen3-235b-a22b-thinking": { - id: "alibaba/qwen3-235b-a22b-thinking", - name: "Qwen3 VL 235B A22B Thinking", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.4, - output: 4, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 32768, - } satisfies Model<"anthropic-messages">, "alibaba/qwen3-coder": { id: "alibaba/qwen3-coder", name: "Qwen3 Coder 480B A35B Instruct", @@ -115,13 +81,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: false, input: ["text"], cost: { - input: 1.5, - output: 7.5, - cacheRead: 0.3, + input: 0.22, + output: 1.8, + cacheRead: 0.022, cacheWrite: 0, }, contextWindow: 262144, - maxTokens: 65536, + maxTokens: 32768, } satisfies Model<"anthropic-messages">, "alibaba/qwen3-coder-30b-a3b": { id: "alibaba/qwen3-coder-30b-a3b", @@ -157,57 +123,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 256000, maxTokens: 256000, } satisfies Model<"anthropic-messages">, - "alibaba/qwen3-coder-plus": { - id: "alibaba/qwen3-coder-plus", - name: "Qwen3 Coder Plus", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text"], - cost: { - input: 1, - output: 5, - cacheRead: 0.2, - cacheWrite: 0, - }, - contextWindow: 1000000, - maxTokens: 65536, - } satisfies Model<"anthropic-messages">, - "alibaba/qwen3-max": { - id: "alibaba/qwen3-max", - name: "Qwen3 Max", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text"], - cost: { - input: 1.2, - output: 6, - cacheRead: 0.24, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 32768, - } satisfies Model<"anthropic-messages">, - "alibaba/qwen3-max-preview": { - id: "alibaba/qwen3-max-preview", - name: "Qwen3 Max Preview", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text"], - cost: { - input: 1.2, - output: 6, - cacheRead: 0.24, - cacheWrite: 0, - }, - contextWindow: 262144, - maxTokens: 32768, - } satisfies Model<"anthropic-messages">, "alibaba/qwen3-max-thinking": { id: "alibaba/qwen3-max-thinking", name: "Qwen 3 Max Thinking", @@ -239,8 +154,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 262114, + maxTokens: 262114, } satisfies Model<"anthropic-messages">, "alibaba/qwen3-next-80b-a3b-thinking": { id: "alibaba/qwen3-next-80b-a3b-thinking", @@ -256,25 +171,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheRead: 0, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, - } satisfies Model<"anthropic-messages">, - "alibaba/qwen3-vl-235b-a22b-instruct": { - id: "alibaba/qwen3-vl-235b-a22b-instruct", - name: "Qwen3 VL 235B A22B Instruct", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, - input: ["text", "image"], - cost: { - input: 0.4, - output: 1.6, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 129024, + contextWindow: 262144, + maxTokens: 262144, } satisfies Model<"anthropic-messages">, "alibaba/qwen3-vl-instruct": { id: "alibaba/qwen3-vl-instruct", @@ -285,30 +183,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: false, input: ["text", "image"], cost: { - input: 0.4, - output: 1.6, - cacheRead: 0, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 129024, - } satisfies Model<"anthropic-messages">, - "alibaba/qwen3-vl-thinking": { - id: "alibaba/qwen3-vl-thinking", - name: "Qwen3 VL 235B A22B Thinking", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.4, - output: 4, - cacheRead: 0, + input: 0.2, + output: 0.88, + cacheRead: 0.11, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 32768, + contextWindow: 262144, + maxTokens: 262144, } satisfies Model<"anthropic-messages">, "alibaba/qwen3.5-flash": { id: "alibaba/qwen3.5-flash", @@ -337,7 +218,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { input: ["text", "image"], cost: { input: 0.4, - output: 2.5, + output: 2.4, cacheRead: 0.04, cacheWrite: 0.5, }, @@ -492,9 +373,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { input: 2, output: 6, cacheRead: 0.25, - cacheWrite: 2.5, + cacheWrite: 0, }, - contextWindow: 1000000, + contextWindow: 262144, maxTokens: 128000, } satisfies Model<"anthropic-messages">, "alibaba/qwen3.8-max-0902": { @@ -514,6 +395,40 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 991000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-max-prime": { + id: "alibaba/qwen3.8-max-prime", + name: "Qwen 3.8 Max Prime", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 12, + cacheRead: 0.5, + cacheWrite: 5, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "alibaba/qwen3.8-omni-flash": { + id: "alibaba/qwen3.8-omni-flash", + name: "Qwen 3.8 Omni 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, + }, + contextWindow: 1000000, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "amazon/nova-2-lite": { id: "amazon/nova-2-lite", name: "Nova 2 Lite", @@ -582,23 +497,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 300000, maxTokens: 8192, } satisfies Model<"anthropic-messages">, - "anthropic/claude-3-haiku": { - id: "anthropic/claude-3-haiku", - name: "Claude 3 Haiku", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - 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">, "anthropic/claude-fable-5": { id: "anthropic/claude-fable-5", name: "Claude Fable 5", @@ -618,6 +516,25 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-fable-5-batch": { + id: "anthropic/claude-fable-5-batch", + name: "Claude Fable 5 (Batch)", + 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: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-fable-5.1": { id: "anthropic/claude-fable-5.1", name: "Claude Fable 5.1", @@ -637,6 +554,25 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-fable-5.1-batch": { + id: "anthropic/claude-fable-5.1-batch", + name: "Claude Fable 5.1 (Batch)", + 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: 5, + output: 25, + cacheRead: 0.125, + cacheWrite: 6.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-haiku-4.5": { id: "anthropic/claude-haiku-4.5", name: "Claude Haiku 4.5", @@ -654,22 +590,56 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, - "anthropic/claude-opus-4": { - id: "anthropic/claude-opus-4", - name: "Claude Opus 4", + "anthropic/claude-haiku-4.5-batch": { + id: "anthropic/claude-haiku-4.5-batch", + name: "Claude Haiku 4.5 (Batch)", 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, + input: 0.5, + output: 2.5, + cacheRead: 0.05, + cacheWrite: 0.625, }, contextWindow: 200000, - maxTokens: 8192, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, + "anthropic/claude-haiku-5.5": { + id: "anthropic/claude-haiku-5.5", + name: "Claude Haiku 5.5", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "anthropic/claude-haiku-5.5-batch": { + id: "anthropic/claude-haiku-5.5-batch", + name: "Claude Haiku 5.5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.25, + cacheRead: 0.005, + cacheWrite: 0.0625, + }, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, "anthropic/claude-opus-4.5": { id: "anthropic/claude-opus-4.5", @@ -688,6 +658,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 200000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-4.5-batch": { + id: "anthropic/claude-opus-4.5-batch", + name: "Claude Opus 4.5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + contextWindow: 200000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-opus-4.6": { id: "anthropic/claude-opus-4.6", name: "Claude Opus 4.6", @@ -707,15 +694,34 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "anthropic/claude-opus-4.7": { - id: "anthropic/claude-opus-4.7", - name: "Claude Opus 4.7", + "anthropic/claude-opus-4.6-batch": { + id: "anthropic/claude-opus-4.6-batch", + name: "Claude Opus 4.6 (Batch)", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - compat: {"forceAdaptiveThinking":true,"supportsTemperature":false}, + compat: {"forceAdaptiveThinking":true}, reasoning: true, - thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + 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<"anthropic-messages">, + "anthropic/claude-opus-4.7": { + id: "anthropic/claude-opus-4.7", + name: "Claude Opus 4.7", + 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: 5, @@ -726,6 +732,25 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-4.7-batch": { + id: "anthropic/claude-opus-4.7-batch", + name: "Claude Opus 4.7 (Batch)", + 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: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-opus-4.8": { id: "anthropic/claude-opus-4.8", name: "Claude Opus 4.8", @@ -745,6 +770,25 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-4.8-batch": { + id: "anthropic/claude-opus-4.8-batch", + name: "Claude Opus 4.8 (Batch)", + 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: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + 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)", @@ -781,6 +825,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-5-batch": { + id: "anthropic/claude-opus-5-batch", + name: "Claude Opus 5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2.5, + output: 12.5, + cacheRead: 0.25, + cacheWrite: 3.125, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-opus-5-fast": { id: "anthropic/claude-opus-5-fast", name: "Claude Opus 5 (Fast)", @@ -798,22 +859,56 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "anthropic/claude-sonnet-4": { - id: "anthropic/claude-sonnet-4", - name: "Claude Sonnet 4", + "anthropic/claude-opus-5.5": { + id: "anthropic/claude-opus-5.5", + name: "Claude Opus 5.5", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 3, - output: 15, - cacheRead: 0.3, - cacheWrite: 3.75, + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, }, contextWindow: 1000000, - maxTokens: 8192, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-5.5-batch": { + id: "anthropic/claude-opus-5.5-batch", + name: "Claude Opus 5.5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "anthropic/claude-opus-5.5-fast": { + id: "anthropic/claude-opus-5.5-fast", + name: "Claude Opus 5.5 (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 8, + output: 40, + cacheRead: 0.4, + cacheWrite: 10, + }, + contextWindow: 1000000, + maxTokens: 128000, } satisfies Model<"anthropic-messages">, "anthropic/claude-sonnet-4.5": { id: "anthropic/claude-sonnet-4.5", @@ -832,6 +927,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-sonnet-4.5-batch": { + id: "anthropic/claude-sonnet-4.5-batch", + name: "Claude Sonnet 4.5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1.5, + output: 7.5, + cacheRead: 0.15, + cacheWrite: 1.875, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, "anthropic/claude-sonnet-4.6": { id: "anthropic/claude-sonnet-4.6", name: "Claude Sonnet 4.6", @@ -851,6 +963,25 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-sonnet-4.6-batch": { + id: "anthropic/claude-sonnet-4.6-batch", + name: "Claude Sonnet 4.6 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + compat: {"forceAdaptiveThinking":true}, + 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<"anthropic-messages">, "anthropic/claude-sonnet-5": { id: "anthropic/claude-sonnet-5", name: "Claude Sonnet 5", @@ -870,6 +1001,63 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "anthropic/claude-sonnet-5-batch": { + id: "anthropic/claude-sonnet-5-batch", + name: "Claude Sonnet 5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + compat: {"forceAdaptiveThinking":true}, + 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<"anthropic-messages">, + "anthropic/claude-sonnet-5.5": { + id: "anthropic/claude-sonnet-5.5", + name: "Claude Sonnet 5.5", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + compat: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "anthropic/claude-sonnet-5.5-batch": { + id: "anthropic/claude-sonnet-5.5-batch", + name: "Claude Sonnet 5.5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + compat: {"forceAdaptiveThinking":true}, + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh","max":"max"}, + input: ["text", "image"], + cost: { + input: 1, + output: 5, + cacheRead: 0.05, + cacheWrite: 1.25, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "arcee-ai/trinity-large-thinking": { id: "arcee-ai/trinity-large-thinking", name: "Trinity Large Thinking", @@ -880,7 +1068,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { input: ["text"], cost: { input: 0.25, - output: 0.9, + output: 0.8, cacheRead: 0, cacheWrite: 0, }, @@ -938,6 +1126,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 262144, maxTokens: 262144, } satisfies Model<"anthropic-messages">, + "callstack/apex": { + id: "callstack/apex", + name: "Apex", + 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.2, + cacheWrite: 0, + }, + contextWindow: 262144, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "cohere/command-a": { id: "cohere/command-a", name: "Command A", @@ -989,23 +1194,6 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 163840, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "deepseek/deepseek-v3.1-terminus": { - id: "deepseek/deepseek-v3.1-terminus", - name: "DeepSeek V3.1 Terminus", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text"], - cost: { - input: 0.27, - output: 1, - cacheRead: 0.135, - cacheWrite: 0, - }, - contextWindow: 131072, - maxTokens: 65536, - } satisfies Model<"anthropic-messages">, "deepseek/deepseek-v3.2": { id: "deepseek/deepseek-v3.2", name: "DeepSeek V3.2", @@ -1083,9 +1271,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.22, - output: 0.66, - cacheRead: 0.007, + input: 0.2156, + output: 0.6468, + cacheRead: 0.0068, cacheWrite: 0, }, contextWindow: 1048576, @@ -1134,85 +1322,221 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.15, - output: 0.6, - cacheRead: 0.015, + input: 0.075, + output: 0.3, + cacheRead: 0.0015, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 384000, } satisfies Model<"anthropic-messages">, - "google/gemini-2.5-flash": { - id: "google/gemini-2.5-flash", - name: "Gemini 2.5 Flash", + "deepseek/deepseek-v4.1-flash-1017": { + id: "deepseek/deepseek-v4.1-flash-1017", + name: "DeepSeek V4.1 Flash 1017", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 0.3, - output: 2.5, - cacheRead: 0.03, + input: 0.075, + output: 0.3, + cacheRead: 0.0015, cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 65536, + maxTokens: 384000, } satisfies Model<"anthropic-messages">, - "google/gemini-2.5-flash-lite": { - id: "google/gemini-2.5-flash-lite", - name: "Gemini 2.5 Flash Lite", + "deepseek/deepseek-v4.1-flash-1017-fast": { + id: "deepseek/deepseek-v4.1-flash-1017-fast", + name: "DeepSeek V4.1 Flash 1017 Fast", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text", "image"], cost: { - input: 0.1, - output: 0.4, - cacheRead: 0.01, + input: 0.6, + output: 2.4, + cacheRead: 0.014, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 65536, + maxTokens: 262144, } satisfies Model<"anthropic-messages">, - "google/gemini-2.5-pro": { - id: "google/gemini-2.5-pro", - name: "Gemini 2.5 Pro", + "deepseek/deepseek-v4.1-flash-fast": { + id: "deepseek/deepseek-v4.1-flash-fast", + name: "DeepSeek V4.1 Flash 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: 0.6, + output: 2.4, + cacheRead: 0.014, cacheWrite: 0, }, contextWindow: 1048576, - maxTokens: 65536, + maxTokens: 32768, } satisfies Model<"anthropic-messages">, - "google/gemini-3-flash": { - id: "google/gemini-3-flash", - name: "Gemini 3 Flash", + "fireworks/ember-1": { + id: "fireworks/ember-1", + name: "Ember-1", 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.05, + input: 3, + output: 15, + cacheRead: 0.3, cacheWrite: 0, }, - contextWindow: 1000000, - maxTokens: 65000, + contextWindow: 1048576, + maxTokens: 1048576, } 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-2.5-flash": { + id: "google/gemini-2.5-flash", + name: "Gemini 2.5 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.3, + output: 2.5, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-2.5-flash-batch": { + id: "google/gemini-2.5-flash-batch", + name: "Gemini 2.5 Flash (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 1.25, + cacheRead: 0.03, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, + "google/gemini-2.5-flash-lite": { + id: "google/gemini-2.5-flash-lite", + name: "Gemini 2.5 Flash Lite", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.4, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-2.5-flash-lite-batch": { + id: "google/gemini-2.5-flash-lite-batch", + name: "Gemini 2.5 Flash Lite (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.2, + cacheRead: 0.01, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-2.5-pro": { + id: "google/gemini-2.5-pro", + name: "Gemini 2.5 Pro", + 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, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-2.5-pro-batch": { + id: "google/gemini-2.5-pro-batch", + name: "Gemini 2.5 Pro (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.625, + output: 5, + cacheRead: 0.125, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-3-flash": { + id: "google/gemini-3-flash", + name: "Gemini 3 Flash", + 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.05, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65000, + } satisfies Model<"anthropic-messages">, + "google/gemini-3-flash-batch": { + id: "google/gemini-3-flash-batch", + name: "Gemini 3 Flash (Batch)", + 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.05, + cacheWrite: 0, + }, + 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", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", @@ -1227,6 +1551,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 65000, } satisfies Model<"anthropic-messages">, + "google/gemini-3.1-flash-lite-batch": { + id: "google/gemini-3.1-flash-lite-batch", + name: "Gemini 3.1 Flash Lite (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.125, + output: 0.75, + cacheRead: 0.015, + 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", @@ -1244,6 +1585,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "google/gemini-3.1-pro-preview-batch": { + id: "google/gemini-3.1-pro-preview-batch", + name: "Gemini 3.1 Pro Preview (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 6, + cacheRead: 0.2, + 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", @@ -1261,6 +1619,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "google/gemini-3.5-flash-batch": { + id: "google/gemini-3.5-flash-batch", + name: "Gemini 3.5 Flash (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.75, + output: 4.5, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, "google/gemini-3.5-flash-lite": { id: "google/gemini-3.5-flash-lite", name: "Gemini 3.5 Flash Lite", @@ -1278,6 +1653,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 65000, } satisfies Model<"anthropic-messages">, + "google/gemini-3.5-flash-lite-batch": { + id: "google/gemini-3.5-flash-lite-batch", + name: "Gemini 3.5 Flash Lite (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.15, + output: 1.25, + cacheRead: 0.015, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65000, + } satisfies Model<"anthropic-messages">, "google/gemini-3.6-flash": { id: "google/gemini-3.6-flash", name: "Gemini 3.6 Flash", @@ -1295,6 +1687,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 64000, } satisfies Model<"anthropic-messages">, + "google/gemini-3.6-flash-batch": { + id: "google/gemini-3.6-flash-batch", + name: "Gemini 3.6 Flash (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.375, + output: 1.875, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 64000, + } satisfies Model<"anthropic-messages">, "google/gemini-3.7-flash": { id: "google/gemini-3.7-flash", name: "Gemini 3.7 Flash", @@ -1310,7 +1719,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 65536, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-3.7-flash-batch": { + id: "google/gemini-3.7-flash-batch", + name: "Gemini 3.7 Flash (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.375, + output: 1.875, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 65535, } satisfies Model<"anthropic-messages">, "google/gemini-3.8-flash": { id: "google/gemini-3.8-flash", @@ -1327,7 +1753,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { cacheWrite: 0, }, contextWindow: 1000000, - maxTokens: 65536, + maxTokens: 65535, + } satisfies Model<"anthropic-messages">, + "google/gemini-4-argon": { + id: "google/gemini-4-argon", + name: "Gemini 4 Argon", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 1000000, } satisfies Model<"anthropic-messages">, "google/gemma-4-26b-a4b-it": { id: "google/gemma-4-26b-a4b-it", @@ -1440,183 +1883,115 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.075, + output: 0.22, + cacheRead: 0.015, 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)", + "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, + input: 0.075, + output: 0.22, + cacheRead: 0.015, 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", + "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"], + input: ["text", "image"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.075, + output: 0.22, + cacheRead: 0.015, 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)", + "inclusionai/ling-3.1-flash": { + id: "inclusionai/ling-3.1-flash", + name: "Ling 3.1 Flash", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text"], cost: { - input: 0, - output: 0, - cacheRead: 0, + input: 0.3, + output: 0.9, + cacheRead: 0.06, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 32000, + contextWindow: 262144, + maxTokens: 32768, } satisfies Model<"anthropic-messages">, - "inclusionai/ling-3.0-flash-vl": { - id: "inclusionai/ling-3.0-flash-vl", - name: "Ling 3.0 Flash VL", + "interfaze/interfaze-beta": { + id: "interfaze/interfaze-beta", + name: "Interfaze Beta", 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", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 1.5, - output: 3.5, + input: 1.5, + output: 3.5, cacheRead: 0, cacheWrite: 0, }, contextWindow: 1000000, maxTokens: 32000, } satisfies Model<"anthropic-messages">, - "kwaipilot/kat-coder-air-v2.5": { - id: "kwaipilot/kat-coder-air-v2.5", - name: "Kat Coder Air V2.5", + "liquid/lfm2.5-24b-a2b": { + id: "liquid/lfm2.5-24b-a2b", + name: "LFM2.5-24B-A2B", 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.03, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 80000, - } satisfies Model<"anthropic-messages">, - "kwaipilot/kat-coder-pro-v1": { - id: "kwaipilot/kat-coder-pro-v1", - name: "KAT-Coder-Pro V1", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: false, input: ["text"], cost: { - input: 0.3, - output: 1.2, - cacheRead: 0.06, + input: 0.05, + output: 0.7, + cacheRead: 0.025, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 32000, + contextWindow: 128000, + maxTokens: 8200, } satisfies Model<"anthropic-messages">, - "kwaipilot/kat-coder-pro-v2": { - id: "kwaipilot/kat-coder-pro-v2", - name: "Kat Coder Pro V2", + "meituan/longcat-2.5-preview": { + id: "meituan/longcat-2.5-preview", + name: "LongCat 2.5 Preview", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, - input: ["text"], + input: ["text", "image"], cost: { input: 0.3, output: 1.2, - cacheRead: 0.06, - cacheWrite: 0, - }, - contextWindow: 256000, - maxTokens: 256000, - } satisfies Model<"anthropic-messages">, - "kwaipilot/kat-coder-pro-v2.5": { - id: "kwaipilot/kat-coder-pro-v2.5", - name: "Kat Coder Pro V2.5", - api: "anthropic-messages", - provider: "vercel-ai-gateway", - baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, - input: ["text", "image"], - cost: { - input: 0.74, - output: 2.96, - cacheRead: 0.15, + cacheRead: 0.006, cacheWrite: 0, }, - contextWindow: 256000, - maxTokens: 80000, + contextWindow: 1048576, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, "meta/llama-3.1-70b": { id: "meta/llama-3.1-70b", @@ -1805,6 +2180,40 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1048576, maxTokens: 1048576, } satisfies Model<"anthropic-messages">, + "meta/muse-spark-open": { + id: "meta/muse-spark-open", + name: "Muse Spark Open", + 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-wonder-1.0": { + id: "meta/muse-wonder-1.0", + name: "Muse Wonder", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, "minimax/minimax-m2": { id: "minimax/minimax-m2", name: "MiniMax M2", @@ -2026,6 +2435,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 262144, maxTokens: 256000, } satisfies Model<"anthropic-messages">, + "mistral/mistral-large-4": { + id: "mistral/mistral-large-4", + name: "Mistral Large 4", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.68, + output: 2.09, + cacheRead: 0.07, + cacheWrite: 0, + }, + contextWindow: 524288, + maxTokens: 262144, + } satisfies Model<"anthropic-messages">, "mistral/mistral-medium-3.5": { id: "mistral/mistral-medium-3.5", name: "Mistral Medium Latest", @@ -2052,13 +2478,13 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: false, input: ["text"], cost: { - input: 0.04, - output: 0.17, + input: 0.029, + output: 0.03, cacheRead: 0, cacheWrite: 0, }, - contextWindow: 60288, - maxTokens: 16000, + contextWindow: 131072, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, "mistral/mistral-small": { id: "mistral/mistral-small", @@ -2077,39 +2503,39 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 262144, maxTokens: 4000, } satisfies Model<"anthropic-messages">, - "moonshotai/kimi-k2": { - id: "moonshotai/kimi-k2", - name: "Kimi K2 Instruct", + "mixedbread/toast-1": { + id: "mixedbread/toast-1", + name: "Toast 1", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: false, input: ["text"], cost: { - input: 0.57, - output: 2.3, - cacheRead: 0, + input: 0.3, + output: 0.72, + cacheRead: 0.036, cacheWrite: 0, }, - contextWindow: 131072, - maxTokens: 131072, + contextWindow: 131000, + maxTokens: 4000, } satisfies Model<"anthropic-messages">, - "moonshotai/kimi-k2-thinking": { - id: "moonshotai/kimi-k2-thinking", - name: "Kimi K2 Thinking", + "moonshotai/kimi-k2": { + id: "moonshotai/kimi-k2", + name: "Kimi K2 Instruct", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", - reasoning: true, + reasoning: false, input: ["text"], cost: { - input: 0.47, - output: 2, - cacheRead: 0.141, + input: 0.57, + output: 2.3, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 216144, - maxTokens: 216144, + contextWindow: 131072, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, "moonshotai/kimi-k2.5": { id: "moonshotai/kimi-k2.5", @@ -2122,11 +2548,11 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.6, output: 3, - cacheRead: 0.1, + cacheRead: 0, cacheWrite: 0, }, - contextWindow: 262114, - maxTokens: 262114, + contextWindow: 256000, + maxTokens: 256000, } satisfies Model<"anthropic-messages">, "moonshotai/kimi-k2.6": { id: "moonshotai/kimi-k2.6", @@ -2156,7 +2582,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.95, output: 4, - cacheRead: 0.16, + cacheRead: 0.19, cacheWrite: 0, }, contextWindow: 256000, @@ -2281,6 +2707,40 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 262144, maxTokens: 131072, } satisfies Model<"anthropic-messages">, + "nvidia/nemotron-3.5-lightning-free": { + id: "nvidia/nemotron-3.5-lightning-free", + name: "Nemotron 3.5 Lightning 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: 1000000, + maxTokens: 65000, + } satisfies Model<"anthropic-messages">, + "nvidia/nemotron-3.5-super-vl": { + id: "nvidia/nemotron-3.5-super-vl", + name: "NVIDIA Nemotron 3.5 Super VL", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.2, + output: 0.5, + cacheRead: 0.04, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, "nvidia/nemotron-nano-12b-v2-vl": { id: "nvidia/nemotron-nano-12b-v2-vl", name: "Nvidia Nemotron Nano 12B V2 VL", @@ -2366,6 +2826,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "openai/gpt-4.1-batch": { + id: "openai/gpt-4.1-batch", + name: "GPT-4.1 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 1, + output: 4, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1047576, + maxTokens: 32768, + } satisfies Model<"anthropic-messages">, "openai/gpt-4.1-fast": { id: "openai/gpt-4.1-fast", name: "GPT-4.1 (Fast)", @@ -2400,6 +2877,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "openai/gpt-4.1-mini-batch": { + id: "openai/gpt-4.1-mini-batch", + name: "GPT-4.1 mini (Batch)", + 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-4.1-mini-fast": { id: "openai/gpt-4.1-mini-fast", name: "GPT-4.1 mini (Fast)", @@ -2434,6 +2928,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1047576, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "openai/gpt-4.1-nano-batch": { + id: "openai/gpt-4.1-nano-batch", + name: "GPT-4.1 nano (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.2, + cacheRead: 0.0125, + cacheWrite: 0, + }, + 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)", @@ -2468,6 +2979,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"anthropic-messages">, + "openai/gpt-4o-batch": { + id: "openai/gpt-4o-batch", + name: "GPT-4o (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 1.25, + output: 5, + cacheRead: 0.625, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"anthropic-messages">, "openai/gpt-4o-fast": { id: "openai/gpt-4o-fast", name: "GPT-4o (Fast)", @@ -2502,6 +3030,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 128000, maxTokens: 16384, } satisfies Model<"anthropic-messages">, + "openai/gpt-4o-mini-batch": { + id: "openai/gpt-4o-mini-batch", + name: "GPT-4o mini (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 0.075, + output: 0.3, + cacheRead: 0.0375, + cacheWrite: 0, + }, + contextWindow: 128000, + maxTokens: 16384, + } satisfies Model<"anthropic-messages">, "openai/gpt-4o-mini-fast": { id: "openai/gpt-4o-mini-fast", name: "GPT-4o mini (Fast)", @@ -2536,6 +3081,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5-batch": { + id: "openai/gpt-5-batch", + name: "GPT-5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.625, + output: 5, + cacheRead: 0.0625, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5-codex": { id: "openai/gpt-5-codex", name: "GPT-5-Codex", @@ -2587,18 +3149,35 @@ 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)", + "openai/gpt-5-mini-batch": { + id: "openai/gpt-5-mini-batch", + name: "GPT-5 mini (Batch)", 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, + input: 0.125, + output: 1, + cacheRead: 0.0125, + cacheWrite: 0, + }, + 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, @@ -2621,6 +3200,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5-nano-batch": { + id: "openai/gpt-5-nano-batch", + name: "GPT-5 nano (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.025, + output: 0.2, + cacheRead: 0.0025, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5-pro": { id: "openai/gpt-5-pro", name: "GPT-5 pro", @@ -2638,6 +3234,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 272000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5-pro-batch": { + id: "openai/gpt-5-pro-batch", + name: "GPT-5 pro (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 7.5, + output: 60, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 400000, + maxTokens: 272000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.1-codex": { id: "openai/gpt-5.1-codex", name: "GPT-5.1-Codex", @@ -2741,6 +3354,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.2-batch": { + id: "openai/gpt-5.2-batch", + name: "GPT 5.2 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + 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<"anthropic-messages">, "openai/gpt-5.2-codex": { id: "openai/gpt-5.2-codex", name: "GPT 5.2 Codex", @@ -2849,6 +3480,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.4-batch": { + id: "openai/gpt-5.4-batch", + name: "GPT 5.4 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1.25, + output: 7.5, + cacheRead: 0.125, + cacheWrite: 0, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.4-fast": { id: "openai/gpt-5.4-fast", name: "GPT 5.4 (Fast)", @@ -2885,6 +3534,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.4-mini-batch": { + id: "openai/gpt-5.4-mini-batch", + name: "GPT 5.4 Mini (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + 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<"anthropic-messages">, "openai/gpt-5.4-mini-fast": { id: "openai/gpt-5.4-mini-fast", name: "GPT 5.4 Mini (Fast)", @@ -2921,6 +3588,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 400000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.4-nano-batch": { + id: "openai/gpt-5.4-nano-batch", + name: "GPT 5.4 Nano (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + 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<"anthropic-messages">, "openai/gpt-5.4-pro": { id: "openai/gpt-5.4-pro", name: "GPT 5.4 Pro", @@ -2957,6 +3642,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.5-batch": { + id: "openai/gpt-5.5-batch", + name: "GPT 5.5 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 2.5, + output: 15, + cacheRead: 0.25, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.5-fast": { id: "openai/gpt-5.5-fast", name: "GPT 5.5 (Fast)", @@ -2993,6 +3696,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.5-pro-batch": { + id: "openai/gpt-5.5-pro-batch", + name: "GPT 5.5 Pro (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 15, + output: 90, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, "openai/gpt-5.6-luna": { id: "openai/gpt-5.6-luna", name: "GPT 5.6 Luna", @@ -3011,6 +3732,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.6-luna-batch": { + id: "openai/gpt-5.6-luna-batch", + name: "GPT 5.6 Luna (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.6, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + 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)", @@ -3038,6 +3777,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-5.6-sol-batch": { + id: "openai/gpt-5.6-sol-batch", + name: "GPT 5.6 Sol (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], cost: { input: 2, output: 10, @@ -3057,10 +3814,10 @@ export const VERCEL_AI_GATEWAY_MODELS = { thinkingLevelMap: {"xhigh":"xhigh"}, input: ["text", "image"], cost: { - input: 4, - output: 20, - cacheRead: 0.4, - cacheWrite: 5, + input: 8, + output: 40, + cacheRead: 0.8, + cacheWrite: 10, }, contextWindow: 1050000, maxTokens: 128000, @@ -3083,6 +3840,24 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, + "openai/gpt-5.6-terra-batch": { + id: "openai/gpt-5.6-terra-batch", + name: "GPT 5.6 Terra (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + thinkingLevelMap: {"xhigh":"xhigh"}, + input: ["text", "image"], + cost: { + input: 1, + output: 6, + cacheRead: 0.1, + cacheWrite: 1.25, + }, + 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)", @@ -3101,36 +3876,206 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-6-astra": { - id: "openai/gpt-6-astra", - name: "GPT-6 Astra", + "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-batch": { + id: "openai/gpt-6-astra-batch", + name: "GPT-6 Astra (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 5, + output: 25, + cacheRead: 0.5, + cacheWrite: 6.25, + }, + 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, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-luna": { + id: "openai/gpt-6-luna", + name: "GPT-6 Luna", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.1, + output: 0.5, + cacheRead: 0.01, + cacheWrite: 0.125, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-luna-batch": { + id: "openai/gpt-6-luna-batch", + name: "GPT-6 Luna (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.05, + output: 0.25, + cacheRead: 0.005, + cacheWrite: 0.0625, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-luna-fast": { + id: "openai/gpt-6-luna-fast", + name: "GPT-6 Luna (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.2, + output: 1, + cacheRead: 0.02, + cacheWrite: 0.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-sol": { + id: "openai/gpt-6-sol", + name: "GPT-6 Sol", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.2, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-sol-batch": { + id: "openai/gpt-6-sol-batch", + name: "GPT-6 Sol (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 5, + cacheRead: 0.1, + cacheWrite: 1.25, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6-sol-fast": { + id: "openai/gpt-6-sol-fast", + name: "GPT-6 Sol (Fast)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6.1-sol": { + id: "openai/gpt-6.1-sol", + name: "GPT-6.1 Sol", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 2, + output: 10, + cacheRead: 0.1, + cacheWrite: 2.5, + }, + contextWindow: 1050000, + maxTokens: 128000, + } satisfies Model<"anthropic-messages">, + "openai/gpt-6.1-sol-batch": { + id: "openai/gpt-6.1-sol-batch", + name: "GPT-6.1 Sol (Batch)", 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, + input: 1, + output: 5, + cacheRead: 0.05, + cacheWrite: 1.25, }, contextWindow: 1050000, maxTokens: 128000, } satisfies Model<"anthropic-messages">, - "openai/gpt-6-astra-fast": { - id: "openai/gpt-6-astra-fast", - name: "GPT-6 Astra (Fast)", + "openai/gpt-6.1-sol-fast": { + id: "openai/gpt-6.1-sol-fast", + name: "GPT-6.1 Sol (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, + input: 4, + output: 20, + cacheRead: 0.2, + cacheWrite: 5, }, contextWindow: 1050000, maxTokens: 128000, @@ -3146,7 +4091,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.1, output: 0.5, - cacheRead: 0, + cacheRead: 0.1, cacheWrite: 0, }, contextWindow: 131072, @@ -3161,8 +4106,8 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.05, - output: 0.2, + input: 0.03, + output: 0.14, cacheRead: 0, cacheWrite: 0, }, @@ -3331,9 +4276,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 0.1, - output: 0.2, - cacheRead: 0.01, + input: 0.09, + output: 0.18, + cacheRead: 0.009, cacheWrite: 0, }, contextWindow: 1000000, @@ -3356,6 +4301,74 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 256000, maxTokens: 32768, } satisfies Model<"anthropic-messages">, + "quiverai/arrow-2": { + id: "quiverai/arrow-2", + name: "Arrow 2", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4, + output: 20, + cacheRead: 0.4, + cacheWrite: 5, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "quiverai/arrow-2-telos": { + id: "quiverai/arrow-2-telos", + name: "Arrow 2 Telos", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 6, + output: 30, + cacheRead: 0.6, + cacheWrite: 7.5, + }, + contextWindow: 131072, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "reflection/beam": { + id: "reflection/beam", + name: "Beam 1.0", + 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: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "reflection/beam-free": { + id: "reflection/beam-free", + name: "Beam 1.0 (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: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, "sakana/fugu-max": { id: "sakana/fugu-max", name: "Fugu Max", @@ -3475,6 +4488,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, + "spacexai/grok-4.20-multi-agent-batch": { + id: "spacexai/grok-4.20-multi-agent-batch", + name: "Grok 4.20 Multi-Agent (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 2, + cacheRead: 0.16, + cacheWrite: 0, + }, + contextWindow: 2000000, + maxTokens: 2000000, + } satisfies Model<"anthropic-messages">, "spacexai/grok-4.20-multi-agent-beta": { id: "spacexai/grok-4.20-multi-agent-beta", name: "Grok 4.20 Multi Agent Beta", @@ -3509,6 +4539,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, + "spacexai/grok-4.20-non-reasoning-batch": { + id: "spacexai/grok-4.20-non-reasoning-batch", + name: "Grok 4.20 Non-Reasoning (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: false, + input: ["text", "image"], + cost: { + input: 1, + output: 2, + cacheRead: 0.16, + cacheWrite: 0, + }, + contextWindow: 2000000, + maxTokens: 2000000, + } satisfies Model<"anthropic-messages">, "spacexai/grok-4.20-non-reasoning-beta": { id: "spacexai/grok-4.20-non-reasoning-beta", name: "Grok 4.20 Beta Non-Reasoning", @@ -3543,6 +4590,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 2000000, maxTokens: 2000000, } satisfies Model<"anthropic-messages">, + "spacexai/grok-4.20-reasoning-batch": { + id: "spacexai/grok-4.20-reasoning-batch", + name: "Grok 4.20 Reasoning (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 2, + cacheRead: 0.16, + cacheWrite: 0, + }, + contextWindow: 2000000, + maxTokens: 2000000, + } satisfies Model<"anthropic-messages">, "spacexai/grok-4.20-reasoning-beta": { id: "spacexai/grok-4.20-reasoning-beta", name: "Grok 4.20 Beta Reasoning", @@ -3577,6 +4641,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 1000000, } satisfies Model<"anthropic-messages">, + "spacexai/grok-4.3-batch": { + id: "spacexai/grok-4.3-batch", + name: "Grok 4.3 (Batch)", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 2, + cacheRead: 0.16, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 1000000, + } satisfies Model<"anthropic-messages">, "spacexai/grok-4.5": { id: "spacexai/grok-4.5", name: "Grok 4.5", @@ -3611,6 +4692,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"anthropic-messages">, + "spacexai/grok-4.7": { + id: "spacexai/grok-4.7", + name: "Grok 4.7", + 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.5, + cacheWrite: 0, + }, + contextWindow: 500000, + maxTokens: 500000, + } satisfies Model<"anthropic-messages">, "spacexai/grok-build-0.1": { id: "spacexai/grok-build-0.1", name: "Grok Build 0.1", @@ -3628,22 +4726,39 @@ 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", + "stealth/cat-jam": { + id: "stealth/cat-jam", + name: "Cat Jam", api: "anthropic-messages", provider: "vercel-ai-gateway", baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, - input: ["text", "image"], + 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: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "stealth/glyph-cluster": { + id: "stealth/glyph-cluster", + name: "Glyph Cluster", + 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: 256000, } satisfies Model<"anthropic-messages">, "stepfun/step-3.7-flash": { id: "stepfun/step-3.7-flash", @@ -3662,6 +4777,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 256000, maxTokens: 256000, } satisfies Model<"anthropic-messages">, + "stepfun/step-5-preview": { + id: "stepfun/step-5-preview", + name: "Step 5 Preview", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 1, + output: 2.7, + cacheRead: 0.1, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 1048576, + } satisfies Model<"anthropic-messages">, "tencent/hy3": { id: "tencent/hy3", name: "Hy3", @@ -3722,7 +4854,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text", "image"], cost: { - input: 0.5, + input: 0.45, output: 1.2, cacheRead: 0.1, cacheWrite: 0, @@ -3755,14 +4887,65 @@ export const VERCEL_AI_GATEWAY_MODELS = { baseUrl: "https://ai-gateway.vercel.sh", reasoning: true, input: ["text"], + cost: { + input: 0.3045, + output: 0.609, + cacheRead: 0.0028, + cacheWrite: 0, + }, + contextWindow: 1050000, + maxTokens: 131000, + } satisfies Model<"anthropic-messages">, + "xiaomi/mimo-v2.6-flash": { + id: "xiaomi/mimo-v2.6-flash", + name: "MiMo V2.6 Flash", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.14, + output: 0.28, + cacheRead: 0.0028, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "xiaomi/mimo-v2.6-pro": { + id: "xiaomi/mimo-v2.6-pro", + name: "MiMo V2.6 Pro", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], cost: { input: 0.435, output: 0.87, cacheRead: 0.0036, cacheWrite: 0, }, - contextWindow: 1050000, - maxTokens: 131000, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"anthropic-messages">, + "xiaomi/mimo-v2.6-pro-ultraspeed": { + id: "xiaomi/mimo-v2.6-pro-ultraspeed", + name: "MiMo V2.6 Pro UltraSpeed", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 4.35, + output: 8.7, + cacheRead: 0.036, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, } satisfies Model<"anthropic-messages">, "zai/glm-4.5": { id: "zai/glm-4.5", @@ -3843,7 +5026,7 @@ export const VERCEL_AI_GATEWAY_MODELS = { cost: { input: 0.6, output: 2.2, - cacheRead: 0.12, + cacheRead: 0, cacheWrite: 0, }, contextWindow: 200000, @@ -3960,9 +5143,9 @@ export const VERCEL_AI_GATEWAY_MODELS = { reasoning: true, input: ["text"], cost: { - input: 2.1, - output: 6.6, - cacheRead: 0.21, + input: 2.8, + output: 8.8, + cacheRead: 0.56, cacheWrite: 0, }, contextWindow: 1000000, @@ -4019,6 +5202,23 @@ export const VERCEL_AI_GATEWAY_MODELS = { contextWindow: 1000000, maxTokens: 131000, } satisfies Model<"anthropic-messages">, + "zai/glm-5.3-flashx": { + id: "zai/glm-5.3-flashx", + name: "GLM 5.3 FlashX", + api: "anthropic-messages", + provider: "vercel-ai-gateway", + baseUrl: "https://ai-gateway.vercel.sh", + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.37, + output: 1.25, + cacheRead: 0.075, + cacheWrite: 0, + }, + contextWindow: 1000000, + maxTokens: 131072, + } 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 383c062..c5d3ef4 100644 --- a/packages/ai/src/providers/xai.models.ts +++ b/packages/ai/src/providers/xai.models.ts @@ -130,6 +130,24 @@ export const XAI_MODELS = { contextWindow: 500000, maxTokens: 500000, } satisfies Model<"openai-completions">, + "grok-4.7": { + id: "grok-4.7", + name: "Grok 4.7", + 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/xiaomi-token-plan-ams.models.ts b/packages/ai/src/providers/xiaomi-token-plan-ams.models.ts index 05f2456..16ef3b3 100644 --- a/packages/ai/src/providers/xiaomi-token-plan-ams.models.ts +++ b/packages/ai/src/providers/xiaomi-token-plan-ams.models.ts @@ -58,4 +58,40 @@ export const XIAOMI_TOKEN_PLAN_AMS_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "mimo-v2.6-flash": { + id: "mimo-v2.6-flash", + name: "MiMo-V2.6-Flash", + api: "openai-completions", + provider: "xiaomi-token-plan-ams", + baseUrl: "https://token-plan-ams.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "mimo-v2.6-pro": { + id: "mimo-v2.6-pro", + name: "MiMo-V2.6-Pro", + api: "openai-completions", + provider: "xiaomi-token-plan-ams", + baseUrl: "https://token-plan-ams.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/xiaomi-token-plan-cn.models.ts b/packages/ai/src/providers/xiaomi-token-plan-cn.models.ts index 3a5c6fc..a444b86 100644 --- a/packages/ai/src/providers/xiaomi-token-plan-cn.models.ts +++ b/packages/ai/src/providers/xiaomi-token-plan-cn.models.ts @@ -58,4 +58,40 @@ export const XIAOMI_TOKEN_PLAN_CN_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "mimo-v2.6-flash": { + id: "mimo-v2.6-flash", + name: "MiMo-V2.6-Flash", + api: "openai-completions", + provider: "xiaomi-token-plan-cn", + baseUrl: "https://token-plan-cn.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "mimo-v2.6-pro": { + id: "mimo-v2.6-pro", + name: "MiMo-V2.6-Pro", + api: "openai-completions", + provider: "xiaomi-token-plan-cn", + baseUrl: "https://token-plan-cn.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/xiaomi-token-plan-sgp.models.ts b/packages/ai/src/providers/xiaomi-token-plan-sgp.models.ts index 391f4c5..03a26ff 100644 --- a/packages/ai/src/providers/xiaomi-token-plan-sgp.models.ts +++ b/packages/ai/src/providers/xiaomi-token-plan-sgp.models.ts @@ -58,4 +58,40 @@ export const XIAOMI_TOKEN_PLAN_SGP_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "mimo-v2.6-flash": { + id: "mimo-v2.6-flash", + name: "MiMo-V2.6-Flash", + api: "openai-completions", + provider: "xiaomi-token-plan-sgp", + baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "mimo-v2.6-pro": { + id: "mimo-v2.6-pro", + name: "MiMo-V2.6-Pro", + api: "openai-completions", + provider: "xiaomi-token-plan-sgp", + baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0, + output: 0, + cacheRead: 0, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/src/providers/xiaomi.models.ts b/packages/ai/src/providers/xiaomi.models.ts index 273a23f..8af0fc5 100644 --- a/packages/ai/src/providers/xiaomi.models.ts +++ b/packages/ai/src/providers/xiaomi.models.ts @@ -112,4 +112,58 @@ export const XIAOMI_MODELS = { contextWindow: 1048576, maxTokens: 131072, } satisfies Model<"openai-completions">, + "mimo-v2.6-flash": { + id: "mimo-v2.6-flash", + name: "MiMo-V2.6-Flash", + api: "openai-completions", + provider: "xiaomi", + baseUrl: "https://api.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.14, + output: 0.28, + cacheRead: 0.0028, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "mimo-v2.6-pro": { + id: "mimo-v2.6-pro", + name: "MiMo-V2.6-Pro", + api: "openai-completions", + provider: "xiaomi", + baseUrl: "https://api.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 0.435, + output: 0.87, + cacheRead: 0.0036, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, + "mimo-v2.6-pro-ultraspeed": { + id: "mimo-v2.6-pro-ultraspeed", + name: "MiMo-V2.6-Pro-UltraSpeed", + api: "openai-completions", + provider: "xiaomi", + baseUrl: "https://api.xiaomimimo.com/v1", + compat: {"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"}, + reasoning: true, + input: ["text", "image"], + cost: { + input: 4.35, + output: 8.7, + cacheRead: 0.036, + cacheWrite: 0, + }, + contextWindow: 1048576, + maxTokens: 131072, + } satisfies Model<"openai-completions">, } as const; diff --git a/packages/ai/test/abort.test.ts b/packages/ai/test/abort.test.ts index 13262f8..058fb1b 100644 --- a/packages/ai/test/abort.test.ts +++ b/packages/ai/test/abort.test.ts @@ -178,7 +178,7 @@ describe("AI Providers Abort Tests", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider Abort", () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-K3"); it("should abort mid-stream", { retry: 3 }, async () => { await testAbortSignal(llm, { reasoningEffort: "high" }); diff --git a/packages/ai/test/cache-retention.test.ts b/packages/ai/test/cache-retention.test.ts index 4813ad9..5dec89f 100644 --- a/packages/ai/test/cache-retention.test.ts +++ b/packages/ai/test/cache-retention.test.ts @@ -470,7 +470,7 @@ describe("Cache Retention (OPENABCODE_CACHE_RETENTION)", () => { MODELS.opencode["kimi-k2.5"], MODELS.opencode["kimi-k2.6"], MODELS.opencode["minimax-m2.7"], - MODELS["opencode-go"]["kimi-k2.6"], + MODELS["opencode-go"]["kimi-k3"], ] as const)("should omit long cache retention for $provider/$id", async (metadata) => { const model = metadata as Model<"openai-completions">; let capturedPayload: OpenAICompletionsCachePayload | undefined; diff --git a/packages/ai/test/context-overflow.test.ts b/packages/ai/test/context-overflow.test.ts index 81a0966..75c3931 100644 --- a/packages/ai/test/context-overflow.test.ts +++ b/packages/ai/test/context-overflow.test.ts @@ -338,7 +338,7 @@ describe("Context overflow error handling", () => { describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI", () => { it("Kimi-K2.6 - should detect overflow via isContextOverflow", async () => { - const model = getModel("together", "moonshotai/Kimi-K2.6"); + const model = getModel("together", "moonshotai/Kimi-K3"); const result = await testContextOverflow(model, process.env.TOGETHER_API_KEY!); logResult(result); @@ -504,7 +504,7 @@ describe("Context overflow error handling", () => { describe.skipIf(!process.env.OPENROUTER_API_KEY)("OpenRouter", () => { // Anthropic backend it("anthropic/claude-sonnet-4 via OpenRouter - should detect overflow via isContextOverflow", async () => { - const model = getModel("openrouter", "anthropic/claude-sonnet-4"); + const model = getModel("openrouter", "anthropic/claude-sonnet-4.5"); const result = await testContextOverflow(model, process.env.OPENROUTER_API_KEY!); logResult(result); diff --git a/packages/ai/test/empty.test.ts b/packages/ai/test/empty.test.ts index 928dbf7..7ede076 100644 --- a/packages/ai/test/empty.test.ts +++ b/packages/ai/test/empty.test.ts @@ -367,7 +367,7 @@ describe("AI Providers Empty Message Tests", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider Empty Messages", () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-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 d6d2cde..dfbda1c 100644 --- a/packages/ai/test/fireworks-models.test.ts +++ b/packages/ai/test/fireworks-models.test.ts @@ -18,8 +18,8 @@ afterEach(() => { }); describe("Fireworks models", () => { - it("registers the default Kimi K2.6 model via Anthropic-compatible Messages API", () => { - const model = getModel("fireworks", "accounts/fireworks/models/kimi-k2p6"); + it("registers the default Kimi K3 model via Anthropic-compatible Messages API", () => { + const model = getModel("fireworks", "accounts/fireworks/models/kimi-k3"); expect(model).toBeDefined(); expect(model.api).toBe("anthropic-messages"); @@ -27,12 +27,12 @@ describe("Fireworks models", () => { expect(model.baseUrl).toBe("https://api.fireworks.ai/inference"); expect(model.reasoning).toBe(true); expect(model.input).toEqual(["text", "image"]); - expect(model.contextWindow).toBe(262000); - expect(model.maxTokens).toBe(262000); + expect(model.contextWindow).toBe(1048576); + expect(model.maxTokens).toBe(131072); expect(model.cost).toEqual({ - input: 0.95, - output: 4, - cacheRead: 0.16, + input: 3, + output: 15, + cacheRead: 0.3, cacheWrite: 0, }); }); @@ -48,9 +48,9 @@ describe("Fireworks models", () => { expect(model?.input).toEqual(["text", "image"]); }); - it("aligns GLM 5.2 Fast with GLM 5.2's OpenAI-compatible config", () => { - const base = getModel("fireworks", "accounts/fireworks/models/glm-5p2"); - const fast = getModel("fireworks", "accounts/fireworks/routers/glm-5p2-fast"); + it("aligns GLM 5.3 Fast with GLM 5.3's config", () => { + const base = getModel("fireworks", "accounts/fireworks/models/glm-5p3"); + const fast = getModel("fireworks", "accounts/fireworks/routers/glm-5p3-fast"); expect(fast.api).toBe(base.api); expect(fast.baseUrl).toBe(base.baseUrl); @@ -66,7 +66,7 @@ describe("Fireworks models", () => { }); it("sets Fireworks-specific compat for session affinity and unsupported tool fields", () => { - const model = getModel("fireworks", "accounts/fireworks/models/kimi-k2p6"); + const model = getModel("fireworks", "accounts/fireworks/models/kimi-k3"); expect(model.compat).toBeDefined(); expect(model.compat?.sendSessionAffinityHeaders).toBe(true); diff --git a/packages/ai/test/image-tool-result.test.ts b/packages/ai/test/image-tool-result.test.ts index 3c267d0..2c9d1f6 100644 --- a/packages/ai/test/image-tool-result.test.ts +++ b/packages/ai/test/image-tool-result.test.ts @@ -299,7 +299,7 @@ describe("Tool Results with Images", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider (Kimi-K2.6)", () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-K3"); const options = { reasoningEffort: "high" } satisfies StreamOptionsWithExtras; it("should handle tool result with only image", { retry: 3, timeout: 30000 }, async () => { diff --git a/packages/ai/test/openai-completions-cache-control-format.test.ts b/packages/ai/test/openai-completions-cache-control-format.test.ts index d87a95e..6d1ee20 100644 --- a/packages/ai/test/openai-completions-cache-control-format.test.ts +++ b/packages/ai/test/openai-completions-cache-control-format.test.ts @@ -153,7 +153,7 @@ describe("openai-completions cacheControlFormat", () => { }); it("preserves Anthropic-style cache markers for OpenRouter Anthropic models", async () => { - const model = getModel("openrouter", "anthropic/claude-sonnet-4"); + const model = getModel("openrouter", "anthropic/claude-sonnet-4.5"); const params = await capturePayload(model); expectAnthropicCacheMarkers(params); }); diff --git a/packages/ai/test/openai-completions-tool-choice.test.ts b/packages/ai/test/openai-completions-tool-choice.test.ts index c538bbd..a9ce263 100644 --- a/packages/ai/test/openai-completions-tool-choice.test.ts +++ b/packages/ai/test/openai-completions-tool-choice.test.ts @@ -1161,7 +1161,7 @@ describe("openai-completions tool_choice", () => { }, ]; - const { compat: _compat, ...baseModel } = getModel("opencode-go", "kimi-k2.6")!; + const { compat: _compat, ...baseModel } = getModel("opencode-go", "kimi-k3")!; const model = { ...baseModel, api: "openai-completions" } as const; const response = await streamSimple( model, @@ -1208,7 +1208,7 @@ describe("openai-completions tool_choice", () => { }); it("replays OpenCode Go reasoning thinking blocks as reasoning_content", () => { - const { compat: _compat, ...baseModel } = getModel("opencode-go", "kimi-k2.6")!; + const { compat: _compat, ...baseModel } = getModel("opencode-go", "kimi-k3")!; const model = { ...baseModel, api: "openai-completions" } as Model<"openai-completions">; const messages = convertMessages( model, @@ -1218,7 +1218,7 @@ describe("openai-completions tool_choice", () => { role: "assistant", api: "openai-completions", provider: "opencode-go", - model: "kimi-k2.6", + model: "kimi-k3", content: [ { type: "thinking", thinking: "think", thinkingSignature: "reasoning" }, { type: "toolCall", id: "call_1", name: "read", arguments: { path: "README.md" } }, @@ -1262,8 +1262,8 @@ describe("openai-completions tool_choice", () => { expect(messages[0]).not.toHaveProperty("reasoning"); }); - it("sends thinking disabled for OpenCode Go Kimi K2.6 when thinking is off", async () => { - const model = getModel("opencode-go", "kimi-k2.6")!; + it("sends thinking disabled for OpenCode Go Kimi K3 when thinking is off", async () => { + const model = getModel("opencode-go", "kimi-k3")!; let payload: unknown; await streamSimple( @@ -1284,8 +1284,8 @@ describe("openai-completions tool_choice", () => { expect(params.reasoning_effort).toBeUndefined(); }); - it("sends thinking enabled for OpenCode Go Kimi K2.6 when thinking is enabled", async () => { - const model = getModel("opencode-go", "kimi-k2.6")!; + it("sends thinking enabled for OpenCode Go Kimi K3 when thinking is enabled", async () => { + const model = getModel("opencode-go", "kimi-k3")!; let payload: unknown; await streamSimple( @@ -1356,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")!] as const; + const cases = [getModel("opencode-go", "kimi-k3")!] as const; for (const model of cases) { let payload: unknown; diff --git a/packages/ai/test/stream.test.ts b/packages/ai/test/stream.test.ts index 3bc21d8..4a6ab55 100644 --- a/packages/ai/test/stream.test.ts +++ b/packages/ai/test/stream.test.ts @@ -759,7 +759,7 @@ describe("Generate E2E Tests", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider (Kimi-K2.6 via OpenAI Completions)", () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-K3"); it("should complete basic text generation", { retry: 3 }, async () => { await basicTextGeneration(llm); @@ -787,7 +787,7 @@ describe("Generate E2E Tests", () => { }); describe.skipIf(!process.env.NVIDIA_API_KEY)("NVIDIA NIM Provider (Nemotron 3 Super via OpenAI Completions)", () => { - const llm = getModel("nvidia", "nvidia/nemotron-3-super-120b-a12b"); + const llm = getModel("nvidia", "nvidia/nemotron-3.5-super-vl-120b-a12b"); it("should complete basic text generation", { retry: 3 }, async () => { await basicTextGeneration(llm); diff --git a/packages/ai/test/supports-xhigh.test.ts b/packages/ai/test/supports-xhigh.test.ts index 9888e93..d95efae 100644 --- a/packages/ai/test/supports-xhigh.test.ts +++ b/packages/ai/test/supports-xhigh.test.ts @@ -89,14 +89,14 @@ describe("getSupportedThinkingLevels", () => { expect(getSupportedThinkingLevels(model!)).toEqual(["off", "high", "max"]); }); - it("includes only high/max plus off for DeepSeek V4 Flash on opencode-go", () => { - const model = getModel("opencode-go", "deepseek-v4-flash"); + it("includes only high/max plus off for DeepSeek V4.1 Flash on opencode-go", () => { + const model = getModel("opencode-go", "deepseek-v4.1-flash"); expect(model).toBeDefined(); expect(getSupportedThinkingLevels(model!)).toEqual(["off", "high", "max"]); }); - it("includes only high plus off for OpenCode Go Kimi K2.6", () => { - const model = getModel("opencode-go", "kimi-k2.6"); + it("includes only high plus off for OpenCode Go Kimi K3", () => { + const model = getModel("opencode-go", "kimi-k3"); expect(model).toBeDefined(); expect(getSupportedThinkingLevels(model!)).toEqual(["off", "high"]); }); diff --git a/packages/ai/test/together-models.test.ts b/packages/ai/test/together-models.test.ts index 0d766d6..8a0fc8a 100644 --- a/packages/ai/test/together-models.test.ts +++ b/packages/ai/test/together-models.test.ts @@ -13,8 +13,8 @@ afterEach(() => { }); describe("Together models", () => { - it("registers the default Kimi K2.6 model via OpenAI-compatible Chat Completions API", () => { - const model = getModel("together", "moonshotai/Kimi-K2.6"); + it("registers the default Kimi K3 model via OpenAI-compatible Chat Completions API", () => { + const model = getModel("together", "moonshotai/Kimi-K3"); expect(model).toBeDefined(); expect(model.api).toBe("openai-completions"); @@ -23,12 +23,12 @@ describe("Together models", () => { expect(model.reasoning).toBe(true); expect(model.thinkingLevelMap).toEqual({ minimal: null, low: null, medium: null }); expect(model.input).toEqual(["text", "image"]); - expect(model.contextWindow).toBe(262144); - expect(model.maxTokens).toBe(131000); + expect(model.contextWindow).toBe(1048576); + expect(model.maxTokens).toBe(131072); expect(model.cost).toEqual({ - input: 1.2, - output: 4.5, - cacheRead: 0.2, + input: 3, + output: 15, + cacheRead: 0.3, cacheWrite: 0, }); expect(model.compat).toEqual({ @@ -50,7 +50,7 @@ describe("Together models", () => { thinkingFormat: "openai", }); - const deepSeekV4 = getModel("together", "deepseek-ai/DeepSeek-V4-Pro"); + const deepSeekV4 = getModel("together", "deepseek-ai/DeepSeek-V4-Pro-0813"); expect(deepSeekV4.thinkingLevelMap).toEqual({ minimal: null, low: null, diff --git a/packages/ai/test/tokens.test.ts b/packages/ai/test/tokens.test.ts index 6695d11..80e8f34 100644 --- a/packages/ai/test/tokens.test.ts +++ b/packages/ai/test/tokens.test.ts @@ -186,7 +186,7 @@ describe("Token Statistics on Abort", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider", () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-K3"); 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-without-result.test.ts b/packages/ai/test/tool-call-without-result.test.ts index 16a3bb6..a98107e 100644 --- a/packages/ai/test/tool-call-without-result.test.ts +++ b/packages/ai/test/tool-call-without-result.test.ts @@ -191,7 +191,7 @@ describe("Tool Call Without Result Tests", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider", () => { - const model = getModel("together", "moonshotai/Kimi-K2.6"); + const model = getModel("together", "moonshotai/Kimi-K3"); it("should filter out tool calls without corresponding tool results", { retry: 3, timeout: 30000 }, async () => { await testToolCallWithoutResult(model, { reasoningEffort: "high" }); diff --git a/packages/ai/test/total-tokens.test.ts b/packages/ai/test/total-tokens.test.ts index 48533a6..baf12ff 100644 --- a/packages/ai/test/total-tokens.test.ts +++ b/packages/ai/test/total-tokens.test.ts @@ -383,7 +383,7 @@ describe("totalTokens field", () => { describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI", () => { it("Kimi-K2.6 - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-K3"); console.log(`\nTogether AI / ${llm.id}:`); const { first, second } = await testTotalTokensWithCache(llm, { @@ -621,7 +621,7 @@ describe("totalTokens field", () => { "anthropic/claude-sonnet-4 - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => { - const llm = getModel("openrouter", "anthropic/claude-sonnet-4"); + const llm = getModel("openrouter", "anthropic/claude-sonnet-4.5"); console.log(`\nOpenRouter / ${llm.id}:`); const { first, second } = await testTotalTokensWithCache(llm, { apiKey: process.env.OPENROUTER_API_KEY }); diff --git a/packages/ai/test/unicode-surrogate.test.ts b/packages/ai/test/unicode-surrogate.test.ts index 37136dc..13e5e45 100644 --- a/packages/ai/test/unicode-surrogate.test.ts +++ b/packages/ai/test/unicode-surrogate.test.ts @@ -546,7 +546,7 @@ describe("AI Providers Unicode Surrogate Pair Tests", () => { }); describe.skipIf(!process.env.TOGETHER_API_KEY)("Together AI Provider Unicode Handling", () => { - const llm = getModel("together", "moonshotai/Kimi-K2.6"); + const llm = getModel("together", "moonshotai/Kimi-K3"); const options = { reasoningEffort: "high" } satisfies StreamOptionsWithExtras; it("should handle emoji in tool results", { retry: 3, timeout: 30000 }, async () => { From 3c44e847b4f79f8abdc8024d7023aa58b95ae6a5 Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sun, 18 Oct 2026 17:17:44 +0800 Subject: [PATCH 3/5] Update model-registry test to current OpenRouter catalog IDs --- .../coding-agent/test/model-registry.test.ts | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/packages/coding-agent/test/model-registry.test.ts b/packages/coding-agent/test/model-registry.test.ts index 2993a49..1d19721 100644 --- a/packages/coding-agent/test/model-registry.test.ts +++ b/packages/coding-agent/test/model-registry.test.ts @@ -276,14 +276,14 @@ describe("ModelRegistry", () => { writeModelsJson({ openrouter: providerConfig( "https://my-proxy.example.com/v1", - [{ id: "anthropic/claude-sonnet-4" }], + [{ id: "anthropic/claude-sonnet-4.5" }], "openai-completions", ), }); const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnetModels = models.filter((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnetModels = models.filter((m) => m.id === "anthropic/claude-sonnet-4.5"); expect(sonnetModels).toHaveLength(1); expect(sonnetModels[0].baseUrl).toBe("https://my-proxy.example.com/v1"); @@ -585,7 +585,7 @@ describe("ModelRegistry", () => { }, ], modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { name: "Overridden Built-in Sonnet", }, }, @@ -597,7 +597,7 @@ describe("ModelRegistry", () => { expect(models.some((m) => m.id === "custom/openrouter-model")).toBe(true); expect( - models.some((m) => m.id === "anthropic/claude-sonnet-4" && m.name === "Overridden Built-in Sonnet"), + models.some((m) => m.id === "anthropic/claude-sonnet-4.5" && m.name === "Overridden Built-in Sonnet"), ).toBe(true); }); @@ -642,7 +642,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { name: "Custom Sonnet Name", }, }, @@ -652,11 +652,11 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); expect(sonnet?.name).toBe("Custom Sonnet Name"); // Other models should be unchanged - const opus = models.find((m) => m.id === "anthropic/claude-opus-4"); + const opus = models.find((m) => m.id === "anthropic/claude-opus-4.5"); expect(opus?.name).not.toBe("Custom Sonnet Name"); }); @@ -664,7 +664,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { compat: { openRouterRouting: { only: ["amazon-bedrock"] }, }, @@ -676,7 +676,7 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); const compat = sonnet?.compat as OpenAICompletionsCompat | undefined; expect(compat?.openRouterRouting).toEqual({ only: ["amazon-bedrock"] }); }); @@ -685,7 +685,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { compat: { openRouterRouting: { order: ["anthropic", "together"] }, }, @@ -696,7 +696,7 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); // Should have both the new routing AND preserve other compat settings const compat = sonnet?.compat as OpenAICompletionsCompat | undefined; @@ -707,10 +707,10 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { compat: { openRouterRouting: { only: ["amazon-bedrock"] } }, }, - "anthropic/claude-opus-4": { + "anthropic/claude-opus-4.5": { compat: { openRouterRouting: { only: ["anthropic"] } }, }, }, @@ -720,8 +720,8 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); - const opus = models.find((m) => m.id === "anthropic/claude-opus-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); + const opus = models.find((m) => m.id === "anthropic/claude-opus-4.5"); const sonnetCompat = sonnet?.compat as OpenAICompletionsCompat | undefined; const opusCompat = opus?.compat as OpenAICompletionsCompat | undefined; @@ -734,7 +734,7 @@ describe("ModelRegistry", () => { openrouter: { baseUrl: "https://my-proxy.example.com/v1", modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { name: "Proxied Sonnet", }, }, @@ -743,14 +743,14 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); // Both overrides should apply expect(sonnet?.baseUrl).toBe("https://my-proxy.example.com/v1"); expect(sonnet?.name).toBe("Proxied Sonnet"); // Other models should have the baseUrl but not the name override - const opus = models.find((m) => m.id === "anthropic/claude-opus-4"); + const opus = models.find((m) => m.id === "anthropic/claude-opus-4.5"); expect(opus?.baseUrl).toBe("https://my-proxy.example.com/v1"); expect(opus?.name).not.toBe("Proxied Sonnet"); }); @@ -779,7 +779,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { cost: { input: 99 }, }, }, @@ -788,7 +788,7 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); // Input cost should be overridden expect(sonnet?.cost.input).toBe(99); @@ -800,7 +800,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { headers: { "X-Custom-Model-Header": "value" }, }, }, @@ -809,7 +809,7 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const models = getModelsForProvider(registry, "openrouter"); - const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4"); + const sonnet = models.find((m) => m.id === "anthropic/claude-sonnet-4.5"); expect(sonnet).toBeDefined(); const auth = await registry.getApiKeyAndHeaders(sonnet!); @@ -823,7 +823,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { name: "First Name", }, }, @@ -832,14 +832,14 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); expect( - getModelsForProvider(registry, "openrouter").find((m) => m.id === "anthropic/claude-sonnet-4")?.name, + getModelsForProvider(registry, "openrouter").find((m) => m.id === "anthropic/claude-sonnet-4.5")?.name, ).toBe("First Name"); // Update and refresh writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { name: "Second Name", }, }, @@ -848,7 +848,7 @@ describe("ModelRegistry", () => { registry.refresh(); expect( - getModelsForProvider(registry, "openrouter").find((m) => m.id === "anthropic/claude-sonnet-4")?.name, + getModelsForProvider(registry, "openrouter").find((m) => m.id === "anthropic/claude-sonnet-4.5")?.name, ).toBe("Second Name"); }); @@ -856,7 +856,7 @@ describe("ModelRegistry", () => { writeRawModelsJson({ openrouter: { modelOverrides: { - "anthropic/claude-sonnet-4": { + "anthropic/claude-sonnet-4.5": { name: "Custom Name", }, }, @@ -865,7 +865,7 @@ describe("ModelRegistry", () => { const registry = ModelRegistry.create(authStorage, modelsJsonPath); const customName = getModelsForProvider(registry, "openrouter").find( - (m) => m.id === "anthropic/claude-sonnet-4", + (m) => m.id === "anthropic/claude-sonnet-4.5", )?.name; expect(customName).toBe("Custom Name"); @@ -874,7 +874,7 @@ describe("ModelRegistry", () => { registry.refresh(); const restoredName = getModelsForProvider(registry, "openrouter").find( - (m) => m.id === "anthropic/claude-sonnet-4", + (m) => m.id === "anthropic/claude-sonnet-4.5", )?.name; expect(restoredName).not.toBe("Custom Name"); }); From 2d2f8d451a2b5405bac82ba9e54da684c58cb302 Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sun, 18 Oct 2026 17:18:29 +0800 Subject: [PATCH 4/5] Release v1.1.1 --- package-lock.json | 30 +++++++++---------- packages/agent/CHANGELOG.md | 2 +- packages/agent/package.json | 4 +-- packages/ai/CHANGELOG.md | 2 +- packages/ai/package.json | 2 +- packages/coding-agent/CHANGELOG.md | 2 +- .../package-lock.json | 4 +-- .../custom-provider-anthropic/package.json | 2 +- .../custom-provider-gitlab-duo/package.json | 2 +- .../extensions/gondolin/package-lock.json | 4 +-- .../examples/extensions/gondolin/package.json | 2 +- .../extensions/sandbox/package-lock.json | 4 +-- .../examples/extensions/sandbox/package.json | 2 +- .../extensions/with-deps/package-lock.json | 4 +-- .../extensions/with-deps/package.json | 2 +- .../install-lock/package-lock.json | 30 +++++++++---------- .../coding-agent/install-lock/package.json | 4 +-- packages/coding-agent/npm-shrinkwrap.json | 24 +++++++-------- packages/coding-agent/package.json | 8 ++--- packages/orchestrator/CHANGELOG.md | 2 +- packages/orchestrator/package.json | 4 +-- packages/tui/CHANGELOG.md | 2 +- packages/tui/package.json | 2 +- 23 files changed, 72 insertions(+), 72 deletions(-) diff --git a/package-lock.json b/package-lock.json index 911d829..67e1886 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5116,10 +5116,10 @@ }, "packages/agent": { "name": "@openabcode/agent-core", - "version": "1.1.0", + "version": "1.1.1", "license": "AGPL-3.0", "dependencies": { - "@openabcode/ai": "^1.1.0", + "@openabcode/ai": "^1.1.1", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" @@ -5468,7 +5468,7 @@ }, "packages/ai": { "name": "@openabcode/ai", - "version": "1.1.0", + "version": "1.1.1", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/sdk": "0.91.1", @@ -5774,12 +5774,12 @@ }, "packages/coding-agent": { "name": "@openabcode/coding-agent", - "version": "1.1.0", + "version": "1.1.1", "license": "AGPL-3.0", "dependencies": { - "@openabcode/agent-core": "^1.1.0", - "@openabcode/ai": "^1.1.0", - "@openabcode/tui": "^1.1.0", + "@openabcode/agent-core": "^1.1.1", + "@openabcode/ai": "^1.1.1", + "@openabcode/tui": "^1.1.1", "@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.1.0", + "version": "1.1.1", "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.1.0" + "version": "1.1.1" }, "packages/coding-agent/examples/extensions/gondolin": { "name": "openabcode-extension-gondolin", - "version": "1.1.0", + "version": "1.1.1", "dependencies": { "@earendil-works/gondolin": "0.12.0" } }, "packages/coding-agent/examples/extensions/sandbox": { "name": "openabcode-extension-sandbox", - "version": "1.1.0", + "version": "1.1.1", "dependencies": { "@anthropic-ai/sandbox-runtime": "0.0.26" } }, "packages/coding-agent/examples/extensions/with-deps": { "name": "openabcode-extension-with-deps", - "version": "1.1.0", + "version": "1.1.1", "dependencies": { "ms": "2.1.3" }, @@ -6141,10 +6141,10 @@ }, "packages/orchestrator": { "name": "@openabcode/orchestrator", - "version": "1.1.0", + "version": "1.1.1", "license": "AGPL-3.0", "dependencies": { - "@openabcode/coding-agent": "^1.1.0" + "@openabcode/coding-agent": "^1.1.1" }, "devDependencies": { "shx": "0.4.0" @@ -6155,7 +6155,7 @@ }, "packages/tui": { "name": "@openabcode/tui", - "version": "1.1.0", + "version": "1.1.1", "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 a0143b6..f6c5739 100644 --- a/packages/agent/CHANGELOG.md +++ b/packages/agent/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 diff --git a/packages/agent/package.json b/packages/agent/package.json index 603d074..4085ade 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/agent-core", - "version": "1.1.0", + "version": "1.1.1", "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.1.0", + "@openabcode/ai": "^1.1.1", "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 f06d989..25668c7 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.1.1] - 2026-10-18 ### Changed diff --git a/packages/ai/package.json b/packages/ai/package.json index 1fad3fa..cf9693f 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/ai", - "version": "1.1.0", + "version": "1.1.1", "description": "Unified LLM API with automatic model discovery and provider configuration", "type": "module", "main": "./dist/index.js", diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 3541465..d8f3cd8 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 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 c42cc37..018e1d9 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.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-custom-provider", - "version": "1.1.0", + "version": "1.1.1", "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 e035565..00d783d 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.1.0", + "version": "1.1.1", "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 e8179d6..6ec7d67 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.1.0", + "version": "1.1.1", "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 d47e327..3659979 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.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-gondolin", - "version": "1.1.0", + "version": "1.1.1", "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 4e01025..d82354a 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.1.0", + "version": "1.1.1", "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 d67e922..103cc31 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.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-sandbox", - "version": "1.1.0", + "version": "1.1.1", "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 6d19639..54d2106 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.1.0", + "version": "1.1.1", "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 4b2a877..a9ad62e 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.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pi-extension-with-deps", - "version": "1.1.0", + "version": "1.1.1", "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 83837d9..7d5060a 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.1.0", + "version": "1.1.1", "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 a9d04d5..a9bb234 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.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@openabcode/coding-agent-install", - "version": "1.1.0", + "version": "1.1.1", "dependencies": { - "@openabcode/coding-agent": "1.1.0" + "@openabcode/coding-agent": "1.1.1" }, "engines": { "node": ">=22.19.0" @@ -700,11 +700,11 @@ ] }, "node_modules/@openabcode/agent-core": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.1.1.tgz", "license": "AGPL-3.0", "dependencies": { - "@openabcode/ai": "^1.1.0", + "@openabcode/ai": "^1.1.1", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" @@ -714,8 +714,8 @@ } }, "node_modules/@openabcode/ai": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.1.1.tgz", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/sdk": "0.91.1", @@ -738,13 +738,13 @@ } }, "node_modules/@openabcode/coding-agent": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/coding-agent/-/coding-agent-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/coding-agent/-/coding-agent-1.1.1.tgz", "license": "AGPL-3.0", "dependencies": { - "@openabcode/agent-core": "^1.1.0", - "@openabcode/ai": "^1.1.0", - "@openabcode/tui": "^1.1.0", + "@openabcode/agent-core": "^1.1.1", + "@openabcode/ai": "^1.1.1", + "@openabcode/tui": "^1.1.1", "@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.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.1.1.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 3112b52..7c6e41c 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.1.0", + "version": "1.1.1", "private": true, "description": "Lockfile root used by the Pi installer and updater.", "dependencies": { - "@openabcode/coding-agent": "1.1.0" + "@openabcode/coding-agent": "1.1.1" }, "overrides": { "rimraf": "6.1.2", diff --git a/packages/coding-agent/npm-shrinkwrap.json b/packages/coding-agent/npm-shrinkwrap.json index 71e7c84..ca3ef59 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.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@openabcode/coding-agent", - "version": "1.1.0", + "version": "1.1.1", "license": "AGPL-3.0", "dependencies": { - "@openabcode/agent-core": "^1.1.0", - "@openabcode/ai": "^1.1.0", - "@openabcode/tui": "^1.1.0", + "@openabcode/agent-core": "^1.1.1", + "@openabcode/ai": "^1.1.1", + "@openabcode/tui": "^1.1.1", "@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.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/agent-core/-/agent-core-1.1.1.tgz", "license": "AGPL-3.0", "dependencies": { - "@openabcode/ai": "^1.1.0", + "@openabcode/ai": "^1.1.1", "ignore": "7.0.5", "typebox": "1.1.38", "yaml": "2.9.0" @@ -738,8 +738,8 @@ } }, "node_modules/@openabcode/ai": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/ai/-/ai-1.1.1.tgz", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/sdk": "0.91.1", @@ -762,8 +762,8 @@ } }, "node_modules/@openabcode/tui": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.1.0.tgz", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@openabcode/tui/-/tui-1.1.1.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 0f675cf..e47c779 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/coding-agent", - "version": "1.1.0", + "version": "1.1.1", "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.1.0", - "@openabcode/ai": "^1.1.0", - "@openabcode/tui": "^1.1.0", + "@openabcode/agent-core": "^1.1.1", + "@openabcode/ai": "^1.1.1", + "@openabcode/tui": "^1.1.1", "@silvia-odwyer/photon-node": "0.3.4", "chalk": "5.6.2", "cross-spawn": "7.0.6", diff --git a/packages/orchestrator/CHANGELOG.md b/packages/orchestrator/CHANGELOG.md index 4aeb4e2..7942029 100644 --- a/packages/orchestrator/CHANGELOG.md +++ b/packages/orchestrator/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 diff --git a/packages/orchestrator/package.json b/packages/orchestrator/package.json index 1b0434c..791dac3 100644 --- a/packages/orchestrator/package.json +++ b/packages/orchestrator/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/orchestrator", - "version": "1.1.0", + "version": "1.1.1", "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.1.0" + "@openabcode/coding-agent": "^1.1.1" }, "devDependencies": { "shx": "0.4.0" diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.md index 0785595..21d6e00 100644 --- a/packages/tui/CHANGELOG.md +++ b/packages/tui/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 diff --git a/packages/tui/package.json b/packages/tui/package.json index 8a0b558..bf0115b 100644 --- a/packages/tui/package.json +++ b/packages/tui/package.json @@ -1,6 +1,6 @@ { "name": "@openabcode/tui", - "version": "1.1.0", + "version": "1.1.1", "description": "Terminal User Interface library with differential rendering for efficient text-based applications", "type": "module", "main": "dist/index.js", From 971640fcab4d1a3734aaecd900d5f8628bb613ba Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sun, 18 Oct 2026 17:18:34 +0800 Subject: [PATCH 5/5] Add [Unreleased] section for next cycle --- packages/agent/CHANGELOG.md | 2 ++ packages/ai/CHANGELOG.md | 2 ++ packages/coding-agent/CHANGELOG.md | 2 ++ packages/orchestrator/CHANGELOG.md | 2 ++ packages/tui/CHANGELOG.md | 2 ++ 5 files changed, 10 insertions(+) diff --git a/packages/agent/CHANGELOG.md b/packages/agent/CHANGELOG.md index f6c5739..5bf4c00 100644 --- a/packages/agent/CHANGELOG.md +++ b/packages/agent/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [Unreleased] + ## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 25668c7..bb954a2 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [Unreleased] + ## [1.1.1] - 2026-10-18 ### Changed diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index d8f3cd8..a6fb16f 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [Unreleased] + ## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 diff --git a/packages/orchestrator/CHANGELOG.md b/packages/orchestrator/CHANGELOG.md index 7942029..f85dd6d 100644 --- a/packages/orchestrator/CHANGELOG.md +++ b/packages/orchestrator/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [Unreleased] + ## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16 diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.md index 21d6e00..49c97df 100644 --- a/packages/tui/CHANGELOG.md +++ b/packages/tui/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [Unreleased] + ## [1.1.1] - 2026-10-18 ## [1.1.0] - 2026-09-16