Prime Inference
A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.
Addresses and facts
- OpenAI Chat Completions:
https://api.pinference.ai/api/v1models.dev, read
- Authentication
- Authorization: Bearer, with the key in
PRIME_API_KEYmodels.dev, read - Structured output
- Unknown
- Tool calling
- 67 of 67 listed models The share of this provider's models that models.dev records with tool calling. models.dev, read
- Rate limits
- Unknown
- Prices
- Unknown
- Data retention
- Unknown
- Documentation
- Read the page models.dev, read
- Output limits Baltor recorded
- Unknown
Harness setup
Replace anthropic/claude-fable-5 with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"prime": {
"npm": "@ai-sdk/openai-compatible",
"name": "Prime Inference",
"options": {
"baseURL": "https://api.pinference.ai/api/v1",
"apiKey": "{env:PRIME_API_KEY}"
},
"models": {
"anthropic/claude-fable-5": {
"name": "anthropic/claude-fable-5"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"prime": {
"baseUrl": "https://api.pinference.ai/api/v1",
"api": "openai-completions",
"apiKey": "$PRIME_API_KEY",
"models": [
{
"id": "anthropic/claude-fable-5"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Prime Inference documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and Prime Inference documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Models it lists
Prices in US dollars per million tokens, input and output, as models.dev, read records them.
| Model | Input | Output | Context | As of |
|---|---|---|---|---|
Claude Fable 5 anthropic/claude-fable-5 | 10.00 USD | 50.00 USD | 1,000,000 | older than 30 days |
Claude Fable 5.1 anthropic/claude-fable-5.1 | 10.00 USD | 50.00 USD | 1,000,000 | older than 30 days |
Claude Opus 4.6 anthropic/claude-opus-4.6 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 4.7 anthropic/claude-opus-4.7 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 4.8 anthropic/claude-opus-4.8 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 5 anthropic/claude-opus-5 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 5.5 anthropic/claude-opus-5.5 | 4.00 USD | 20.00 USD | 1,000,000 | |
Claude Sonnet 4.6 anthropic/claude-sonnet-4.6 | 3.00 USD | 15.00 USD | 1,000,000 | older than 30 days |
Claude Sonnet 5 anthropic/claude-sonnet-5 | 2.00 USD | 10.00 USD | 1,000,000 | older than 30 days |
Claude Sonnet 5.5 anthropic/claude-sonnet-5.5 | 2.00 USD | 10.00 USD | 1,000,000 | |
DeepSeek V4 Flash 0423 deepseek/deepseek-v4-flash | 0.440 USD | 1.32 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Flash 0731 deepseek/deepseek-v4-flash-0731 | 0.440 USD | 1.32 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Pro 0423 deepseek/deepseek-v4-pro | 1.91 USD | 3.83 USD | 1,048,576 | older than 30 days |
DeepSeek V4.1 Flash deepseek/deepseek-v4.1-flash | 0.300 USD | 1.20 USD | 1,048,576 | older than 30 days |
DeepSeek V4.1 Flash 1017 deepseek/deepseek-v4.1-flash-1017 | 0.300 USD | 1.20 USD | 1,048,576 | |
Gemini 3 Flash Preview google/gemini-3-flash-preview | 0.500 USD | 3.00 USD | 1,048,576 | older than 30 days |
Gemini 3.1 Pro Preview google/gemini-3.1-pro-preview | 2.00 USD | 12.00 USD | 1,048,576 | older than 30 days |
Gemini 3.5 Flash google/gemini-3.5-flash | 1.50 USD | 9.00 USD | 1,048,576 | older than 30 days |
Gemini 3.6 Flash google/gemini-3.6-flash | 1.50 USD | 7.50 USD | 1,048,576 | older than 30 days |
Gemini 3.7 Flash google/gemini-3.7-flash | 1.35 USD | 6.75 USD | 1,048,576 | older than 30 days |
Gemini 3.8 Flash google/gemini-3.8-flash | 0.750 USD | 3.75 USD | 1,048,576 | older than 30 days |
Gemini 4 Argon google/gemini-4-argon | 2.00 USD | 10.00 USD | 1,048,576 | |
Gemma 3 27B google/gemma-3-27b-it | 0.119 USD | 0.300 USD | 131,072 | older than 30 days |
Llama 3.3 70B Instruct meta-llama/llama-3.3-70b-instruct | 1.04 USD | 2.25 USD | 131,072 | older than 30 days |
Muse Spark Open meta/muse-spark-open | 1.25 USD | 4.25 USD | 1,048,576 | |
Mistral Large 3 2512 mistralai/mistral-large-2512 | 0.500 USD | 1.50 USD | 262,144 | older than 30 days |
Mistral Nemo mistralai/mistral-nemo | 0.165 USD | 0.170 USD | 131,072 | older than 30 days |
Mistral Small 4 mistralai/mistral-small-2603 | 0.165 USD | 0.660 USD | 262,144 | older than 30 days |
Mixtral 8x22B Instruct mistralai/mixtral-8x22b-instruct | 2.20 USD | 6.60 USD | 65,536 | older than 30 days |
Kimi K2 0905 moonshotai/kimi-k2-0905 | 0.600 USD | 2.50 USD | 262,144 | older than 30 days |
Kimi K3 moonshotai/kimi-k3 | 3.45 USD | 17.25 USD | 1,048,576 | older than 30 days |
GPT-4.1 openai/gpt-4.1 | 2.00 USD | 8.00 USD | 1,047,576 | older than 30 days |
GPT-4.1 Mini openai/gpt-4.1-mini | 0.400 USD | 1.60 USD | 1,047,576 | older than 30 days |
GPT-4.1 Nano openai/gpt-4.1-nano | 0.100 USD | 0.400 USD | 1,047,576 | older than 30 days |
GPT-4o openai/gpt-4o | 2.50 USD | 10.00 USD | 128,000 | older than 30 days |
GPT-4o-mini openai/gpt-4o-mini | 0.150 USD | 0.600 USD | 128,000 | older than 30 days |
GPT-5 openai/gpt-5 | 1.25 USD | 10.00 USD | 400,000 | older than 30 days |
GPT-5 Mini openai/gpt-5-mini | 0.250 USD | 2.00 USD | 400,000 | older than 30 days |
GPT-5 Nano openai/gpt-5-nano | 0.050 USD | 0.400 USD | 400,000 | older than 30 days |
GPT-5.1 openai/gpt-5.1 | 1.25 USD | 10.00 USD | 400,000 | older than 30 days |
GPT-5.2 openai/gpt-5.2 | 1.75 USD | 14.00 USD | 400,000 | older than 30 days |
GPT-5.3-Codex openai/gpt-5.3-codex | 1.75 USD | 14.00 USD | 400,000 | older than 30 days |
GPT-5.4 openai/gpt-5.4 | 2.50 USD | 15.00 USD | 1,050,000 | older than 30 days |
GPT-5.4 Mini openai/gpt-5.4-mini | 0.750 USD | 4.50 USD | 400,000 | older than 30 days |
GPT-5.4 Nano openai/gpt-5.4-nano | 0.200 USD | 1.25 USD | 400,000 | older than 30 days |
GPT-5.4 Pro openai/gpt-5.4-pro | 30.00 USD | 180.00 USD | 1,050,000 | older than 30 days |
GPT-5.5 openai/gpt-5.5 | 5.00 USD | 30.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Luna openai/gpt-5.6-luna | 0.200 USD | 1.20 USD | 1,050,000 | older than 30 days |
GPT-5.6 Luna Pro openai/gpt-5.6-luna-pro | 1.00 USD | 6.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Sol openai/gpt-5.6-sol | 5.00 USD | 30.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Sol Pro openai/gpt-5.6-sol-pro | 5.00 USD | 30.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Terra openai/gpt-5.6-terra | 2.50 USD | 15.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Terra Pro openai/gpt-5.6-terra-pro | 2.50 USD | 15.00 USD | 1,050,000 | older than 30 days |
GPT-6 Astra openai/gpt-6-astra | 10.00 USD | 50.00 USD | 1,050,000 | older than 30 days |
GPT-6 Luna openai/gpt-6-luna | 0.100 USD | 0.500 USD | 1,050,000 | |
GPT-6 Sol openai/gpt-6-sol | 2.00 USD | 10.00 USD | 1,050,000 | |
GPT-6.1 Sol openai/gpt-6.1-sol | 2.00 USD | 10.00 USD | 1,050,000 | |
gpt-oss-120b openai/gpt-oss-120b | 0.350 USD | 0.750 USD | 131,072 | older than 30 days |
gpt-oss-20b openai/gpt-oss-20b | 0.070 USD | 0.300 USD | 131,072 | older than 30 days |
Qwen3 Coder Next qwen/qwen3-coder-next | 0.300 USD | 1.50 USD | 262,144 | older than 30 days |
Qwen3 VL 235B A22B Instruct qwen/qwen3-vl-235b-a22b-instruct | 0.300 USD | 1.50 USD | 262,144 | older than 30 days |
Qwen3 VL 30B A3B Instruct qwen/qwen3-vl-30b-a3b-instruct | 0.200 USD | 0.700 USD | 262,144 | older than 30 days |
Grok 4.6 x-ai/grok-4.6 | 2.00 USD | 6.00 USD | 500,000 | older than 30 days |
Grok 4.7 x-ai/grok-4.7 | 1.60 USD | 4.80 USD | 500,000 | |
GLM 5.2 z-ai/glm-5.2 | 1.54 USD | 4.84 USD | 1,048,576 | older than 30 days |
GLM 5.3 z-ai/glm-5.3 | 1.40 USD | 4.40 USD | 1,048,576 | older than 30 days |
GLM 5.3 Flash z-ai/glm-5.3-flash | 0.150 USD | 0.500 USD | 1,048,576 | older than 30 days |
Sources of this page
- models.dev/api.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.