Gpt 4o
Provider: vercel ai gateway ·
vercel_ai_gateway/openai/gpt-4o Pricing per million tokens
| Component | USD per 1M tokens |
|---|---|
| Input | $2.50 |
| Output | $10.00 |
| Cached input (read) | $1.25 |
| Cache write | $0.00 |
💡 With prompt caching, you save up to 50% on cached input tokens — massive for repeated context like system prompts, RAG retrieval, or long conversations.
Monthly cost estimates
Assuming 30% prompt-cache hit rate where available. Adjust for your actual usage.
Small
1M in / 200k out
$4.13
per month
Saves $0.38 via caching
Medium
10M in / 2000k out
$41.25
per month
Saves $3.75 via caching
Large
100M in / 20000k out
$413
per month
Saves $37.50 via caching
Context
- Input window
- 128,000 tokens
- Max output
- 16,384 tokens
Capabilities
- ✅ Vision (image input)
- ✅ Function / tool calling
- ⬜ Prompt caching
- ⬜ Web search
- ✅ JSON / response schema
Compare Gpt 4o with similar models
Claude 3.5 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3.7 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 4 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3 5 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3 5 Sonnet 20241022
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3 7 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Pricing data sourced from LiteLLM and refreshed regularly. Last updated May 20, 2026. Always verify with the provider's official pricing page before making business decisions.