Frontier and budget model APIs
Prices are in US dollars per million text tokens at the direct vendor API. We use standard paid rates and identify short-prompt tiers, promotional rates and off-peak rates where applicable. Limits retain each vendor’s definition. The suggested roles are editorial recommendations. We use no affiliate links or paid rankings.
Scroll the table to see all columns.
| Model | Input | Output | Cache read | Context / input limit | Suggested role |
|---|---|---|---|---|---|
| Claude Opus 5.5Anthropic | $4.00 | $20.00 | $0.20 | 1Mcontext window | Escalate ambiguous, cross-package changes. |
| Claude Sonnet 5.5Anthropic | $2.00 | $10.00 | $0.10 | 1Mcontext window | Start here for routine implementation with test feedback. |
| GPT-6.2 SolOpenAI | $2.00 | $10.00 | $0.10 | 1,050,000context window | Investigate test failures across several files.Standard, up to 272,000 input tokens per request. |
| GPT-5.6 LunaOpenAI | $0.20 | $1.20 | $0.02 | 1,050,000context window | Label incoming issues or extract structured error details.Standard, up to 272,000 input tokens per request. |
| Gemini 3.8 FlashGoogle | $0.75 | $3.75 | $0.075 | 1,048,576input token limit | Extract the relevant signal from long build logs before escalating.Promotional Standard rates through December 31, 2026. |
| Gemini 3.1 Pro PreviewGoogle | $2.00 | $12.00 | $0.20 | 1,048,576input token limit | Evaluate designs with screenshots and code in one prompt.Standard, up to 200,000 input tokens per request. |
| DeepSeek V4.1 FlashDeepSeek | $0.15 | $0.60 | $0.003 | 1Mcontext window | Queue bulk documentation or test scaffolding off-peak.Off-peak rates, API ID deepseek-flash. Check the UTC billing window. |
| GLM-5.3-FlashZ.ai | $0.15 | $0.50 | $0.03 | 1Mcontext window | Draft small fixes with a narrowly scoped test. |
Coding agent tools and workflows
Execution describes where file and shell tools run. A local agent can still send context to a remote model. Check each product’s current pricing and account limits before buying.
Scroll the table to see all columns.
| Tool | Model access | Billing | Execution | MCP | Good fit |
|---|---|---|---|---|---|
| Claude Code | Claude models via Anthropic or supported cloud providers. | Eligible Claude subscription or metered API/provider billing. Pricing | Local terminal, with separate hosted sessions. | Supported | Teams that do most of their work in a terminal. |
| Codex CLI | OpenAI models with ChatGPT or API access. | Eligible ChatGPT plan or usage-based API billing. Pricing | Local CLI. Codex Cloud requires ChatGPT sign-in. | Supported | Teams that review terminal-generated patches and run repo checks. |
| Cursor | Cursor-managed catalog across multiple vendors. | Subscription tiers with plan-dependent usage. Pricing | Local editor. Hosted Cloud Agents use isolated VMs. | Supported | Teams that want in-editor changes and a hosted handoff for longer jobs. |
| Gemini CLI | Gemini via Google account, Gemini API, or Vertex AI. | Account quotas, eligible subscriptions, or metered API usage. Pricing | Local terminal with Google-hosted inference. | Supported | Teams already administering model access in Google Cloud. |
| Cline | Cline-managed access, provider keys, or local runtimes. | Managed usage billing, subscription, or your provider’s bill. Pricing | Local IDE extension or CLI, with separate Cline Cloud. | Supported | Teams piloting several providers behind the same editor workflow. |
| Zed | Zed-hosted models, provider keys, gateways, local models, or external agents. | Free editor tier with bring-your-own access, plus hosted AI plans and usage billing. Pricing | Desktop editor. Inference depends on the configured provider or local model. | Supported | Teams that want hosted and local model options in the same editor. |
Monthly token cost scenarios
Assume 10,000,000 input and 2,000,000 output tokens per month across requests that fit the listed rate tier. The second estimate treats 80% of input tokens as billable cache reads.
Estimated cost = (uncached input × input rate + cached input × cache-read rate + output × output rate) ÷ 1,000,000.
| Model | No cache hits | 80% of input cached |
|---|---|---|
| Claude Opus 5.5 | $80.00 | $49.60 |
| Claude Sonnet 5.5 | $40.00 | $24.80 |
| GPT-6.2 Sol | $40.00 | $24.80 |
| GPT-5.6 Luna | $4.40 | $2.96 |
| Gemini 3.8 Flash | $15.00 | $9.60 |
| Gemini 3.1 Pro Preview | $44.00 | $29.60 |
| DeepSeek V4.1 Flash | $2.70 | $1.524 |
| GLM-5.3-Flash | $2.50 | $1.54 |
These estimates cover token reads and output. Budget separately for cache writes, storage, tool calls, fees and retries. The assumed hit rate measures the share of input tokens served from cache.
How to choose and avoid billing surprises
Measure cost per accepted patch
Run the same small fixes and harder debugging jobs with the same checkout and checks. Start bulk triage and extraction on a lower-priced model. Escalate when tests fail repeatedly or the change crosses component boundaries. Record retries, output tokens, review time and whether the patch was accepted.
Keep the useful context stable
Put stable instructions first when the provider reuses an exact prefix. Append task-specific files and tool output later. Pass the relevant test failure and diff first, then fetch more context as needed. Track cache-read tokens and write/storage charges separately to see whether reuse actually saves money. Context engineering rules for Claude
Check each request against its billing tier
A long-context price threshold applies to an individual request even when a monthly total looks small. Count reasoning tokens when the provider bills them as output. For a subscription, check whether cloud work, usage overages and API-key sessions draw from the same allowance. How AI token bills can get away from you
Review permissions before moving a job to the cloud
List which repositories, MCP servers and secrets the worker can reach. Give each job the minimum access it needs. Require a diff, test results and a reviewer before an agent can land a change. Choose a hosted runtime when the workflow needs to outlive a laptop session and the team can enforce those controls. Lessons from operating a production agent
Sources and verification log
Last verified . We checked the linked vendor pricing, model limits and tool documentation on the date shown above. We also fetched the public OpenRouter catalog to cross-check listings and compare gateway rates. Vendor figures in the matrix apply to direct API billing. Recheck the linked pages before budgeting, especially for previews and promotional or time-of-day rates.
- Claude Platform · Pricing and context
- OpenAI · GPT-6.2 Sol
- OpenAI · API pricing
- OpenAI · GPT-5.6 Luna
- Google AI Studio · Gemini 3.8 Flash pricing
- Google AI Studio · Gemini 3.8 Flash limits
- Google AI Studio · Gemini 3.1 Pro Preview pricing
- Google AI Studio · Gemini 3.1 Pro Preview limits
- DeepSeek · Models and pricing
- Z.ai · Model pricing
- Z.ai · GLM-5.3-Flash limits
- Anthropic · Claude Code costs
- Anthropic · Claude Code MCP
- Anthropic · Claude Code overview
- Anthropic · Third-party inference providers
- OpenAI · Codex authentication and billing
- OpenAI · Codex CLI MCP
- OpenAI · Codex CLI
- OpenAI · Codex Cloud
- Cursor · Models and pricing
- Cursor · MCP
- Cursor · Cloud Agents
- Google · Gemini CLI quotas and pricing
- Google · Gemini CLI MCP
- Google · Gemini CLI authentication
- Cline · Pricing
- Cline · MCP
- Cline · Overview and model access
- Cline · Cloud
- Zed · Pricing
- Zed · Agent MCP
- Zed · AI and model access
- OpenRouter · Public catalog (gateway cross-check)