By Navneet Arya · 🕒 10 min read
AI API costs still vary by about 100x between models from the same provider. In October 2026 a top-tier model costs $10 per million input tokens, while the budget tier costs $0.10. Choosing the right tier for each task, not the most capable model by default, is the biggest cost lever for AI apps. Best for developers and product teams: use a budget tier by default, and pick a flagship only for tasks the cheaper model fails.
AI API prices from OpenAI, Anthropic, Google, and the open-weight providers differ by about 100x in October 2026. It comes down to which model tier a project defaults to. That one choice is often the biggest line item in an AI product's running costs, and a wrong default can quietly multiply a monthly bill before anyone notices.
In 2024, API pricing mostly mattered to big companies. By 2026, developers of every size build AI products: solo coders, funded startups, and large teams sending millions of requests a day. Knowing the pricing is now a core design decision.
This guide uses pricing from vendor announcements and rate cards as reported by third-party trackers in mid-October 2026, then turns it into cost comparisons for common workflows. Want the consumer subscription side instead? See our best AI chatbot guide and our earlier GPT-5.5 vs Claude Opus 4.8 vs Grok 4 comparison.
Every model below bills per million tokens, split into input (what you send) and output (what it generates). Rates are standard, non-batch and non-cached, which is the starting point before the cost levers covered later.
| Model | Provider | Input ($/M tokens) | Output ($/M tokens) | Notes |
|---|---|---|---|---|
| GPT-6 Astra | OpenAI | $10.00 | $50.00 | Flagship; long prompts (over 272K) cost more |
| GPT-6.1 Sol | OpenAI | $2.00 | $10.00 | Mid tier; near-flagship on coding and agents per OpenAI |
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | Budget tier for high volume |
| Claude Fable 5.1 | Anthropic | $10.00 | $50.00 | Top Claude tier |
| Claude Opus 5.5 | Anthropic | $4.00 | $20.00 | Released September 22, 2026 |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $10.00 | General production tier |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | Rates for prompts up to 100K; $0.50/$2.50 above |
| Gemini 3.1 Pro | $2.00 | $12.00 | $4.00/$18.00 above 200K tokens | |
| Gemini 3.6 to 3.8 Flash | $0.75 | $3.75 | Introductory rate through Dec 31, 2026 | |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 | Budget Gemini tier | |
| Mistral Large 3 | Mistral AI | $0.50 | $1.50 | Open-weight flagship |
| Mistral Small 4 | Mistral AI | $0.15 | $0.60 | Some trackers list $0.10/$0.30 |
| Llama 4 Maverick (hosted) | Together AI | $0.15 | $0.60 | Meta open-weight model; host rates vary |
| Llama 4 Scout (hosted) | Together AI | $0.10 | $0.30 | Cheapest Meta option listed |
| Llama 3.3 70B (hosted) | Groq / Together AI | $0.59 / $1.04 | $0.79 / $1.04 | Older model; Groq is cheaper |
Prices come from the providers' rate cards as reported by trackers dated October 2026, and the open-weight hosting rates are from June and July trackers. Rates move often, so confirm on each official pricing page before you commit a budget.
If you read older pricing guides, most of their models are gone. GPT-4o, Claude 3.5 Sonnet, Claude 3 Haiku, and Gemini 1.5 Flash no longer anchor any provider's current lineup. Here is what replaced them.
Found this useful?
Share it with someone deciding between AI tools, or get new comparisons like this in your inbox.
Token pricing only becomes real once you turn it into app costs. Here is the math, assuming 500 input tokens and 200 output tokens per call, which is typical for a chatbot or content-writing feature. One million calls means 500M input tokens and 200M output tokens.
The top tier costs about 100 times more than the budget tier at the same volume, $15,000 against $150. For apps handling millions of requests, picking the right model is the single biggest cost decision you can make.
The table is only the base price. These items change the real total.
Match the task to the cheapest model that still clears your quality bar. Move up a tier only when it does not:
Log every API call's task type for two weeks before you pick a routing strategy. Many teams assume they need a top-tier model far more often than their traffic shows.
The most cost-effective AI apps in 2026 use a tiered model approach. They send simple, structured requests to cheap models like GPT-6 Luna, Haiku 5.5, or Gemini Flash-Lite.
Only the hard, complex requests go to pricier models like Opus 5.5 or GPT-6 Astra. A well-built routing layer can cut API costs sharply versus sending everything to the top model, with savings in the 60 to 80% range commonly cited.
This is not a quality compromise. It is using the right tool for the job. Classifying a support ticket does not need a $10 model. Summarizing a complex legal document might.
Building this routing layer yourself, instead of using a no-code tool? Our best AI coding tools guide and AI tools for developers roundup cover the editors and agents that make multi-model routing easier to ship.
Open-weight models can undercut closed APIs, but the savings depend on volume. Hosted Llama 4 and GPT-OSS models on Together AI and Groq list at roughly $0.10 to $0.15 per million input tokens, in the same range as the budget tiers from OpenAI and Anthropic. They are not automatically cheaper than GPT-6 Luna or Haiku 5.5.
Self-hosting removes the per-token fee but adds GPU, DevOps and uptime costs. For steady, high-volume traffic it can win. For variable or low-volume traffic, a hosted API is almost always cheaper once engineering time counts. Pick open weights for control, privacy and customization, and pick a closed API when you want the strongest quality per request without running infrastructure.
Calling these APIs from a no-code workflow instead of custom code? Your automation platform choice affects the cost math directly. n8n, Make, and Zapier each handle model routing and API calls in different ways, with different pricing layered on top.
See our full comparison: n8n vs Make vs Zapier: AI Automation Platform Comparison 2026. For coding-specific budgets, check cheapest AI coding tools 2026.
Note: this comparison reflects pricing and model availability as of October 2026. For a second reference table with a worked cost example, see the LLM API Pricing Comparison: Cost Per Token 2026.
This analysis is independent research based on publicly published provider pricing. AI Nexus has no paid partnership with OpenAI, Anthropic, Google, or Meta. See our disclosure policy and editorial methodology.
Meta Llama 3 hosted via providers like Together AI or Groq is the cheapest capable AI API in 2026 — roughly $0.20–0.80 per million tokens. Among proprietary APIs, Google Gemini 1.5 Flash is the most affordable at $0.075 per million input tokens for most use cases.
OpenAI GPT-4o costs $5 per million input tokens and $15 per million output tokens. GPT-4o mini is $0.15/$0.60 per million tokens — significantly cheaper for tasks that don't need full GPT-4o capability.
For high-volume applications where cost is a primary constraint, Gemini 1.5 Flash ($0.075/M input tokens), GPT-4o mini ($0.15/M), or open-source Llama 3 (self-hosted or $0.20–0.80/M via cloud) provide the best cost-per-quality tradeoff at scale.
Claude 3.5 Sonnet API costs $3/$15 per million input/output tokens. GPT-4o costs $5/$15 per million tokens. For input-heavy workloads, Claude is cheaper. Both are competitive for production use cases requiring high-quality reasoning.