Skip to main content

Models and bring your own key

The model is the AI that reads the conversation and writes the reply. Different models trade off quality, speed and cost, much like hiring a senior specialist versus a quick junior assistant. Every agent picks its own model with model, and agents in the same squad can use different ones.

Custodian(model="anthropic/claude-sonnet-5.5", system_prompt="...")

Available models​

Hundreds of models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, xAI and more. Search or filter, then copy the ID into model. Models with a ✓ under Tools can use built-in tools.

ModelID for modelContextTools
GPT-6.1 Sol ProOpenAIopenai/gpt-6.1-sol-pro1.1M✓
GPT-6.1 SolOpenAIopenai/gpt-6.1-sol1.1M✓
GPT-6 Luna ProOpenAIopenai/gpt-6-luna-pro1.1M✓
GPT-6 LunaOpenAIopenai/gpt-6-luna1.1M✓
GPT-6 Sol ProOpenAIopenai/gpt-6-sol-pro1.1M✓
GPT-6 SolOpenAIopenai/gpt-6-sol1.1M✓
GPT-6 AstraOpenAIopenai/gpt-6-astra1.1M✓
GPT-6 Astra ProOpenAIopenai/gpt-6-astra-pro1.1M✓
GPT-5.6 Luna ProOpenAIopenai/gpt-5.6-luna-pro1.1M✓
GPT-5.6 LunaOpenAIopenai/gpt-5.6-luna1.1M✓
GPT-5.6 Terra ProOpenAIopenai/gpt-5.6-terra-pro1.1M✓
GPT-5.6 TerraOpenAIopenai/gpt-5.6-terra1.1M✓
GPT-5.6 Sol ProOpenAIopenai/gpt-5.6-sol-pro1.1M✓
GPT-5.6 SolOpenAIopenai/gpt-5.6-sol1.1M✓
GPT Chat LatestOpenAIopenai/gpt-chat-latest400K✓
GPT-5.5 ProOpenAIopenai/gpt-5.5-pro1.1M✓
GPT-5.5OpenAIopenai/gpt-5.51.1M✓
GPT-5.4 NanoOpenAIopenai/gpt-5.4-nano400K✓
GPT-5.4 MiniOpenAIopenai/gpt-5.4-mini400K✓
GPT-5.4 ProOpenAIopenai/gpt-5.4-pro1.1M✓
GPT-5.4OpenAIopenai/gpt-5.41.1M✓
GPT-5.3-CodexOpenAIopenai/gpt-5.3-codex400K✓
GPT-5.2-CodexOpenAIopenai/gpt-5.2-codex400K✓
GPT-5.2 ChatOpenAIopenai/gpt-5.2-chat128K✓
GPT-5.2 ProOpenAIopenai/gpt-5.2-pro400K✓
GPT-5.2OpenAIopenai/gpt-5.2400K✓
GPT-5.1-Codex-MaxOpenAIopenai/gpt-5.1-codex-max400K✓
GPT-5.1OpenAIopenai/gpt-5.1400K✓
GPT-5.1-CodexOpenAIopenai/gpt-5.1-codex400K✓
GPT-5.1-Codex-MiniOpenAIopenai/gpt-5.1-codex-mini400K✓
GPT-5 ProOpenAIopenai/gpt-5-pro400K✓
GPT-5OpenAIopenai/gpt-5400K✓
GPT-5 MiniOpenAIopenai/gpt-5-mini400K✓
GPT-5 NanoOpenAIopenai/gpt-5-nano400K✓
gpt-oss-120bOpenAIopenai/gpt-oss-120b131K✓
gpt-oss-20bOpenAIopenai/gpt-oss-20b131K✓
o3 ProOpenAIopenai/o3-pro200K✓
o4 Mini HighOpenAIopenai/o4-mini-high200K✓
o3OpenAIopenai/o3200K✓
o4 MiniOpenAIopenai/o4-mini200K✓
GPT-4.1OpenAIopenai/gpt-4.11M✓
GPT-4.1 MiniOpenAIopenai/gpt-4.1-mini1M✓
GPT-4.1 NanoOpenAIopenai/gpt-4.1-nano1M✓
o1-proOpenAIopenai/o1-pro200K
o3 Mini HighOpenAIopenai/o3-mini-high200K✓
o3 MiniOpenAIopenai/o3-mini200K✓
o1OpenAIopenai/o1200K✓
GPT-4o (2024-11-20)OpenAIopenai/gpt-4o-2024-11-20128K✓
GPT-4o (2024-08-06)OpenAIopenai/gpt-4o-2024-08-06128K✓
GPT-4o-miniOpenAIopenai/gpt-4o-mini128K✓
GPT-4o-mini (2024-07-18)OpenAIopenai/gpt-4o-mini-2024-07-18128K✓
GPT-4oOpenAIopenai/gpt-4o128K✓
GPT-4o (2024-05-13)OpenAIopenai/gpt-4o-2024-05-13128K✓
GPT-4 TurboOpenAIopenai/gpt-4-turbo128K✓
GPT-3.5 Turbo (older v0613)OpenAIopenai/gpt-3.5-turbo-06134K✓
GPT-3.5 Turbo InstructOpenAIopenai/gpt-3.5-turbo-instruct4K
GPT-3.5 Turbo 16kOpenAIopenai/gpt-3.5-turbo-16k16K✓
GPT-3.5 TurboOpenAIopenai/gpt-3.5-turbo16K✓
GPT-4OpenAIopenai/gpt-48K✓
Claude Sonnet 5.5Anthropicanthropic/claude-sonnet-5.51M✓
Claude Opus 5.5Anthropicanthropic/claude-opus-5.51M✓
Claude Fable 5.1Anthropicanthropic/claude-fable-5.11M✓
Claude Opus 5Anthropicanthropic/claude-opus-51M✓
Claude Sonnet 5Anthropicanthropic/claude-sonnet-51M✓
Claude Fable 5Anthropicanthropic/claude-fable-51M✓
Claude Opus 4.8Anthropicanthropic/claude-opus-4.81M✓
Claude Opus 4.7Anthropicanthropic/claude-opus-4.71M✓
Claude Sonnet 4.6Anthropicanthropic/claude-sonnet-4.61M✓
Claude Opus 4.6Anthropicanthropic/claude-opus-4.61M✓
Claude Opus 4.5Anthropicanthropic/claude-opus-4.5200K✓
Claude Haiku 4.5Anthropicanthropic/claude-haiku-4.5200K✓
Claude Sonnet 4.5Anthropicanthropic/claude-sonnet-4.51M✓
Claude Opus 4.1Anthropicanthropic/claude-opus-4.1200K✓
Claude Sonnet 4Anthropicanthropic/claude-sonnet-4200K✓
Gemini 3.8 FlashGooglegoogle/gemini-3.8-flash1M✓
Gemini 3.7 FlashGooglegoogle/gemini-3.7-flash1M✓
Gemini 3.6 FlashGooglegoogle/gemini-3.6-flash1M✓
Gemini 3.5 Flash LiteGooglegoogle/gemini-3.5-flash-lite1M✓
Gemini 3.5 FlashGooglegoogle/gemini-3.5-flash1M✓
Gemini 3.1 Flash LiteGooglegoogle/gemini-3.1-flash-lite1M✓
Gemma 4 26B A4B Googlegoogle/gemma-4-26b-a4b-it262K✓
Gemma 4 31BGooglegoogle/gemma-4-31b-it262K✓
Gemini 3.1 Flash Lite PreviewGooglegoogle/gemini-3.1-flash-lite-preview1M✓
Gemini 3.1 Pro Preview Custom ToolsGooglegoogle/gemini-3.1-pro-preview-customtools1M✓
Gemini 3.1 Pro PreviewGooglegoogle/gemini-3.1-pro-preview1M✓
Gemini 3 Flash PreviewGooglegoogle/gemini-3-flash-preview1M✓
Gemini 2.5 Flash LiteGooglegoogle/gemini-2.5-flash-lite1M✓
Gemini 2.5 FlashGooglegoogle/gemini-2.5-flash1M✓
Gemini 2.5 ProGooglegoogle/gemini-2.5-pro1M✓
Gemini 2.5 Pro Preview 06-05Googlegoogle/gemini-2.5-pro-preview1M✓
Gemma 3 4BGooglegoogle/gemma-3-4b-it131K
Gemma 3 12BGooglegoogle/gemma-3-12b-it131K✓
Gemma 3 27BGooglegoogle/gemma-3-27b-it131K✓
Gemma 2 27BGooglegoogle/gemma-2-27b-it8K
Muse Spark 1.3 ContributorMetameta/muse-spark-1.3-contributor1M✓
Muse Spark 1.3Metameta/muse-spark-1.31M✓
Muse Spark 1.2 ContributorMetameta/muse-spark-1.2-contributor1M✓
Muse Glimmer 30BMetameta/muse-glimmer-30b131K✓
Muse Spark 1.2Metameta/muse-spark-1.21M✓
Muse Spark 1.1Metameta/muse-spark-1.11M✓
Llama 4 MaverickMetameta-llama/llama-4-maverick1M✓
Llama 4 ScoutMetameta-llama/llama-4-scout1.3M✓
Llama 3.3 70B InstructMetameta-llama/llama-3.3-70b-instruct131K✓
Llama 3.2 1B InstructMetameta-llama/llama-3.2-1b-instruct60K
Llama 3.2 3B InstructMetameta-llama/llama-3.2-3b-instruct131K
Llama 3.1 70B InstructMetameta-llama/llama-3.1-70b-instruct131K✓
Llama 3.1 8B InstructMetameta-llama/llama-3.1-8b-instruct131K✓
Mistral Medium 3.5Mistralmistralai/mistral-medium-3-5262K✓
Mistral Small 4Mistralmistralai/mistral-small-2603262K✓
Devstral 2 2512Mistralmistralai/devstral-2512262K✓
Ministral 3 14B 2512Mistralmistralai/ministral-14b-2512262K✓
Ministral 3 8B 2512Mistralmistralai/ministral-8b-2512262K✓
Ministral 3 3B 2512Mistralmistralai/ministral-3b-2512131K✓
Mistral Large 3 2512Mistralmistralai/mistral-large-2512262K✓
Voxtral Small 24B 2507Mistralmistralai/voxtral-small-24b-250733K✓
Mistral Medium 3.1Mistralmistralai/mistral-medium-3.1131K✓
Codestral 2508Mistralmistralai/codestral-2508256K✓
Mistral Small 3.2 24BMistralmistralai/mistral-small-3.2-24b-instruct256K✓
Mistral Medium 3Mistralmistralai/mistral-medium-3131K✓
Mistral Small 3.1 24BMistralmistralai/mistral-small-3.1-24b-instruct128K✓
SabaMistralmistralai/mistral-saba33K✓
Mistral Small 3Mistralmistralai/mistral-small-24b-instruct-250133K
Mistral Large 2407Mistralmistralai/mistral-large-2407131K✓
Mistral NemoMistralmistralai/mistral-nemo131K✓
Mixtral 8x22B InstructMistralmistralai/mixtral-8x22b-instruct66K✓
Mistral LargeMistralmistralai/mistral-large128K✓
DeepSeek V4.1 FlashDeepSeekdeepseek/deepseek-v4.1-flash1M✓
DeepSeek V4 Flash Vision ExpDeepSeekdeepseek/deepseek-v4-flash-vision-exp1M✓
DeepSeek V4 Pro 0813DeepSeekdeepseek/deepseek-v4-pro-08131M✓
DeepSeek V4 Flash 0731DeepSeekdeepseek/deepseek-v4-flash-07311M✓
DeepSeek V4 Pro 0423DeepSeekdeepseek/deepseek-v4-pro1M✓
DeepSeek V4 Flash 0423DeepSeekdeepseek/deepseek-v4-flash1M✓
DeepSeek V3.2DeepSeekdeepseek/deepseek-v3.2164K✓
DeepSeek V3.2 ExpDeepSeekdeepseek/deepseek-v3.2-exp164K✓
DeepSeek V3.1 TerminusDeepSeekdeepseek/deepseek-v3.1-terminus164K✓
DeepSeek V3.1DeepSeekdeepseek/deepseek-chat-v3.1164K✓
R1 0528DeepSeekdeepseek/deepseek-r1-0528164K✓
DeepSeek V3 0324DeepSeekdeepseek/deepseek-chat-v3-0324164K✓
R1DeepSeekdeepseek/deepseek-r164K✓
DeepSeek V3DeepSeekdeepseek/deepseek-chat164K✓
Grok 4.7xAIx-ai/grok-4.7500K✓
Grok 4.6xAIx-ai/grok-4.6500K✓
Grok 4.5xAIx-ai/grok-4.5500K✓
Grok Build 0.1xAIx-ai/grok-build-0.1256K✓
Grok 4.3xAIx-ai/grok-4.31M✓
Grok 4.20 Multi-AgentxAIx-ai/grok-4.20-multi-agent2M
Grok 4.20xAIx-ai/grok-4.202M✓
Qwen3.8 Max PrimeQwenqwen/qwen3.8-max-prime1M✓
Qwen3.8 Omni FlashQwenqwen/qwen3.8-omni-flash1M✓
Qwen3.8 Max (0902)Qwenqwen/qwen3.8-max-09021M✓
Qwen3.8 FlashQwenqwen/qwen3.8-flash1M✓
Qwen3.8 27BQwenqwen/qwen3.8-27b1M✓
Qwen3.8 2.4T A95BQwenqwen/qwen3.8-2.4t-a95b1M✓
Qwen3.7 FlashQwenqwen/qwen3.7-flash1M✓
Qwen3.7 PlusQwenqwen/qwen3.7-plus1M✓
Qwen3.7 MaxQwenqwen/qwen3.7-max1M✓
Qwen3.5 Plus 2026-04-20Qwenqwen/qwen3.5-plus-202604201M✓
Qwen3.6 FlashQwenqwen/qwen3.6-flash1M✓
Qwen3.6 35B A3BQwenqwen/qwen3.6-35b-a3b262K✓
Qwen3.6 Max PreviewQwenqwen/qwen3.6-max-preview262K✓
Qwen3.6 27BQwenqwen/qwen3.6-27b262K✓
Qwen3.6 PlusQwenqwen/qwen3.6-plus1M✓
Qwen3.5-9BQwenqwen/qwen3.5-9b262K✓
Qwen3.5-35B-A3BQwenqwen/qwen3.5-35b-a3b262K✓
Qwen3.5-27BQwenqwen/qwen3.5-27b262K✓
Qwen3.5-122B-A10BQwenqwen/qwen3.5-122b-a10b262K✓
Qwen3.5-FlashQwenqwen/qwen3.5-flash-02-231M✓
Qwen3.5 Plus 2026-02-15Qwenqwen/qwen3.5-plus-02-151M✓
Qwen3.5 397B A17BQwenqwen/qwen3.5-397b-a17b262K✓
Qwen3 Max ThinkingQwenqwen/qwen3-max-thinking262K✓
Qwen3 Coder NextQwenqwen/qwen3-coder-next262K✓
Qwen3 VL 32B InstructQwenqwen/qwen3-vl-32b-instruct131K✓
Qwen3 VL 8B ThinkingQwenqwen/qwen3-vl-8b-thinking131K✓
Qwen3 VL 8B InstructQwenqwen/qwen3-vl-8b-instruct262K✓
Qwen3 VL 30B A3B ThinkingQwenqwen/qwen3-vl-30b-a3b-thinking262K✓
Qwen3 VL 30B A3B InstructQwenqwen/qwen3-vl-30b-a3b-instruct262K✓
Qwen3 VL 235B A22B ThinkingQwenqwen/qwen3-vl-235b-a22b-thinking131K✓
Qwen3 VL 235B A22B InstructQwenqwen/qwen3-vl-235b-a22b-instruct262K✓
Qwen3 MaxQwenqwen/qwen3-max262K✓
Qwen3 Coder PlusQwenqwen/qwen3-coder-plus1M✓
Qwen3 Coder FlashQwenqwen/qwen3-coder-flash1M✓
Qwen3 Next 80B A3B ThinkingQwenqwen/qwen3-next-80b-a3b-thinking262K✓
Qwen3 Next 80B A3B InstructQwenqwen/qwen3-next-80b-a3b-instruct262K✓
Qwen Plus 0728Qwenqwen/qwen-plus-2025-07-281M✓
Qwen3 30B A3B Thinking 2507Qwenqwen/qwen3-30b-a3b-thinking-250782K✓
Qwen3 Coder 30B A3B InstructQwenqwen/qwen3-coder-30b-a3b-instruct262K✓
Qwen3 30B A3B Instruct 2507Qwenqwen/qwen3-30b-a3b-instruct-2507262K✓
Qwen3 235B A22B Thinking 2507Qwenqwen/qwen3-235b-a22b-thinking-2507131K✓
Qwen3 Coder 480B A35BQwenqwen/qwen3-coder262K✓
Qwen3 235B A22B Instruct 2507Qwenqwen/qwen3-235b-a22b-2507262K✓
Qwen3 30B A3BQwenqwen/qwen3-30b-a3b131K✓
Qwen3 8BQwenqwen/qwen3-8b131K✓
Qwen3 14BQwenqwen/qwen3-14b131K✓
Qwen3 32BQwenqwen/qwen3-32b131K✓
Qwen3 235B A22BQwenqwen/qwen3-235b-a22b131K✓
Qwen2.5 VL 72B InstructQwenqwen/qwen2.5-vl-72b-instruct128K
Qwen-PlusQwenqwen/qwen-plus1M✓
Qwen2.5 Coder 32B InstructQwenqwen/qwen-2.5-coder-32b-instruct33K
Qwen2.5 7B InstructQwenqwen/qwen-2.5-7b-instruct33K✓
Qwen2.5 72B InstructQwenqwen/qwen-2.5-72b-instruct33K✓
Command A+Coherecohere/command-a-plus192K✓
Command ACoherecohere/command-a256K
Command R7B (12-2024)Coherecohere/command-r7b-12-2024128K
Command R (08-2024)Coherecohere/command-r-08-2024128K✓
Command R+ (08-2024)Coherecohere/command-r-plus-08-2024128K✓
Nova 2 LiteAmazonamazon/nova-2-lite-v11M✓
Nova Premier 1.0Amazonamazon/nova-premier-v11M✓
Nova Lite 1.0Amazonamazon/nova-lite-v1300K✓
Nova Micro 1.0Amazonamazon/nova-micro-v1128K✓
Nova Pro 1.0Amazonamazon/nova-pro-v1300K✓
Phi 4Microsoftmicrosoft/phi-416K
WizardLM-2 8x22BMicrosoftmicrosoft/wizardlm-2-8x22b66K
SwitchyardNVIDIAnvidia/switchyard1M
Nemotron 3.5 LightningNVIDIAnvidia/nemotron-3.5-lightning262K✓
Nemotron 3.5 Content SafetyNVIDIAnvidia/nemotron-3.5-content-safety131K
Nemotron 3 UltraNVIDIAnvidia/nemotron-3-ultra-550b-a55b262K✓
Nemotron 3 SuperNVIDIAnvidia/nemotron-3-super-120b-a12b262K✓
Nemotron 3 Nano 30B A3BNVIDIAnvidia/nemotron-3-nano-30b-a3b262K✓
Kimi K3Moonshot AImoonshotai/kimi-k31M✓
Kimi K2.7 CodeMoonshot AImoonshotai/kimi-k2.7-code262K✓
Kimi K2.6Moonshot AImoonshotai/kimi-k2.6262K✓
Kimi K2.5Moonshot AImoonshotai/kimi-k2.5262K✓
Kimi K2 ThinkingMoonshot AImoonshotai/kimi-k2-thinking262K✓
Kimi K2 0905Moonshot AImoonshotai/kimi-k2-0905262K✓
Kimi K2 0711Moonshot AImoonshotai/kimi-k2131K✓
GLM 5.3 PrimeZ.aiz-ai/glm-5.3-prime1M✓
GLM 5.3 FlashXZ.aiz-ai/glm-5.3-flashx1M✓
GLM 5.3 FlashZ.aiz-ai/glm-5.3-flash1M✓
GLM 5.3Z.aiz-ai/glm-5.31M✓
GLM 5.2Z.aiz-ai/glm-5.21M✓
GLM 5.1Z.aiz-ai/glm-5.1205K✓
GLM 5V TurboZ.aiz-ai/glm-5v-turbo203K✓
GLM 5 TurboZ.aiz-ai/glm-5-turbo203K✓
GLM 5Z.aiz-ai/glm-5205K✓
GLM 4.7 FlashZ.aiz-ai/glm-4.7-flash200K✓
GLM 4.7Z.aiz-ai/glm-4.7205K✓
GLM 4.6VZ.aiz-ai/glm-4.6v131K✓
GLM 4.6Z.aiz-ai/glm-4.6205K✓
GLM 4.5VZ.aiz-ai/glm-4.5v66K✓
GLM 4.5Z.aiz-ai/glm-4.5131K✓
GLM 4.5 AirZ.aiz-ai/glm-4.5-air131K✓
MiniMax M3MiniMaxminimax/minimax-m31M✓
MiniMax M2.7MiniMaxminimax/minimax-m2.7205K✓
MiniMax M2.5MiniMaxminimax/minimax-m2.5205K✓
MiniMax M2-herMiniMaxminimax/minimax-m2-her66K
MiniMax M2.1MiniMaxminimax/minimax-m2.1205K✓
MiniMax M2MiniMaxminimax/minimax-m2205K✓
MiniMax M1MiniMaxminimax/minimax-m11M✓
MiniMax-01MiniMaxminimax/minimax-011M
Sonar Pro SearchPerplexityperplexity/sonar-pro-search200K
Sonar Reasoning ProPerplexityperplexity/sonar-reasoning-pro128K
Sonar ProPerplexityperplexity/sonar-pro200K
Sonar Deep ResearchPerplexityperplexity/sonar-deep-research128K
SonarPerplexityperplexity/sonar127K
ERNIE 4.5 VL 424B A47B Baidubaidu/ernie-4.5-vl-424b-a47b123K
Seed 2.1 TurboByteDancebytedance-seed/seed-2-1-turbo262K✓
Seed-2.0-CodeByteDancebytedance-seed/seed-2.0-code262K✓
Seed-2.0-LiteByteDancebytedance-seed/seed-2.0-lite262K✓
Seed-2.0-MiniByteDancebytedance-seed/seed-2.0-mini262K✓
Seed 1.6 FlashByteDancebytedance-seed/seed-1.6-flash262K✓
Seed 1.6ByteDancebytedance-seed/seed-1.6262K✓
Granite 4.2 8BIBMibm-granite/granite-4.2-8b131K✓
Granite 4.0 MicroIBMibm-granite/granite-4.0-h-micro131K
Mercury 2.5Inceptioninception/mercury-2.5260K✓
Mercury 2Inceptioninception/mercury-2128K✓
Hermes 4 405BNous Researchnousresearch/hermes-4-405b131K
Hermes 3 70B InstructNous Researchnousresearch/hermes-3-llama-3.1-70b131K
Hermes 3 405B InstructNous Researchnousresearch/hermes-3-llama-3.1-405b131K
Hy4 previewTencenttencent/hy4-preview1M✓
Hy-MT2-1.8BTencenttencent/hy-mt2-1.8b8K
Hy-MT2-30B-A3BTencenttencent/hy-mt2-30b-a3b8K
Hy-MT2-7BTencenttencent/hy-mt2-7b8K
Hy3Tencenttencent/hy3262K✓
Hy3 previewTencenttencent/hy3-preview262K✓
Hunyuan A13B InstructTencenttencent/hunyuan-a13b-instruct131K
Solar Mini 4Upstageupstage/solar-mini4524K✓
Solar Pro 4Upstageupstage/solar-pro4524K✓
Solar Pro 3Upstageupstage/solar-pro-3131K✓
MiMo-V2.6-Pro-UltraSpeedXiaomixiaomi/mimo-v2.6-pro-ultraspeed1M✓
MiMo-V2.6-FlashXiaomixiaomi/mimo-v2.6-flash1.1M✓
MiMo-V2.6-ProXiaomixiaomi/mimo-v2.6-pro1.1M✓
MiMo-V2.5-ProXiaomixiaomi/mimo-v2.5-pro1.1M✓
MiMo-V2.5Xiaomixiaomi/mimo-v2.51.1M✓

Showing 283 of 283. List updated 2026-10-05.

Short names such as gpt-6-luna also work for OpenAI models.

Coming soon: private and local LLMs

Run agents on a model you host yourself, on your own infrastructure or fully offline.

Free plan

Agents on the Free plan always use gpt-6-luna, whatever model you set. Upgrade to choose any model. See Plans and limits.

Choosing a model​

  • Start with a strong general model such as gpt-6-luna or a recent Claude or Gemini model. They handle most jobs well.
  • Use a small model for simple, repetitive work such as classifying or routing. It's faster and cheaper, and the quality difference is small for easy tasks.
  • Use a stronger model where judgement matters, such as writing the final answer, reasoning over long documents or chaining several tools.
  • Check the context size if you send long documents or long conversations.
  • Mix them in a squad. For example, a small triage agent hands off to a stronger expert.

Usage and tokens​

Models count text in tokens, chunks of roughly three-quarters of a word. Everything sent to the model counts: the system prompt, examples, earlier messages, retrieved file passages and the reply. See Plans and limits.

Bring your own key (BYOK)​

Run an agent's model calls on your own provider account instead of ours. Three providers are supported:

ProviderKey formatWorks with models like
OpenAIsk-...gpt-6-luna, openai/...
Google GeminiAIza...gemini-..., google/gemini-...
Anthropicsk-ant-...claude-..., anthropic/...

Your key is only used when it matches the agent's model. An OpenAI key is used for OpenAI models, and so on. Otherwise the agent runs on the platform as usual.

  1. Open My AIs and pick an agent.
  2. Expand API Keys (BYOK). It shows the provider that matches the agent's model.
  3. Paste your key and save. You can remove it any time.

Keys are stored encrypted, and apply to that one agent.

For API calls: send it with each request​

Add two headers to a chat request:

curl -X POST "https://platform.custodianlabs.io/v1/apps/$APP_ID/chat" \
-H "X-API-Key: $CUSTODIAN_API_KEY" \
-H "X-BYOK-Provider: openai" \
-H "X-BYOK-API-Key: $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "Hello!"}'

X-BYOK-Provider is openai, gemini or anthropic. The SDKs don't send BYOK headers yet.

How usage is counted​

Model calls made with your own key don't use your token allowance. They still count as requests toward your plan's request limit, and your Custodian API key still authenticates every request.

Provider keys are secrets. Keep them out of client-side code and source control.