// Auto-generated by scripts/sync-pi-models.ts — DO NOT EDIT MANUALLY. // Source: earendil-works/pi @ packages/ai/src/models.generated.ts // Last sync: 2026-06-11T19:01:17.997Z export interface PiCatalogModel { id: string; label: string; /** Model context window in tokens — feeds the supervisor's proactive session recycling. */ contextWindow?: number; /** Max output tokens per request — caps tool-call/output size per provider round. */ maxOutputTokens?: number; /** Input modalities (e.g. ["text","image"]) — gates image attachments on non-vision models. */ input?: string[]; } export const PI_MODELS_CATALOG: Record = { "google": [ { "id": "gemini-3.5-flash", "label": "Gemini 3.5 Flash", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-3.1-flash-lite", "label": "Gemini 3.1 Flash Lite", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-3.1-flash-lite-preview", "label": "Gemini 3.1 Flash Lite Preview", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-3.1-pro-preview", "label": "Gemini 3.1 Pro Preview", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-3-flash-preview", "label": "Gemini 3 Flash Preview", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-3-pro-preview", "label": "Gemini 3 Pro Preview", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-2.5-flash", "label": "Gemini 2.5 Flash", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-2.5-flash-lite", "label": "Gemini 2.5 Flash-Lite", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-2.5-pro", "label": "Gemini 2.5 Pro", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-2.0-flash", "label": "Gemini 2.0 Flash", "contextWindow": 1048576, "maxOutputTokens": 8192, "input": [ "text", "image" ] }, { "id": "gemini-2.0-flash-lite", "label": "Gemini 2.0 Flash-Lite", "contextWindow": 1048576, "maxOutputTokens": 8192, "input": [ "text", "image" ] }, { "id": "gemini-flash-latest", "label": "Gemini Flash Latest", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] }, { "id": "gemini-flash-lite-latest", "label": "Gemini Flash-Lite Latest", "contextWindow": 1048576, "maxOutputTokens": 65536, "input": [ "text", "image" ] } ], "deepseek": [ { "id": "deepseek-v4-flash", "label": "DeepSeek V4 Flash", "contextWindow": 1000000, "maxOutputTokens": 384000, "input": [ "text" ] }, { "id": "deepseek-v4-pro", "label": "DeepSeek V4 Pro", "contextWindow": 1000000, "maxOutputTokens": 384000, "input": [ "text" ] } ], "groq": [ { "id": "openai/gpt-oss-120b", "label": "GPT OSS 120B", "contextWindow": 131072, "maxOutputTokens": 65536, "input": [ "text" ] }, { "id": "qwen-qwq-32b", "label": "Qwen QwQ 32B", "contextWindow": 131072, "maxOutputTokens": 16384, "input": [ "text" ] }, { "id": "mistral-saba-24b", "label": "Mistral Saba 24B", "contextWindow": 32768, "maxOutputTokens": 32768, "input": [ "text" ] }, { "id": "openai/gpt-oss-20b", "label": "GPT OSS 20B", "contextWindow": 131072, "maxOutputTokens": 65536, "input": [ "text" ] }, { "id": "openai/gpt-oss-safeguard-20b", "label": "Safety GPT OSS 20B", "contextWindow": 131072, "maxOutputTokens": 65536, "input": [ "text" ] }, { "id": "meta-llama/llama-4-maverick-17b-128e-instruct", "label": "Llama 4 Maverick 17B", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text", "image" ] }, { "id": "meta-llama/llama-4-scout-17b-16e-instruct", "label": "Llama 4 Scout 17B", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text", "image" ] }, { "id": "llama-3.3-70b-versatile", "label": "Llama 3.3 70B Versatile", "contextWindow": 131072, "maxOutputTokens": 32768, "input": [ "text" ] }, { "id": "llama-3.1-8b-instant", "label": "Llama 3.1 8B Instant", "contextWindow": 131072, "maxOutputTokens": 131072, "input": [ "text" ] }, { "id": "llama3-70b-8192", "label": "Llama 3 70B", "contextWindow": 8192, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "llama3-8b-8192", "label": "Llama 3 8B", "contextWindow": 8192, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "qwen/qwen3-32b", "label": "Qwen3 32B", "contextWindow": 131072, "maxOutputTokens": 40960, "input": [ "text" ] }, { "id": "gemma2-9b-it", "label": "Gemma 2 9B", "contextWindow": 8192, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "moonshotai/kimi-k2-instruct", "label": "Kimi K2 Instruct", "contextWindow": 131072, "maxOutputTokens": 16384, "input": [ "text" ] }, { "id": "moonshotai/kimi-k2-instruct-0905", "label": "Kimi K2 Instruct 0905", "contextWindow": 262144, "maxOutputTokens": 16384, "input": [ "text" ] }, { "id": "deepseek-r1-distill-llama-70b", "label": "DeepSeek R1 Distill Llama 70B", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "groq/compound", "label": "Compound", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "groq/compound-mini", "label": "Compound Mini", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text" ] } ], "xai": [ { "id": "grok-4.20-0309-non-reasoning", "label": "Grok 4.20 (Non-Reasoning)", "contextWindow": 1000000, "maxOutputTokens": 30000, "input": [ "text", "image" ] }, { "id": "grok-4.20-0309-reasoning", "label": "Grok 4.20 (Reasoning)", "contextWindow": 1000000, "maxOutputTokens": 30000, "input": [ "text", "image" ] }, { "id": "grok-4.3", "label": "Grok 4.3", "contextWindow": 1000000, "maxOutputTokens": 30000, "input": [ "text", "image" ] }, { "id": "grok-3", "label": "Grok 3", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "grok-3-fast", "label": "Grok 3 Fast", "contextWindow": 131072, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "grok-code-fast-1", "label": "Grok Code Fast 1", "contextWindow": 32768, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "grok-build-0.1", "label": "Grok Build 0.1", "contextWindow": 256000, "maxOutputTokens": 256000, "input": [ "text", "image" ] } ], "cerebras": [ { "id": "gpt-oss-120b", "label": "GPT OSS 120B", "contextWindow": 131072, "maxOutputTokens": 32768, "input": [ "text" ] }, { "id": "zai-glm-4.7", "label": "Z.AI GLM-4.7", "contextWindow": 131072, "maxOutputTokens": 40000, "input": [ "text" ] }, { "id": "llama3.1-8b", "label": "Llama 3.1 8B", "contextWindow": 32000, "maxOutputTokens": 8000, "input": [ "text" ] } ], "mistral": [ { "id": "mistral-medium-2604", "label": "Mistral Medium 3.5", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text", "image" ] }, { "id": "mistral-small-2603", "label": "Mistral Small 4", "contextWindow": 256000, "maxOutputTokens": 256000, "input": [ "text", "image" ] }, { "id": "devstral-2512", "label": "Devstral 2", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text" ] }, { "id": "labs-devstral-small-2512", "label": "Devstral Small 2", "contextWindow": 256000, "maxOutputTokens": 256000, "input": [ "text", "image" ] }, { "id": "mistral-large-2512", "label": "Mistral Large 3", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text", "image" ] }, { "id": "mistral-medium-2508", "label": "Mistral Medium 3.1", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text", "image" ] }, { "id": "devstral-medium-2507", "label": "Devstral Medium", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "devstral-small-2507", "label": "Devstral Small", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "mistral-small-2506", "label": "Mistral Small 3.2", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "devstral-small-2505", "label": "Devstral Small 2505", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "mistral-medium-2505", "label": "Mistral Medium 3", "contextWindow": 131072, "maxOutputTokens": 131072, "input": [ "text", "image" ] }, { "id": "mistral-large-2411", "label": "Mistral Large 2.1", "contextWindow": 131072, "maxOutputTokens": 16384, "input": [ "text" ] }, { "id": "pixtral-12b", "label": "Pixtral 12B", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "ministral-8b-latest", "label": "Ministral 8B (latest)", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "open-mixtral-8x22b", "label": "Mixtral 8x22B", "contextWindow": 64000, "maxOutputTokens": 64000, "input": [ "text" ] }, { "id": "open-mixtral-8x7b", "label": "Mixtral 8x7B", "contextWindow": 32000, "maxOutputTokens": 32000, "input": [ "text" ] }, { "id": "open-mistral-7b", "label": "Mistral 7B", "contextWindow": 8000, "maxOutputTokens": 8000, "input": [ "text" ] }, { "id": "mistral-medium-3.5", "label": "Mistral Medium 3.5", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text", "image" ] }, { "id": "ministral-3b-latest", "label": "Ministral 3B (latest)", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "codestral-latest", "label": "Codestral (latest)", "contextWindow": 256000, "maxOutputTokens": 4096, "input": [ "text" ] }, { "id": "devstral-latest", "label": "Devstral 2", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text" ] }, { "id": "devstral-medium-latest", "label": "Devstral 2 (latest)", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text" ] }, { "id": "magistral-medium-latest", "label": "Magistral Medium (latest)", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text" ] }, { "id": "magistral-small", "label": "Magistral Small", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "mistral-large-latest", "label": "Mistral Large (latest)", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text", "image" ] }, { "id": "mistral-medium-latest", "label": "Mistral Medium (latest)", "contextWindow": 262144, "maxOutputTokens": 262144, "input": [ "text", "image" ] }, { "id": "mistral-nemo", "label": "Mistral Nemo", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "mistral-small-latest", "label": "Mistral Small (latest)", "contextWindow": 256000, "maxOutputTokens": 256000, "input": [ "text", "image" ] }, { "id": "open-mistral-nemo", "label": "Open Mistral Nemo", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text" ] }, { "id": "pixtral-large-latest", "label": "Pixtral Large (latest)", "contextWindow": 128000, "maxOutputTokens": 128000, "input": [ "text", "image" ] } ], "openai-api": [ { "id": "gpt-5.5", "label": "GPT-5.5", "contextWindow": 272000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.5-pro", "label": "GPT-5.5 Pro", "contextWindow": 1050000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.4", "label": "GPT-5.4", "contextWindow": 272000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.4-mini", "label": "GPT-5.4 mini", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.4-nano", "label": "GPT-5.4 nano", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.4-pro", "label": "GPT-5.4 Pro", "contextWindow": 1050000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.3-chat-latest", "label": "GPT-5.3 Chat (latest)", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "gpt-5.3-codex", "label": "GPT-5.3 Codex", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.3-codex-spark", "label": "GPT-5.3 Codex Spark", "contextWindow": 128000, "maxOutputTokens": 32000, "input": [ "text", "image" ] }, { "id": "gpt-5.2", "label": "GPT-5.2", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.2-chat-latest", "label": "GPT-5.2 Chat", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "gpt-5.2-codex", "label": "GPT-5.2 Codex", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.2-pro", "label": "GPT-5.2 Pro", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.1", "label": "GPT-5.1", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.1-chat-latest", "label": "GPT-5.1 Chat", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "gpt-5.1-codex", "label": "GPT-5.1 Codex", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.1-codex-max", "label": "GPT-5.1 Codex Max", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5.1-codex-mini", "label": "GPT-5.1 Codex mini", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5", "label": "GPT-5", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5-chat-latest", "label": "GPT-5 Chat Latest", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "gpt-5-codex", "label": "GPT-5-Codex", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5-mini", "label": "GPT-5 Mini", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5-nano", "label": "GPT-5 Nano", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-5-pro", "label": "GPT-5 Pro", "contextWindow": 400000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "gpt-4.1", "label": "GPT-4.1", "contextWindow": 1047576, "maxOutputTokens": 32768, "input": [ "text", "image" ] }, { "id": "gpt-4.1-mini", "label": "GPT-4.1 mini", "contextWindow": 1047576, "maxOutputTokens": 32768, "input": [ "text", "image" ] }, { "id": "gpt-4.1-nano", "label": "GPT-4.1 nano", "contextWindow": 1047576, "maxOutputTokens": 32768, "input": [ "text", "image" ] }, { "id": "gpt-4", "label": "GPT-4", "contextWindow": 8192, "maxOutputTokens": 8192, "input": [ "text" ] }, { "id": "gpt-4o", "label": "GPT-4o", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "gpt-4o-mini", "label": "GPT-4o mini", "contextWindow": 128000, "maxOutputTokens": 16384, "input": [ "text", "image" ] }, { "id": "o4-mini", "label": "o4-mini", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text", "image" ] }, { "id": "o4-mini-deep-research", "label": "o4-mini-deep-research", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text", "image" ] }, { "id": "o3", "label": "o3", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text", "image" ] }, { "id": "o3-deep-research", "label": "o3-deep-research", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text", "image" ] }, { "id": "o3-mini", "label": "o3-mini", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text" ] }, { "id": "o3-pro", "label": "o3-pro", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text", "image" ] }, { "id": "o1", "label": "o1", "contextWindow": 200000, "maxOutputTokens": 100000, "input": [ "text", "image" ] } ], "anthropic-api": [ { "id": "claude-fable-5", "label": "Claude Fable 5", "contextWindow": 1000000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "claude-haiku-4-5", "label": "Claude Haiku 4.5 (latest)", "contextWindow": 200000, "maxOutputTokens": 64000, "input": [ "text", "image" ] }, { "id": "claude-opus-4-0", "label": "Claude Opus 4 (latest)", "contextWindow": 200000, "maxOutputTokens": 32000, "input": [ "text", "image" ] }, { "id": "claude-opus-4-1", "label": "Claude Opus 4.1 (latest)", "contextWindow": 200000, "maxOutputTokens": 32000, "input": [ "text", "image" ] }, { "id": "claude-opus-4-5", "label": "Claude Opus 4.5 (latest)", "contextWindow": 200000, "maxOutputTokens": 64000, "input": [ "text", "image" ] }, { "id": "claude-opus-4-6", "label": "Claude Opus 4.6", "contextWindow": 1000000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "claude-opus-4-7", "label": "Claude Opus 4.7", "contextWindow": 1000000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "claude-opus-4-8", "label": "Claude Opus 4.8", "contextWindow": 1000000, "maxOutputTokens": 128000, "input": [ "text", "image" ] }, { "id": "claude-sonnet-4-0", "label": "Claude Sonnet 4 (latest)", "contextWindow": 200000, "maxOutputTokens": 64000, "input": [ "text", "image" ] }, { "id": "claude-sonnet-4-5", "label": "Claude Sonnet 4.5 (latest)", "contextWindow": 200000, "maxOutputTokens": 64000, "input": [ "text", "image" ] }, { "id": "claude-sonnet-4-6", "label": "Claude Sonnet 4.6", "contextWindow": 1000000, "maxOutputTokens": 64000, "input": [ "text", "image" ] }, { "id": "claude-3-5-haiku-latest", "label": "Claude Haiku 3.5 (latest)", "contextWindow": 200000, "maxOutputTokens": 8192, "input": [ "text", "image" ] } ] };