Available Models
The Zihin API supports 30+ models from 5 providers.
Providers
| Provider | Models | Best For |
|---|---|---|
| OpenAI | GPT-5, GPT-4.1 | General purpose, code |
| Anthropic | Claude Opus 4.5, Sonnet 4.5 | Analysis, writing |
| Gemini 2.5 Pro, Flash | Multimodal, speed | |
| Grok | Grok 4.1, Grok Code | Real-time, code |
| OpenRouter | All providers | Flexibility |
Model Tiers
| Tier | Description | Cost |
|---|---|---|
flagship | Best quality, highest capability | $$$ |
standard | Balanced quality and cost | $$ |
economical | Fast and cost-effective | $ |
OpenAI Models
| Model | Context | Best For |
|---|---|---|
gpt-5 | 128K | Complex reasoning |
gpt-5-mini | 128K | Balanced performance |
gpt-4.1 | 128K | General tasks |
gpt-4.1-mini | 128K | Fast responses |
Anthropic Models
| Model | Context | Best For |
|---|---|---|
claude-opus-4-5-20250514 | 200K | Deep analysis |
claude-sonnet-4-5-20250514 | 200K | Balanced tasks |
claude-3-haiku-20240307 | 200K | Fast, economical |
Google Models
| Model | Context | Best For |
|---|---|---|
gemini-2.5-pro | 1M | Long context |
gemini-2.5-flash | 1M | Speed |
Grok Models
| Model | Context | Best For |
|---|---|---|
grok-4-1-fast-reasoning | 2M | Code, real-time |
grok-code-fast | 128K | Code generation |
Model Selection
Specify a Model
{
"query": "Write a Python function",
"model": "gpt-4.1",
"provider": "openai"
}
Auto-Routing
Let the system choose the best model:
{
"query": "Write a Python function",
"model": "auto"
}
See Auto-Routing for details.
List Models API
Get all available models:
curl https://llm.zihin.ai/api/llm/models
Response:
{
"success": true,
"count": 30,
"models": [
{
"id": "anthropic.claude-3-haiku-20240307",
"name": "Claude 3 Haiku",
"provider": "anthropic",
"tier": "economical",
"context": "200000",
"pricing": {
"input": 0.25,
"output": 1.25
},
"capabilities": ["summarization", "classification"]
}
]
}