OpenAI API alternatives compared by price
OpenAI API starts at $0.10 per million input tokens, $0.5 per million output for gpt-6-luna (USD per million tokens, standard processing). OpenAI API last cut a list price in Oct 2026: Cheapest model, output went from $1.20 to $0.50 (-58%), first seen on its pricing page that month. Below are 10 alternatives with their current plans and price history; 1 list a lower entry price and 1 has a free plan.
10 OpenAI API alternatives at a glance
Entry price is each product's cheapest paid plan as last read from its pricing page. Check the unit: some charge per user, others per account or per use.
| Product | Starts at | Free plan | Priced by | Latest price change |
|---|---|---|---|---|
| $0.10 per million input tokens, $0.5 per million output | No | Usage based | Cheapest model, output went from $1.20 to $0.50 (-58%) | |
| $1 per million input tokens, $5 per million output | No | Usage based | Sonnet tier, output from $15 to $10 (-33%), Jul 2026. | |
| $0.25 per million input tokens, $1.5 per million output | Yes | Usage based | none recorded | |
| $1 per million input tokens, $2 per million output | No | Usage based | none recorded | |
| $0.042 per million input tokens, output tokens free | No | Usage based | none recorded | |
| $0.15 per million input tokens, $0.6 per million output | No | Usage based | none recorded | |
| $1 per million input tokens, $1 per million output, plus $5 to $12 per 1,000 requests | No | Usage based | none recorded | |
| $0.30 per million input tokens, $2.5 per million output | No | Usage based | Claude flagship, output from $25 to $50 (+100%), Sep 2026. | |
| $0.75 per million input tokens, $3.75 per million output, introductory until 2027 | No | Usage based | Gemini Flash tier, output from $3 to $3.75 (+25%), Oct 2026. | |
| $0.10 per million input tokens, $0.5 per million output, global | No | Usage based | Cheapest model, output from $1.20 to $0.50 (-58%), Sep 2026. | |
| $0.30 per million input tokens at peak, $1.20 per million output, half price off peak | No | Usage based | none recorded |
Exhibit 1
OpenAI API and its alternatives over time
Each product's cheapest paid plan by default. Click a legend entry to add or hide a plan.
Show the data as a table
| Observed | OpenAI API Cheapest model, input | Claude API Haiku tier, input | Gemini API Gemini 3.8 Flash, input | xAI API grok-4.3, input | TypeSafe AI Jev |
|---|---|---|---|---|---|
| Nov 20, 2021 | $0.80 | ||||
| Nov 3, 2022 | $0.40 | ||||
| May 2, 2024 | $0.50 | ||||
| Jun 20, 2024 | $0.25 | ||||
| Nov 12, 2024 | $0.15 | ||||
| Dec 3, 2024 | $1 | ||||
| Jun 3, 2025 | $0.80 | ||||
| Oct 1, 2025 | $0.80 | ||||
| Nov 11, 2025 | $0.05 | ||||
| Jan 1, 2026 | $1 | ||||
| Apr 1, 2026 | $1 | ||||
| Jul 1, 2026 | $1 | ||||
| Sep 21, 2026 | $0.20 | $1 | $0.75 | $1.25 | $0.04 |
| Oct 3, 2026 | $0.10 | $1 | $0.75 | $1.25 | $0.04 |
Claude API
The Claude API is how developers pay for Anthropic's models: per million tokens, with input and output priced separately and every model tier a fixed step apart. Since Opus 4.5 in late 2025 the top tier has dropped from $15 to $5 per million input tokens while a new tier above it, Fable 5.1, took the $10 slot.
Claude API starts at $1 per million input tokens, $5 per million output for Haiku 4.5 (USD per million tokens, standard processing), goes up to $10 per million input tokens, $50 per million output for Fable 5.1. Latest change: Sonnet tier, output from $15 to $10 (-33%), Jul 2026.
Claude API pricing and price historyOpenAI API vs Claude API pricing
Gemini API
The Gemini API is Google's per token offer to developers and the only one of the big three with a free tier on most models. Pro models charge more above 200,000 tokens of prompt, and the newest Flash models are sold at an introductory rate that Google has already announced will double in 2027.
Gemini API starts at $0.25 per million input tokens, $1.5 per million output for Gemini 3.1 Flash-Lite (USD per million tokens, paid tier, prompts up to 200K tokens), goes up to $2 per million input tokens, $12 per million output for prompts up to 200K tokens for Gemini 3.1 Pro Preview, has a free plan.
Gemini API pricing and price historyOpenAI API vs Gemini API pricing
xAI API
The xAI API sells Grok models per million tokens with the same input and output split as its rivals, cached input at a discount and a doubled rate for long prompts. Its flagship sits between OpenAI's mid and top tiers on price.
xAI API starts at $1 per million input tokens, $2 per million output for grok-build-0.1 (USD per million tokens, prompts under 200K tokens), goes up to $2 per million input tokens, $6 per million output for grok-4.6.
xAI API pricing and price historyOpenAI API vs xAI API pricing
TypeSafe AI
TypeSafe AI sells Jev, a model that answers typed questions about program state with structured, calibrated decisions rather than free text, aimed at automation inside software. There are no plans or seats: usage is metered at $42 per billion input tokens and output is not charged, which the company positions against the per-token prices of general purpose language models.
TypeSafe AI starts at $0.042 per million input tokens, output tokens free for Jev (USD per million input tokens; output tokens are free).
TypeSafe AI pricing and price historyOpenAI API vs TypeSafe AI pricing
Mistral API
Mistral's La Plateforme prices its models far below the US labs per million tokens, and unusually its flagship Large 3 costs less than the mid tier Medium 3.5. Open weight models like Ministral sit at the bottom with the same price for input and output.
Mistral API starts at $0.15 per million input tokens, $0.6 per million output for Mistral Small 4 (USD per million tokens), goes up to $1.50 per million input tokens, $7.5 per million output for Mistral Medium 3.5.
Mistral API pricing and price historyOpenAI API vs Mistral API pricing
Perplexity Sonar API
Perplexity's Sonar API is a web-grounded answer engine for developers. Token prices look like everyone else's, but each request also carries a fee that depends on how much web context is pulled in, which makes it a hybrid of per token and per call pricing.
Perplexity Sonar API starts at $1 per million input tokens, $1 per million output, plus $5 to $12 per 1,000 requests for Sonar (USD per million tokens, before per request fees), goes up to $3 per million input tokens, $15 per million output, plus $6 to $14 per 1,000 requests for Sonar Pro.
Perplexity Sonar API pricing and price historyOpenAI API vs Perplexity Sonar API pricing
Amazon Bedrock
Amazon Bedrock is where AWS customers buy Claude, Amazon Nova and other models without a separate vendor contract. Claude's top tier on Bedrock went from $8 and $24 per million tokens for Claude 2.1 to $15 and $75 for Opus 4, and now tracks Anthropic's own API exactly at $10 and $50 for Fable 5.1.
Amazon Bedrock starts at $0.30 per million input tokens, $2.5 per million output for Amazon Nova 2 Lite (USD per million tokens, on-demand in US East (N. Virginia), global cross-region rate where offered), goes up to $10 per million input tokens, $50 per million output, global for Claude Fable 5.1. Latest change: Claude flagship, output from $25 to $50 (+100%), Sep 2026.
Amazon Bedrock pricing and price historyOpenAI API vs Amazon Bedrock pricing
Vertex AI
Vertex AI is the Google Cloud route to Gemini, priced the same as Google's developer API but billed through a Cloud account. Gemini Pro went from $1.25 to $2 per million input tokens with Gemini 3, and the Flash tier has climbed from $0.15 to $0.75.
Vertex AI starts at $0.75 per million input tokens, $3.75 per million output, introductory until 2027 for Gemini 3.8 Flash (USD per million tokens, standard tier, prompts up to 200K tokens, global endpoint), goes up to $2 per million input tokens, $12 per million output for Gemini 3.1 Pro Preview. Latest change: Gemini Flash tier, output from $3 to $3.75 (+25%), Oct 2026.
Vertex AI pricing and price historyOpenAI API vs Vertex AI pricing
Azure OpenAI
Azure OpenAI is how Microsoft customers buy GPT models, with global prices that have tracked OpenAI's own API since 2024. The flagship fell from $30 per million input tokens for GPT-4 to $1.25 for GPT-5 and has climbed back to $10 with GPT-6 Astra.
Azure OpenAI starts at $0.10 per million input tokens, $0.5 per million output, global for GPT-6 Luna (USD per million tokens, standard global deployment (regional and Data Zone before global existed)), goes up to $10 per million input tokens, $50 per million output, global for GPT-6 Astra. Latest change: Cheapest model, output from $1.20 to $0.50 (-58%), Sep 2026.
Azure OpenAI pricing and price historyOpenAI API vs Azure OpenAI pricing
DeepSeek API
DeepSeek sells open-weight-lineage models through a plain per-token API at some of the lowest rates in the category. Peak input starts at $0.30 per million tokens and halves off peak.
DeepSeek API starts at $0.30 per million input tokens at peak, $1.20 per million output, half price off peak for deepseek-flash (USD per million tokens, peak rate, cache miss), goes up to $1.32 per million input tokens at peak, $3.96 per million output, half price off peak for deepseek-v4-pro.
OpenAI API alternatives: questions
- What is the cheapest alternative to OpenAI API?
- Of the alternatives we track, TypeSafe AI has the lowest listed entry price: $0.042 per million input tokens, output tokens free for Jev (USD per million input tokens; output tokens are free). OpenAI API starts at $0.10 per million input tokens, $0.5 per million output. Check the unit, since some products charge per user and others per account.
- Is there a free alternative to OpenAI API?
- Yes. Gemini API lists a free plan next to paid plans.
- Has OpenAI API raised its prices?
- OpenAI API last cut a list price in Oct 2026: Cheapest model, output went from $1.20 to $0.50 (-58%), first seen on its pricing page that month.
- Which OpenAI API alternatives raised their prices?
- Amazon Bedrock, Vertex AI. Amazon Bedrock: Claude flagship, output from $25 to $50 (+100%), Sep 2026. Vertex AI: Gemini Flash tier, output from $3 to $3.75 (+25%), Oct 2026.