import type { ModelInputModality, ReasoningEffort } from '@namzu/sdk' /** Zen's independently routed, billed services. */ export type ZenService = 'zen' | 'go' /** Native wire format documented for this exact model and service. */ export type ZenProtocol = 'chat' | 'responses' | 'messages' | 'google' /** A supported model in the pinned Zen catalogue. */ export interface ZenModel { readonly id: string readonly name: string readonly protocol: ZenProtocol readonly contextWindow?: number readonly maxOutputTokens?: number readonly inputModalities?: readonly ModelInputModality[] /** USD per million uncached input tokens at the documented base tier. */ readonly inputPrice: number /** USD per million output tokens at the documented base tier. */ readonly outputPrice: number readonly supportsToolUse: boolean readonly supportsStreaming: boolean /** True only for verified direct-anonymous Zen models; zero price does not grant access. */ readonly supportsAnonymousAccess?: boolean /** False: the limits are conservative placeholders models.dev has not published. */ readonly limitsVerified?: false /** Exact advertised selectable effort levels; empty means no effort selector. */ readonly effortLevels?: readonly ReasoningEffort[] } /* * GENERATED FILE — do not edit. Regenerate with: * * pnpm --filter @namzu/zen build && node scripts/generate-zen-models.mjs * * A curation decision is an edit to src/models.review.json, and how a field is * derived is an edit to src/catalogue/derive.ts. Both survive regeneration; a * hand edit here does not. * * Refreshed: 2026-10-16 * * This is the BUNDLED snapshot: what the driver knows with no network. A host * can derive a fresher roster at run time from the same sources, by the same * rules, through `@namzu/zen/catalogue` and hand it to the provider as * `ZenConfig.catalogue`; the CLI does that in the background on every launch. * * Routes come from each service's own documentation page, as the pair * (endpoint, AI SDK package) that page states per model; both halves must agree * or the run stops. Three Go ids have narrow pinned-route exceptions in * src/catalogue/derive.ts. Prices come from the per-1M-token table at the base * tier, and a model with no price row there must be named in the page's * free-model list and is then zero. Limits, tool support, modalities and effort * options come from the matching provider entry in models.dev, where the * upstream project keeps them. models.dev states an npm package for both * services — one per provider, and one per model for some of its entries. * Neither is used as a route: the provider-level one names a single * Chat-Completions package for both, which would send the Go Qwen rows — * documented on `/messages` — to Chat Completions, and the per-model one is * stated for fewer than half the documented models, so it cannot route the * rest. * * Not every model either service serves is carried here. A model that is * documented and not carried is omitted by name, with a reason, in * src/models.review.json, and the generator refuses to write while a * documented model is neither carried nor omitted. It also reads what the two * services' own `/models` answers say they serve: an id served and documented * nowhere has no derivable wire, so it is reported as a decision too, rather * than dropped by the driver in silence. * * Prices are estimates, not invoices: context tiers, cache, Go peak/off-peak * rates, subscription allowances and promotions can change the effective cost. * The table is read at its base tier, so Go DeepSeek entries are off-peak. PDF * input is the SDK's document modality; audio/video are omitted because the SDK * does not expose those input kinds. * * Promotional free models with documented routes and complete metadata are * included at their advertised zero price. Direct anonymous admission is a * separate, live-verified curation in src/catalogue/derive.ts and still requires * an entry in the page's free-model list. OpenCode's own loader uses the public * sentinel when credentials are absent: * https://github.com/anomalyco/opencode/blob/16747470f976aca3d362ad730bcd3fe82ecc2c9a/packages/opencode/src/provider/provider.ts#L185 * Unknown IDs have no inferred protocol or limits. MiniMax and Qwen demonstrate * why routes must be recorded per service/model. */ function freezeModels(models: ZenModel[]): readonly ZenModel[] { for (const model of models) { if (model.inputModalities) Object.freeze(model.inputModalities) if (model.effortLevels) Object.freeze(model.effortLevels) Object.freeze(model) } return Object.freeze(models) } const ZEN_MODELS = freezeModels([ { id: 'gpt-6-astra', name: 'GPT 6 Astra', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 10.0, outputPrice: 50.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-6-sol', name: 'GPT 6 Sol', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 10.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-6.1-sol', name: 'GPT 6.1 Sol', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 10.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-6-luna', name: 'GPT 6 Luna', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.1, outputPrice: 0.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-5.6-sol', name: 'GPT 5.6 Sol', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 4.0, outputPrice: 20.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-5.6-terra', name: 'GPT 5.6 Terra', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 12.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-5.6-luna', name: 'GPT 5.6 Luna', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.2, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-5.5', name: 'GPT 5.5', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 5.0, outputPrice: 30.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.5-pro', name: 'GPT 5.5 Pro', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 30.0, outputPrice: 180.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['medium', 'high', 'xhigh'], }, { id: 'gpt-5.4', name: 'GPT 5.4', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.5, outputPrice: 15.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.4-pro', name: 'GPT 5.4 Pro', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 30.0, outputPrice: 180.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['medium', 'high', 'xhigh'], }, { id: 'gpt-5.4-mini', name: 'GPT 5.4 Mini', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.75, outputPrice: 4.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.4-nano', name: 'GPT 5.4 Nano', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.2, outputPrice: 1.25, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.3-codex', name: 'GPT 5.3 Codex', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 1.75, outputPrice: 14.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.3-codex-spark', name: 'GPT 5.3 Codex Spark', protocol: 'responses', contextWindow: 128000, maxOutputTokens: 128000, inputModalities: ['text'], inputPrice: 1.75, outputPrice: 14.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.2', name: 'GPT 5.2', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image'], inputPrice: 1.75, outputPrice: 14.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-5.1', name: 'GPT 5.1', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image'], inputPrice: 1.07, outputPrice: 8.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high'], }, { id: 'gpt-5', name: 'GPT 5', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image'], inputPrice: 1.07, outputPrice: 8.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high'], }, { id: 'gpt-5-nano', name: 'GPT 5 Nano', protocol: 'responses', contextWindow: 400000, maxOutputTokens: 128000, inputModalities: ['text', 'image'], inputPrice: 0.05, outputPrice: 0.4, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high'], }, { id: 'claude-fable-5-1', name: 'Claude Fable 5.1', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 10.0, outputPrice: 50.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-fable-5', name: 'Claude Fable 5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 10.0, outputPrice: 50.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-opus-5-5', name: 'Claude Opus 5.5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 4.0, outputPrice: 20.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-opus-5', name: 'Claude Opus 5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 5.0, outputPrice: 25.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-opus-4-8', name: 'Claude Opus 4.8', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 5.0, outputPrice: 25.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-opus-4-7', name: 'Claude Opus 4.7', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 5.0, outputPrice: 25.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-opus-4-6', name: 'Claude Opus 4.6', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 5.0, outputPrice: 25.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'max'], }, { id: 'claude-opus-4-5', name: 'Claude Opus 4.5', protocol: 'messages', contextWindow: 200000, maxOutputTokens: 64000, inputModalities: ['text', 'image', 'document'], inputPrice: 5.0, outputPrice: 25.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'claude-sonnet-5-5', name: 'Claude Sonnet 5.5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 10.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-sonnet-5', name: 'Claude Sonnet 5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 10.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-sonnet-4-6', name: 'Claude Sonnet 4.6', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 64000, inputModalities: ['text', 'image', 'document'], inputPrice: 3.0, outputPrice: 15.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'max'], }, { id: 'claude-sonnet-4-5', name: 'Claude Sonnet 4.5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 64000, inputModalities: ['text', 'image', 'document'], inputPrice: 3.0, outputPrice: 15.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'claude-haiku-5-5', name: 'Claude Haiku 5.5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.1, outputPrice: 0.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-haiku-4-5', name: 'Claude Haiku 4.5', protocol: 'messages', contextWindow: 200000, maxOutputTokens: 64000, inputModalities: ['text', 'image', 'document'], inputPrice: 1.0, outputPrice: 5.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'gemini-3.8-flash', name: 'Gemini 3.8 Flash', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 1.5, outputPrice: 7.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'gemini-3.7-flash', name: 'Gemini 3.7 Flash', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 1.5, outputPrice: 7.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'gemini-3.6-flash', name: 'Gemini 3.6 Flash', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 1.5, outputPrice: 7.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high'], }, { id: 'gemini-3.5-flash', name: 'Gemini 3.5 Flash', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 1.5, outputPrice: 9.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high'], }, { id: 'gemini-3.5-flash-lite', name: 'Gemini 3.5 Flash Lite', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 0.3, outputPrice: 2.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high'], }, { id: 'gemini-3.1-pro', name: 'Gemini 3.1 Pro', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 12.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'gemini-3-flash', name: 'Gemini 3 Flash', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 0.5, outputPrice: 3.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high'], }, { id: 'grok-4.7', name: 'Grok 4.7', protocol: 'responses', contextWindow: 500000, maxOutputTokens: 500000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 6.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh'], }, { id: 'grok-4.6', name: 'Grok 4.6', protocol: 'responses', contextWindow: 500000, maxOutputTokens: 500000, inputModalities: ['text', 'image'], inputPrice: 2.0, outputPrice: 6.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh'], }, { id: 'grok-4.5', name: 'Grok 4.5', protocol: 'responses', contextWindow: 500000, maxOutputTokens: 500000, inputModalities: ['text', 'image'], inputPrice: 2.0, outputPrice: 6.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'grok-build-0.1', name: 'Grok Build 0.1', protocol: 'responses', contextWindow: 256000, maxOutputTokens: 256000, inputModalities: ['text', 'image', 'document'], inputPrice: 1.0, outputPrice: 2.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'muse-spark-1.3', name: 'Muse Spark 1.3', protocol: 'responses', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 1.25, outputPrice: 4.25, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], }, { id: 'muse-spark-1.2', name: 'Muse Spark 1.2', protocol: 'responses', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 1.25, outputPrice: 4.25, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], }, { id: 'qwen3.8-max', name: 'Qwen3.8 Max', protocol: 'chat', contextWindow: 262144, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 2.0, outputPrice: 6.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'qwen3.8-flash', name: 'Qwen3.8 Flash', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0.15, outputPrice: 0.47, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'xhigh'], }, { id: 'qwen3.6-plus', name: 'Qwen3.6 Plus', protocol: 'messages', contextWindow: 262144, maxOutputTokens: 65536, inputModalities: ['text', 'image'], inputPrice: 0.5, outputPrice: 3.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'qwen3.5-plus', name: 'Qwen3.5 Plus', protocol: 'messages', contextWindow: 262144, maxOutputTokens: 65536, inputModalities: ['text', 'image'], inputPrice: 0.2, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'deepseek-v4.1-flash', name: 'DeepSeek V4.1 Flash', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 384000, inputModalities: ['text', 'image'], inputPrice: 0.3, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'deepseek-v4-pro', name: 'DeepSeek V4 Pro', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 384000, inputModalities: ['text'], inputPrice: 1.74, outputPrice: 3.48, supportsToolUse: true, supportsStreaming: true, effortLevels: ['high', 'max'], }, { id: 'minimax-m3', name: 'MiniMax M3', protocol: 'chat', contextWindow: 512000, maxOutputTokens: 128000, inputModalities: ['text', 'image'], inputPrice: 0.3, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'minimax-m2.7', name: 'MiniMax M2.7', protocol: 'chat', contextWindow: 204800, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 0.3, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'glm-5.3-flash', name: 'GLM 5.3 Flash', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 0.15, outputPrice: 0.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'glm-5.3', name: 'GLM 5.3', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 1.4, outputPrice: 4.4, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'glm-5.2', name: 'GLM 5.2', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 1.4, outputPrice: 4.4, supportsToolUse: true, supportsStreaming: true, effortLevels: ['high', 'max'], }, { id: 'glm-5.1', name: 'GLM 5.1', protocol: 'chat', contextWindow: 204800, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 1.4, outputPrice: 4.4, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'kimi-k2.6', name: 'Kimi K2.6', protocol: 'chat', contextWindow: 262144, maxOutputTokens: 65536, inputModalities: ['text', 'image'], inputPrice: 0.95, outputPrice: 4.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'kimi-k2.7-code', name: 'Kimi K2.7 Code', protocol: 'chat', contextWindow: 262144, maxOutputTokens: 262144, inputModalities: ['text', 'image'], inputPrice: 0.95, outputPrice: 4.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'kimi-k3', name: 'Kimi K3', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 3.0, outputPrice: 15.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['max'], }, { id: 'big-pickle', name: 'Big Pickle', protocol: 'chat', contextWindow: 200000, maxOutputTokens: 32000, inputModalities: ['text'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'glm-5.3-flash-free', name: 'GLM-5.3-Flash Free', protocol: 'chat', contextWindow: 200000, maxOutputTokens: 32000, inputModalities: ['text', 'image', 'document'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'deepseek-v4.1-flash-free', name: 'DeepSeek V4.1 Flash Free', protocol: 'chat', contextWindow: 200000, maxOutputTokens: 32000, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'space-bunny-free', supportsAnonymousAccess: true, name: 'Space Bunny Free', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 524288, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'beam-free', name: 'Beam Free', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'll-alpha-free', name: 'LL Alpha Free', protocol: 'chat', contextWindow: 262144, maxOutputTokens: 65536, inputModalities: ['text'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'longcat-2.5-preview-free', name: 'LongCat 2.5 Preview Free', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'exo-free', name: 'Exo Free', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['high'], }, { id: 'mimo-v2.6-flash-free', name: 'MiMo-V2.6-Flash Free', protocol: 'chat', contextWindow: 200000, maxOutputTokens: 32000, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'mimo-v2.5-free', name: 'MiMo-V2.5 Free', protocol: 'chat', contextWindow: 200000, maxOutputTokens: 32000, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'nemotron-3-ultra-free', name: 'Nemotron 3 Ultra Free', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'nemotron-3.5-lightning-free', name: 'Nemotron 3.5 Lightning Free', protocol: 'chat', contextWindow: 262144, maxOutputTokens: 262144, inputModalities: ['text'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'nemotron-3.5-super-vl-free', name: 'Nemotron 3.5 Super VL Free', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'minimal', 'low', 'medium', 'high', 'xhigh'], }, { id: 'muse-spark-1.3-contributor-free', name: 'Muse Spark 1.3 Contributor Free', protocol: 'responses', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], }, ]) const GO_MODELS = freezeModels([ { id: 'grok-4.7', name: 'Grok 4.7', protocol: 'responses', contextWindow: 500000, maxOutputTokens: 500000, inputModalities: ['text', 'image', 'document'], inputPrice: 2.0, outputPrice: 6.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh'], }, { id: 'gpt-6-luna', name: 'GPT 6 Luna', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.1, outputPrice: 0.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gpt-5.6-luna', name: 'GPT 5.6 Luna', protocol: 'responses', contextWindow: 1050000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.2, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'claude-haiku-5-5', name: 'Claude Haiku 5.5', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image', 'document'], inputPrice: 0.1, outputPrice: 0.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'gemini-4-argon-contributor', name: 'Gemini 4 Argon Contributor', protocol: 'google', contextWindow: 1048576, maxOutputTokens: 65536, inputModalities: ['text', 'image', 'document'], inputPrice: 4.0, outputPrice: 20.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'glm-5.3-flash', name: 'GLM-5.3-Flash', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 0.15, outputPrice: 0.5, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'glm-5.3', name: 'GLM-5.3', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 1.4, outputPrice: 4.4, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'glm-5.2', name: 'GLM-5.2', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 1.4, outputPrice: 4.4, supportsToolUse: true, supportsStreaming: true, effortLevels: ['high', 'max'], }, { id: 'kimi-k3', name: 'Kimi K3', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 3.0, outputPrice: 15.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['max'], }, { id: 'kimi-k2.7-code', name: 'Kimi K2.7 Code', protocol: 'chat', contextWindow: 262144, maxOutputTokens: 262144, inputModalities: ['text', 'image'], inputPrice: 0.95, outputPrice: 4.0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'longcat-2.0', name: 'LongCat-2.0', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 0.3, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'deepseek-v4.1-flash', name: 'DeepSeek V4.1 Flash', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 384000, inputModalities: ['text', 'image'], inputPrice: 0.15, outputPrice: 0.6, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'high', 'max'], }, { id: 'deepseek-v4-pro', name: 'DeepSeek V4 Pro', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 384000, inputModalities: ['text'], inputPrice: 0.66, outputPrice: 1.98, supportsToolUse: true, supportsStreaming: true, effortLevels: ['high', 'max'], }, { id: 'mimo-v2.6-flash', name: 'MiMo-V2.6-Flash', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0.14, outputPrice: 0.28, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'mimo-v2.6-pro', name: 'MiMo-V2.6-Pro', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0.435, outputPrice: 0.87, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'mimo-v2.5', name: 'MiMo-V2.5', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 128000, inputModalities: ['text', 'image'], inputPrice: 0.14, outputPrice: 0.28, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'mimo-v2.5-pro', name: 'MiMo-V2.5-Pro', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 128000, inputModalities: ['text'], inputPrice: 0.435, outputPrice: 0.87, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'minimax-m3', name: 'MiniMax M3', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0.3, outputPrice: 1.2, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'muse-spark-1.3-contributor', name: 'Muse Spark 1.3 Contributor', protocol: 'responses', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 0.1, outputPrice: 0.2, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], }, { id: 'muse-spark-1.2-contributor', name: 'Muse Spark 1.2 Contributor', protocol: 'responses', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text', 'image', 'document'], inputPrice: 0.1, outputPrice: 0.2, supportsToolUse: true, supportsStreaming: true, effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], }, { id: 'qwen3.8-max', name: 'Qwen3.8 Max', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 2.0, outputPrice: 6.0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'xhigh'], }, { id: 'qwen3.8-flash', name: 'Qwen3.8 Flash', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0.15, outputPrice: 0.47, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'xhigh'], }, { id: 'qwen3.7-plus', name: 'Qwen3.7 Plus', protocol: 'messages', contextWindow: 1000000, maxOutputTokens: 65536, inputModalities: ['text', 'image'], inputPrice: 0.4, outputPrice: 1.6, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'hy4-preview', name: 'Hy4 preview', protocol: 'chat', contextWindow: 1024000, maxOutputTokens: 64000, inputModalities: ['text'], inputPrice: 0.834, outputPrice: 2.501, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'high'], }, { id: 'hy3', name: 'Hy3', protocol: 'chat', contextWindow: 256000, maxOutputTokens: 128000, inputModalities: ['text'], inputPrice: 0.14, outputPrice: 0.58, supportsToolUse: true, supportsStreaming: true, effortLevels: ['none', 'low', 'high'], }, { id: 'space-bunny', name: 'Space Bunny', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 524288, inputModalities: ['text', 'image'], inputPrice: 0.15, outputPrice: 0.6, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, { id: 'longcat-2.5-preview-free', name: 'LongCat 2.5 Preview Free', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 131072, inputModalities: ['text', 'image'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: [], }, { id: 'step-5-preview', name: 'Step 5 Preview', protocol: 'chat', contextWindow: 1000000, maxOutputTokens: 65536, inputModalities: ['text', 'image'], inputPrice: 1.0, outputPrice: 2.7, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high'], }, { id: 'beam-free', name: 'Beam Free', protocol: 'chat', contextWindow: 1048576, maxOutputTokens: 131072, inputModalities: ['text'], inputPrice: 0, outputPrice: 0, supportsToolUse: true, supportsStreaming: true, effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], }, ]) /** * Reviewed omissions, as `service/id`: models a source names that this * snapshot deliberately does not carry. A runtime refresh through * `@namzu/zen/catalogue` honours the same decisions by default. */ export const ZEN_OMITTED_MODELS: readonly string[] = Object.freeze([ 'go/glm-5.1', 'go/grok-4.6', 'go/kimi-k2.6', 'go/minimax-m2.5', 'go/minimax-m2.7', 'go/omen-alpha', 'go/qwen3.6-plus', 'go/qwen3.7-max', 'zen/claude-opus-5-5-backup', 'zen/deepseek-v4-flash', 'zen/gemini-4-argon', 'zen/glm-5', 'zen/gpt-5-codex', 'zen/gpt-5.1-codex', 'zen/gpt-5.1-codex-max', 'zen/gpt-5.1-codex-mini', 'zen/gpt-5.2-codex', 'zen/jev-1.13', 'zen/jev-1.13-free', 'zen/kimi-k2.5', 'zen/minimax-m2.5', 'zen/mistral-large-4', 'zen/muse-spark-1.2-contributor-free', 'zen/qwen3.7-max', 'zen/qwen3.7-plus', 'zen/test', ]) /** Supported metadata; actual account availability is established by live discovery. */ export function getZenModels(service: ZenService): readonly ZenModel[] { return service === 'zen' ? ZEN_MODELS : GO_MODELS } /** Exact wire ID lookup. Zen CLI prefixes and unknown IDs are not guessed. */ export function findZenModel(service: ZenService, id: string): ZenModel | undefined { return getZenModels(service).find((model) => model.id === id) }