# LLM API Pricing: OpenAI, Claude, Gemini (/models/pricing)

API prices for 98 current models, in US dollars per 1M tokens, from Sim's model catalog. Prices were last updated Dec 1, 2026. Every model listed is available in the Sim [Agent block](/workflows/blocks/agent).

## How a call is billed \[#how-a-call-is-billed]

Every LLM API call is billed per token, with separate rates for the tokens you send (system prompt, conversation history, tool results, retrieved documents) and the tokens the model generates. Output tokens usually cost several times more than input tokens, and reasoning models bill their hidden reasoning tokens as output.

To estimate a call, multiply input tokens by the input rate and output tokens by the output rate, divide each by 1,000,000, and add them. Multiply by your calls per day and by 30 for a monthly figure.

### Cached input \[#cached-input]

When a provider supports prompt caching, a repeated prompt prefix such as a long system prompt is read from cache at the cached input rate. Inkling, for example, lists $0.17 per 1M cached input tokens against $1 per 1M uncached. Models without a cached rate bill all input at the input rate.

### Long-context tiers \[#long-context-tiers]

Some models charge a higher rate for the whole request once its input crosses a size threshold. MiniMax M3 bills $0.3 per 1M input tokens up to 512k input tokens and $0.6 per 1M once a request goes past that. Sim resolves the tier from all input tokens, cached and uncached, and applies it to input, cached input, and output alike.

## Prices by model \[#prices-by-model]

| Model | Provider | Input | Cached input | Output |
| - | - | - | - | - |
| [Inkling](/models/thinkingmachines/inkling) | Thinking Machines | $1 | $0.17 | $4.05 |
| [Inkling 2 Small](/models/thinkingmachines/inkling-2-small) | Thinking Machines | $0.3 | $0.03 | $1 |
| [Inkling Small](/models/thinkingmachines/inkling-small) | Thinking Machines | $0.3 | $0.06 | $1.2 |
| [MiniMax M3.1 Flash](/models/minimax/minimax-m3-1-flash) | MiniMax | $0.15 | $0.015 | $0.6 |
| [MiniMax M3](/models/minimax/minimax-m3) | MiniMax | $0.3 | $0.06 | $1.2 |
| [Qwen 4 Max](/models/alibaba/qwen4-max) | Alibaba Cloud | $1.5 | Not listed | $4.5 |
| [Qwen 3.7 Plus](/models/alibaba/qwen3-7-plus) | Alibaba Cloud | $0.4 | $0.08 | $1.6 |
| [Qwen 3.8 Flash](/models/alibaba/qwen3-8-flash) | Alibaba Cloud | $0.15 | $0.016 | $0.47 |
| [Qwen 3.8 27B](/models/alibaba/qwen3-8-27b) | Alibaba Cloud | $0.5 | $0.1 | $3 |
| [GPT-6.2 Astra](/models/openai/gpt-6-2-astra) | OpenAI | $8 | $0.4 | $40 |
| [GPT-6.2 Sol](/models/openai/gpt-6-2-sol) | OpenAI | $2 | $0.1 | $10 |
| [GPT-6 Astra](/models/openai/gpt-6-astra) | OpenAI | $10 | $1 | $50 |
| [GPT-6.1 Sol](/models/openai/gpt-6-1-sol) | OpenAI | $2 | $0.1 | $10 |
| [GPT-6.1 Terra](/models/openai/gpt-6-1-terra) | OpenAI | $1 | $0.05 | $5 |
| [GPT-6 Sol](/models/openai/gpt-6-sol) | OpenAI | $2 | $0.2 | $10 |
| [GPT-6 Luna](/models/openai/gpt-6-luna) | OpenAI | $0.1 | $0.01 | $0.5 |
| [GPT-5.6 Sol](/models/openai/gpt-5-6-sol) | OpenAI | $4 | $0.4 | $20 |
| [GPT-5.6 Terra](/models/openai/gpt-5-6-terra) | OpenAI | $2 | $0.2 | $12 |
| [GPT-5.6 Luna](/models/openai/gpt-5-6-luna) | OpenAI | $0.2 | $0.02 | $1.2 |
| [GPT-5.5 Pro](/models/openai/gpt-5-5-pro) | OpenAI | $30 | Not listed | $180 |
| [GPT-5.5](/models/openai/gpt-5-5) | OpenAI | $5 | $0.5 | $30 |
| [GPT-5.4 Pro](/models/openai/gpt-5-4-pro) | OpenAI | $30 | Not listed | $180 |
| [GPT-5.4](/models/openai/gpt-5-4) | OpenAI | $2.5 | $0.25 | $15 |
| [GPT-5.4 Mini](/models/openai/gpt-5-4-mini) | OpenAI | $0.75 | $0.075 | $4.5 |
| [GPT-5.2 Pro](/models/openai/gpt-5-2-pro) | OpenAI | $21 | Not listed | $168 |
| [GPT-5.2](/models/openai/gpt-5-2) | OpenAI | $1.75 | $0.175 | $14 |
| [Chat Latest](/models/openai/chat-latest) | OpenAI | $5 | $0.5 | $30 |
| [Claude Fable 5.2](/models/anthropic/claude-fable-5-2) | Anthropic | $8 | $0.2 | $40 |
| [Claude Sonnet 5.5](/models/anthropic/claude-sonnet-5-5) | Anthropic | $2 | $0.1 | $10 |
| [Claude Opus 5.5](/models/anthropic/claude-opus-5-5) | Anthropic | $4 | $0.2 | $20 |
| [Claude Haiku 5.5](/models/anthropic/claude-haiku-5-5) | Anthropic | $0.1 | $0.01 | $0.5 |
| [Claude Haiku 4.5](/models/anthropic/claude-haiku-4-5) | Anthropic | $1 | $0.1 | $5 |
| [Gemini 4 Neon](/models/google/gemini-4-neon) | Google | $3 | $0.15 | $15 |
| [Gemini 4 Hydrogen](/models/google/gemini-4-hydrogen) | Google | $1.5 | $0.075 | $7.5 |
| [Gemini 4 Carbon](/models/google/gemini-4-carbon) | Google | $2 | $0.1 | $10 |
| [Gemini 4 Argon](/models/google/gemini-4-argon) | Google | $2 | $0.1 | $10 |
| [Gemini 3.8 Flash](/models/google/gemini-3-8-flash) | Google | $0.75 | $0.075 | $3.75 |
| [Gemini 3.6 Flash](/models/google/gemini-3-6-flash) | Google | $0.75 | $0.075 | $3.75 |
| [Gemini 3.5 Flash Lite](/models/google/gemini-3-5-flash-lite) | Google | $0.3 | $0.03 | $2.5 |
| [Gemini 3.1 Pro Preview](/models/google/gemini-3-1-pro-preview) | Google | $2 | $0.2 | $12 |
| [Gemini 3.1 Flash Lite](/models/google/gemini-3-1-flash-lite) | Google | $0.25 | $0.025 | $1.5 |
| [Gemini 3 Flash Preview](/models/google/gemini-3-flash-preview) | Google | $0.5 | $0.05 | $3 |
| [Gemini 2.5 Flash Lite](/models/google/gemini-2-5-flash-lite) | Google | $0.1 | $0.01 | $0.4 |
| [DeepSeek V4 Pro](/models/deepseek/deepseek-v4-pro) | DeepSeek | $1.32 | $0.044 | $3.96 |
| [DeepSeek Flash](/models/deepseek/deepseek-flash) | DeepSeek | $0.3 | $0.006 | $1.2 |
| [Grok 4.7](/models/xai/grok-4-7) | xAI | $2 | $0.5 | $6 |
| [Grok 4.6](/models/xai/grok-4-6) | xAI | $2 | $0.5 | $6 |
| [Grok 4.5](/models/xai/grok-4-5) | xAI | $2 | $0.3 | $6 |
| [Grok 4.3](/models/xai/grok-4-3) | xAI | $1.25 | $0.2 | $2.5 |
| [Grok 4.20 0309 Reasoning](/models/xai/grok-4-20-0309-reasoning) | xAI | $1.25 | $0.2 | $2.5 |
| [Grok 4.20 0309 Non Reasoning](/models/xai/grok-4-20-0309-non-reasoning) | xAI | $1.25 | $0.2 | $2.5 |
| [Grok 4.20 Multi Agent 0309](/models/xai/grok-4-20-multi-agent-0309) | xAI | $1.25 | $0.2 | $2.5 |
| [Qwen 3.8 27B](/models/cerebras/qwen-3-8-27b) | Cerebras | $0.99 | Not listed | $1.49 |
| [GPT OSS 120B](/models/cerebras/gpt-oss-120b) | Cerebras | $0.35 | Not listed | $0.75 |
| [OpenAI GPT OSS 120B](/models/groq/openai-gpt-oss-120b) | Groq | $0.15 | $0.075 | $0.6 |
| [OpenAI GPT OSS 20B](/models/groq/openai-gpt-oss-20b) | Groq | $0.075 | $0.038 | $0.3 |
| [OpenAI GPT OSS Safeguard 20B](/models/groq/openai-gpt-oss-safeguard-20b) | Groq | $0.075 | $0.038 | $0.3 |
| [Qwen 3.8 27B](/models/groq/qwen-qwen3-8-27b) | Groq | $0.8 | Not listed | $4 |
| [Fugu Ultra V2.0](/models/sakana/fugu-ultra-v2-0) | Sakana AI | $5 | $0.5 | $30 |
| [Fugu Max](/models/sakana/fugu-max) | Sakana AI | $2 | $0.25 | $6 |
| [Fugu Max V1.0](/models/sakana/fugu-max-v1-0) | Sakana AI | $2 | $0.25 | $6 |
| [Sakana Namazu](/models/sakana/sakana-namazu) | Sakana AI | $0.95 | $0.15 | $4 |
| [Sakana Namazu V1.0](/models/sakana/sakana-namazu-v1-0) | Sakana AI | $0.95 | $0.15 | $4 |
| [Fugu](/models/sakana/fugu) | Sakana AI | $5 | $0.5 | $30 |
| [Fugu Ultra](/models/sakana/fugu-ultra) | Sakana AI | $5 | $0.5 | $30 |
| [Muse Spark 1.3](/models/meta/muse-spark-1-3) | Meta | $1.25 | $0.15 | $4.25 |
| [Muse Spark 1.1](/models/meta/muse-spark-1-1) | Meta | $1.25 | $0.15 | $4.25 |
| [Kimi K3.1 Pro](/models/kimi/kimi-k3-1-pro) | Kimi | $2 | $0.2 | $10 |
| [Kimi K3](/models/kimi/kimi-k3) | Kimi | $3 | $0.3 | $15 |
| [GLM 5.3](/models/zai/glm-5-3) | Z.ai | $1.4 | $0.26 | $4.4 |
| [GLM 5.3 Flashx](/models/zai/glm-5-3-flashx) | Z.ai | $0.37 | $0.075 | $1.25 |
| [GLM 5.3 Flash](/models/zai/glm-5-3-flash) | Z.ai | $0.15 | $0.03 | $0.5 |
| [GLM 5.2](/models/zai/glm-5-2) | Z.ai | $1.4 | $0.26 | $4.4 |
| [GLM 5.1](/models/zai/glm-5-1) | Z.ai | $1.4 | $0.26 | $4.4 |
| [GLM 5](/models/zai/glm-5) | Z.ai | $1 | $0.2 | $3.2 |
| [GLM 5 Turbo](/models/zai/glm-5-turbo) | Z.ai | $1.2 | Not listed | $4 |
| [GLM 4.7](/models/zai/glm-4-7) | Z.ai | $0.6 | $0.11 | $2.2 |
| [GLM 4.7 Flashx](/models/zai/glm-4-7-flashx) | Z.ai | $0.07 | $0.01 | $0.4 |
| [GLM 4.6](/models/zai/glm-4-6) | Z.ai | $0.6 | $0.11 | $2.2 |
| [GLM 4.5](/models/zai/glm-4-5) | Z.ai | $0.6 | $0.11 | $2.2 |
| [GLM 4.5 Air](/models/zai/glm-4-5-air) | Z.ai | $0.2 | $0.03 | $1.1 |
| [GLM 4.5 X](/models/zai/glm-4-5-x) | Z.ai | $2.2 | $0.45 | $8.9 |
| [GLM 4.5 Airx](/models/zai/glm-4-5-airx) | Z.ai | $1.1 | $0.22 | $4.5 |
| [GLM 4 32B 0414 128k](/models/zai/glm-4-32b-0414-128k) | Z.ai | $0.1 | Not listed | $0.1 |
| [Mistral Large 4](/models/mistral/mistral-large-4) | Mistral AI | $0.7 | $0.07 | $2.1 |
| [Zai GLM 5.3](/models/mistral/zai-glm-5-3) | Mistral AI | $1.4 | $0.14 | $4.4 |
| [Mistral Large Latest](/models/mistral/mistral-large-latest) | Mistral AI | $0.7 | $0.07 | $2.1 |
| [Mistral Small 2603](/models/mistral/mistral-small-2603) | Mistral AI | $0.15 | Not listed | $0.6 |
| [Mistral Medium 2604](/models/mistral/mistral-medium-2604) | Mistral AI | $1.5 | Not listed | $7.5 |
| [Mistral Small Latest](/models/mistral/mistral-small-latest) | Mistral AI | $0.15 | Not listed | $0.6 |
| [Codestral Latest](/models/mistral/codestral-latest) | Mistral AI | $0.3 | Not listed | $0.9 |
| [Codestral 2508](/models/mistral/codestral-2508) | Mistral AI | $0.3 | Not listed | $0.9 |
| [Ministral 14B Latest](/models/mistral/ministral-14b-latest) | Mistral AI | $0.2 | Not listed | $0.2 |
| [Ministral 14B 2512](/models/mistral/ministral-14b-2512) | Mistral AI | $0.2 | Not listed | $0.2 |
| [Ministral 8B Latest](/models/mistral/ministral-8b-latest) | Mistral AI | $0.15 | Not listed | $0.15 |
| [Ministral 8B 2512](/models/mistral/ministral-8b-2512) | Mistral AI | $0.15 | Not listed | $0.15 |
| [Ministral 3B Latest](/models/mistral/ministral-3b-latest) | Mistral AI | $0.1 | Not listed | $0.1 |
| [Ministral 3B 2512](/models/mistral/ministral-3b-2512) | Mistral AI | $0.1 | Not listed | $0.1 |

## Frequently asked questions \[#frequently-asked-questions]

### How do I calculate the cost of an LLM API call? \[#how-do-i-calculate-the-cost-of-an-llm-api-call]

Multiply input tokens by the input rate and output tokens by the output rate, with both rates quoted per one million tokens, then add the two. If part of the input is served from a prompt cache, bill that part at the cached input rate instead. Multiply the per-call cost by calls per day and by 30 for a monthly estimate.

### How much does prompt caching save? \[#how-much-does-prompt-caching-save]

Prompt caching discounts the input tokens a provider has already seen, so savings scale with how much of each request repeats. An agent that resends a long system prompt and tool definitions on every call can serve most of its input from cache. Cache writes, which some providers bill at a premium, are not part of these prices.

### How do I control LLM costs in an AI agent? \[#how-do-i-control-llm-costs-in-an-ai-agent]

Pick the smallest model that handles the task, keep system prompts and tool definitions stable so they hit the prompt cache, trim conversation history and retrieved context, and cap output length. In Sim, every run records its token usage and cost per block in the logs, so you can see which step drives spend and change the model on that step alone.
