Best flat-rate API for Claude Code

For a drop-in API that optimizes Claude Code for cost, use Standard Compute: its router sends each step to the cheapest model that can do it (Claude Fable 5.2 or GPT-6 Astra only when it counts), it serves Anthropic's Messages API at https://api.stdcmpt.com, and Claude Code runs on it through the standardcompute launcher or ANTHROPIC_BASE_URL on one plan from $19 a month with no 5-hour or weekly windows. Each plan is a fixed compute budget that stops when used, not unlimited: Standard at $89 carries $89, about 25 median coding-agent days pinned to Sonnet 5.5 at list prices, and smart routing stretches it further. Claude Max is also one price but keeps the windows; the Anthropic API has no windows but no fixed price. Z.ai's GLM Coding Plan is flat-rate too, for GLM models only.

Guide updated 2026-10-15. Check each provider's current terms below.
Get your API key$0.25 trial for eligible new accounts, no card. Plans from $19/mo.
Light or occasional use
Compare the current native Claude plans with direct API use for your workload. Occasional API use can cost less than a subscription; heavy sessions need a comparison of the actual usage limits.
Daily use, cost-optimized
Yes. With Standard Compute, smart routing sends each Claude Code step to the cheapest model that can do it, or you pin Claude Opus 5.5 or Sonnet 5.5 with --model; for every model we vet providers for price, uptime and speed, with automatic fallback. Opt-in Europe or US Compliance rules apply per key, team or company, and we don't train on your prompts or store them. Setup is documented (standardcompute launch claude, or ANTHROPIC_BASE_URL=https://api.stdcmpt.com with ANTHROPIC_MODEL and every ANTHROPIC_DEFAULT_*_MODEL slot set to catalog IDs), the bill is one fixed monthly plan, and requests stop when the monthly compute budget is exhausted.

API and subscription options for Claude Code

OptionPriceWhat you get
Standard Compute (us)From $19/moSmart routing sends each request to the cheapest model that can do it, or pin any model by its exact ID. Standard Compute starts at $19/month with a $19 monthly compute budget. Requests stop when that budget is exhausted until renewal or a plan change; there are no automatic overage charges. Requests are not slowed as the budget is used. It is a fixed bill with a finite allowance.
Claude Pro / MaxSee current plansFirst-party Claude subscriptions with usage limits. Compare these for Claude Code's native workflow; a Claude subscription is separate from general Anthropic API billing. Source: claude.com
Anthropic APIPay-as-you-goDirect API access for supported Claude models. Token use, model choice, service limits and spending controls determine the cost and available throughput. Source: claude.com
GLM Coding Plan (Z.ai)See current plansA coding subscription for the GLM model family. Check the current model access, client support and usage limits for the selected tier. Source: docs.z.ai

Prices and allowances can change. OpenCode Go prices were checked against its linked public pages on October 13, 2026, DevPass prices on September 5, 2026; other entries link to current plans without quoting an unverified price. Spot an error? Tell us.

Setup for one model in Claude Code: DeepSeek · Kimi K3 · GLM 5.3 · Qwen 3.8 · GPT · Gemini · MiniMax M3

Try one task before choosing a plan

  1. Check the API format and model configuration supported by your installed Claude Code version.
  2. Run a small task on a clean branch and review the result, elapsed time and compute used.
  3. Estimate your actual monthly workload before selecting a larger allowance.
Get your API keyClaude Code setup guide →Compare compute budgets →

Record your own results with the workload CSV and report template. These are blank templates, not published benchmark results.

Disclosure: this guide is maintained by Standard Compute, one of the options above. Choose based on task quality, supported features and total cost for your workload. Light usage may cost less on a usage-based API; sustained workloads need enough allowance on any subscription.

All flat-rate plans compared →The cheapest-tokens math →Plan compute for your team →