Gpt 4.1
Provider: vercel ai gateway ·
vercel_ai_gateway/openai/gpt-4.1 Pricing per million tokens
| Component | USD per 1M tokens |
|---|---|
| Input | $2.00 |
| Output | $8.00 |
| Cached input (read) | $0.50 |
| Cache write | $0.00 |
💡 With prompt caching, you save up to 75% 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
$3.15
per month
Saves $0.45 via caching
Medium
10M in / 2000k out
$31.50
per month
Saves $4.50 via caching
Large
100M in / 20000k out
$315
per month
Saves $45.00 via caching
Context
- Input window
- 1,047,576 tokens
- Max output
- 32,768 tokens
Capabilities
- ✅ Vision (image input)
- ✅ Function / tool calling
- ⬜ Prompt caching
- ⬜ Web search
- ✅ JSON / response schema
Compare Gpt 4.1 with similar models
Claude Sonnet 4.5
vercel ai gateway
$3.00 in
/ $15.00 out
Gemini 2.5 Pro
vercel ai gateway
$2.50 in
/ $10.00 out
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
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.