API Providers & Pricing

Token pricing per 1M tokens ยท Compare input and output costs

OpenAI

The most widely adopted API for LLMs, powering ChatGPT and thousands of applications.

Docs
ModelInput / 1MOutput / 1MContextMax output
GPT-4o$2.50$10.00128K16.384K
GPT-4o Mini$0.15$0.60128K16.384K
GPT-4 Turbo$10.00$30.00128K4.096K
GPT-3.5 Turbo$0.50$1.5016.384K4.096K
Anthropic

Claude API known for safety, long context windows, and high-quality reasoning and writing.

Docs
ModelInput / 1MOutput / 1MContextMax output
Claude 3.5 Sonnet$3.00$15.00200K8.192K
Claude 3 Opus$15.00$75.00200K4.096K
Claude 3 Sonnet$3.00$15.00200K4.096K
Claude 3 Haiku$0.25$1.25200K4.096K
Google Gemini

Google's unified AI API with multimodal capabilities and tight integration with Google Cloud.

Docs
ModelInput / 1MOutput / 1MContextMax output
Gemini 1.5 Pro$3.50$10.501000K8.192K
Gemini 1.5 Flash$0.07$0.301000K8.192K
Gemini 1.0 Pro$0.50$1.5032.768K2.048K
DeepSeek

DeepSeek offers extremely competitive pricing for their MoE models, popular with cost-sensitive developers.

Docs
ModelInput / 1MOutput / 1MContextMax output
DeepSeek-V2$0.14$0.28128K4.096K
DeepSeek-R1$0.55$2.19128K8.192K
DeepSeek-Coder-V2$0.14$0.28128K4.096K
Mistral AI

European AI lab offering open-weight and commercial models with strong multilingual support.

Docs
ModelInput / 1MOutput / 1MContextMax output
Mistral Large 2 (24.07)$2.00$6.00128K8.192K
Mistral Small (24.02)$1.00$3.0032.768K4.096K
Codestral (24.05)$1.00$3.0032.768K8.192K
Cohere

Enterprise-focused API with strengths in RAG, embedding, and classification for business use cases.

Docs
ModelInput / 1MOutput / 1MContextMax output
Command R+$2.50$10.00128K4.096K
Command R$0.50$1.50128K4.096K
Embed v3 (English)$0.10$0.00512512