OpenAI: GPT-4o API Pricing

by openai · 128K context window ·

$2.500
Input /1M tokens
$10.000
Output /1M tokens
128K
Context window

Explore OpenAI GPT-4o API pricing details for machine learning engineers. Understand the cost implications of using this powerful large language model. Input tokens are priced at $2.50 per 1 million tokens, while output tokens cost $10.00 per 1 million tokens, for a total cost of $12.50 per million tokens. GPT-4o offers a substantial 128,000 token context window. For example, processing 10 million tokens monthly (8M input, 2M output) would cost approximately $40. Evaluate if OpenAI's GPT-4o API fits your project's budget and performance needs compared to other LLM APIs.

Monthly Cost Examples

Assuming 50% input / 50% output token split

UsageMonthly cost
100K tokens/month$0.62
1M tokens/month$6.25
10M tokens/month$62.50
100M tokens/month$625.00

Compare with other models

OpenAI: GPT-4o vs OpenAI: GPT-4o-mini →OpenAI: GPT-4o vs OpenAI: o1 →

Automate your model selection

StormRouter sends each request to the cheapest model that can handle it.
Only use OpenAI: GPT-4o when your quality requirements demand it.

Try StormRouter free →

Similar models

OpenAI: gpt-oss-120b (free)Free/1MOpenAI: gpt-oss-20b (free)Free/1MOpenAI: gpt-oss-20b$0.170/1MOpenAI: gpt-oss-120b$0.229/1MOpenAI: gpt-oss-120b (exacto)$0.229/1MOpenAI: gpt-oss-safeguard-20b$0.375/1M