AI Models with Long Context Support
This page lists Large Language Models that offer Long Context. Compare models, see how they implement this feature, and find the best option for projects requiring robust Long Context.
Providers
Models with this Capability
Gemini 2.5 Flash Preview
Google · Gemini
ID: google-gemini-2.5-flash-preview
Input
1M tokens
Output
0 tokens
Input Cost
$0.15/1M
Output Cost
$0.60/1M
Exceptional at:
Gemini 2.0 Flash
Google · Gemini
ID: google-gemini-2.0-flash
Input
1M tokens
Output
0 tokens
Input Cost
$0.10/1M
Output Cost
$0.40/1M
Exceptional at:
Gemini 2.0 Flash
Google · Gemini
ID: google-gemini-2.0-flash-live
Input
1M tokens
Output
0 tokens
Input Cost
$0.10/1M
Output Cost
$0.40/1M
Exceptional at:
Claude Sonnet 3.7
Anthropic · Claude 3
ID: claude-3-7-sonnet-20250219
Input
200K tokens
Output
64K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Exceptional at:
GPT-4.1 nano
OpenAI · GPT-4.1
ID: gpt-4.1-nano
Input
1.0M tokens
Output
32.8K tokens
Input Cost
$0.10/1M
Output Cost
$0.40/1M
Exceptional at:
Gemini 1.5 Flash-8B
Google · Gemini
ID: google-gemini-1.5-flash-8b
Input
1M tokens
Output
0 tokens
Input Cost
$0.04/1M
Output Cost
$0.15/1M
Claude 3.5 Haiku
Anthropic · Claude 3.5
ID: anthropic-claude-3-5-haiku
Input
200K tokens
Output
8.2K tokens
Input Cost
$0.80/1M
Output Cost
$4.00/1M
Exceptional at:
Claude 3.5 Sonnet
Anthropic · Claude
ID: anthropic-claude-3-5-sonnet
Input
200K tokens
Output
4.1K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Exceptional at:
o1-mini
OpenAI · o1
ID: o1-mini
Input
128K tokens
Output
65.5K tokens
Input Cost
$1.10/1M
Output Cost
$4.40/1M
Exceptional at:
Claude Haiku 3
Anthropic · Claude 3
ID: anthropic-claude-3-haiku
Input
200K tokens
Output
4.1K tokens
Input Cost
$0.25/1M
Output Cost
$1.25/1M
Exceptional at:
Claude Sonnet 3.5
Anthropic · Claude 3.5
ID: claude-3-5-sonnet-20240620
Input
200K tokens
Output
8.2K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Claude Sonnet 3
Anthropic · Claude 3
ID: claude-3-sonnet-20240229
Input
200K tokens
Output
4.1K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Exceptional at:
GPT-4 Turbo
OpenAI · GPT-4
ID: gpt-4-turbo
Input
128K tokens
Output
4.1K tokens
Input Cost
$10.00/1M
Output Cost
$30.00/1M
Exceptional at:
o1-pro
OpenAI · o1
ID: o1-pro
Input
200K tokens
Output
100K tokens
Input Cost
$150.00/1M
Output Cost
$600.00/1M
Exceptional at:
o3-2025-04-16
OpenAI · o3
ID: o3-2025-04-16
Input
200K tokens
Output
100K tokens
Input Cost
$10.00/1M
Output Cost
$40.00/1M
Exceptional at:
o3
OpenAI · OpenAI
ID: o3
Input
200K tokens
Output
100K tokens
Input Cost
$10.00/1M
Output Cost
$40.00/1M
Exceptional at:
Claude Opus 4
Anthropic · Claude
ID: claude-opus-4-20250514
Input
200K tokens
Output
32K tokens
Input Cost
$15.00/1M
Output Cost
$75.00/1M
Exceptional at:
GPT-4o
OpenAI · GPT-4o
ID: gpt-4o
Input
128K tokens
Output
16.4K tokens
Input Cost
$2.50/1M
Output Cost
$10.00/1M
Exceptional at:
Claude Haiku 3
Anthropic · Claude 3
ID: claude-3-haiku-20240307
Input
200K tokens
Output
4.1K tokens
Input Cost
$0.25/1M
Output Cost
$1.25/1M
GPT-4.1 mini
OpenAI · GPT-4.1
ID: gpt-4.1-mini
Input
1.0M tokens
Output
32.8K tokens
Input Cost
$0.40/1M
Output Cost
$1.60/1M
Claude Opus 3
Anthropic · Claude 3
ID: claude-3-opus-20240229
Input
200K tokens
Output
4.1K tokens
Input Cost
$15.00/1M
Output Cost
$75.00/1M
Exceptional at:
Gemini 1.5 Flash
Google · Gemini
ID: google-gemini-1.5-flash
Input
1M tokens
Output
1M tokens
Input Cost
$0.07/1M
Output Cost
$0.30/1M
Exceptional at:
Gemini 2.5 Pro Preview
Google · Gemini
ID: google-gemini-2.5-pro-preview
Input
1M tokens
Output
0 tokens
Input Cost
$1.25/1M
Output Cost
$10.00/1M
Exceptional at:
Gemini 1.5 Pro
Google · Gemini
ID: google-gemini-1.5-pro
Input
2M tokens
Output
0 tokens
Input Cost
$1.25/1M
Output Cost
$5.00/1M
Exceptional at:
Claude 3.7 Sonnet
Anthropic · Claude 3
ID: anthropic-claude-3-7-sonnet
Input
200K tokens
Output
4.1K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Exceptional at:
GPT-4o
OpenAI · GPT-4o
ID: gpt-4o-2024-08-06
Input
128K tokens
Output
16.4K tokens
Input Cost
$2.50/1M
Output Cost
$10.00/1M
Exceptional at:
Claude Opus 3
Anthropic · Claude 3
ID: anthropic-claude-3-opus
Input
200K tokens
Output
4.1K tokens
Input Cost
$15.00/1M
Output Cost
$75.00/1M
Exceptional at:
Claude Sonnet 4
Anthropic · Claude 4
ID: claude-sonnet-4-20250514
Input
200K tokens
Output
64K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Exceptional at:
GPT-3.5 Turbo
OpenAI · GPT-3.5 Turbo
ID: gpt-3.5-turbo-0125
Input
16.4K tokens
Output
4.1K tokens
Input Cost
$0.50/1M
Output Cost
$1.50/1M
Claude Sonnet 4
Anthropic · Claude
ID: claude-sonnet-4-0
Input
200K tokens
Output
64K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Exceptional at:
Claude Opus 4
Anthropic · Claude 4
ID: claude-opus-4-0
Input
200K tokens
Output
32K tokens
Input Cost
$15.00/1M
Output Cost
$75.00/1M
Exceptional at:
o4-mini
OpenAI · o-series
ID: o4-mini
Input
200K tokens
Output
100K tokens
Input Cost
$1.10/1M
Output Cost
$4.40/1M
Exceptional at:
GPT-4.1
OpenAI · GPT-4.1
ID: gpt-4.1
Input
1.0M tokens
Output
32.8K tokens
Input Cost
$2.00/1M
Output Cost
$8.00/1M
Exceptional at:
Claude Opus 3
Anthropic · Claude 3
ID: claude-3-opus-latest
Input
200K tokens
Output
4.1K tokens
Input Cost
$15.00/1M
Output Cost
$75.00/1M
Exceptional at: