GPT-4o

GPT-4o is a text model from OpenRouter with a context window of 128K tokens and max output of 4K tokens. Pricing starts at 2.50 per million input tokens and 10.00 per million output tokens (cheapest at Vercel AI Gateway).

Capabilities

Vision Function Calling Reasoning JSON Schema System Messages Web Search Prompt Caching Audio Input Audio Output

Specifications

Model Keyopenrouter/openai/gpt-4o
ProviderOpenRouter
Provider IDopenrouter
ModeText
Canonical Namegpt-4o
Context Window128K tokens
Max Output4K tokens

Pricing

TypePer 1K TokensPer 1M Tokens
Input Tokens0.00252.50
Output Tokens0.01010.00

Benchmarks

Intelligence Index17.3#108
Coding Index16.7#88
Math Index6.0#127
MMLU-Pro0.7#82
GPQA0.5#119
HLE0.0#212
LiveCodeBench0.3#105
AIME0.1#73
IFBench0.3#115
Time to First Token0.48s#124
SciCode0.3#79
MATH-5000.8#81
AIME 20250.1#127
LCR0.0#151
TerminalBench Hard0.1#82
TAU20.3#102

Price Comparison by Provider

Compare prices for GPT-4o across different providers. The same model may be available through multiple providers at different price points.

Provider
Model Key
Input Price, $
Output Price, $
Vercel AI Gatewayvercel_ai_gateway/openai/gpt-4o2.5010.00
Replicatereplicate/openai/gpt-4o2.5010.00
Perplexityperplexity/openai/gpt-4oN/AN/A
OpenRouteropenrouter/openai/gpt-4o2.5010.00
Gradient AIgradient_ai/openai-gpt-4oN/AN/A
OpenAIgpt-4o2.5010.00
GMI Cloudgmi/openai/gpt-4o2.5010.00
GitHub Copilotgithub_copilot/gpt-4-o-previewN/AN/A
Azure OpenAIazure/gpt-4o-audio-preview-2024-12-172.5010.00

All Variants

All available versions, regions, and API endpoints for GPT-4o.

Model Key
Provider
Mode
Input Price, $
Output Price, $
Context
Max Output
Vision
Functions
azure/eu/gpt-4o-2024-08-06Azure OpenAIText2.7511.00128K16Kyesyes
azure/eu/gpt-4o-2024-11-20Azure OpenAIText2.7511.00128K16Kyesyes
azure/global-standard/gpt-4o-2024-08-06Azure OpenAIText2.5010.00128K16Kyesyes
azure/global-standard/gpt-4o-2024-11-20Azure OpenAIText2.5010.00128K16Kyesyes
azure/global/gpt-4o-2024-08-06Azure OpenAIText2.5010.00128K16Kyesyes
azure/global/gpt-4o-2024-11-20Azure OpenAIText2.5010.00128K16Kyesyes
azure/gpt-4oAzure OpenAIText2.5010.00128K16Kyesyes
azure/gpt-4o-2024-05-13Azure OpenAIText5.0015.00128K4Kyesyes
azure/gpt-4o-2024-08-06Azure OpenAIText2.5010.00128K16Kyesyes
azure/gpt-4o-2024-11-20Azure OpenAIText2.7511.00128K16Kyesyes
azure/gpt-4o-audio-preview-2024-12-17Azure OpenAIText2.5010.00128K16Knoyes
azure/gpt-4o-transcribeAzure OpenAIAudio (STT/TTS)2.5010.0016K2Knono
azure/gpt-4o-transcribe-diarizeAzure OpenAIAudio (STT/TTS)2.5010.0016K2Knono
azure/us/gpt-4o-2024-08-06Azure OpenAIText2.7511.00128K16Kyesyes
azure/us/gpt-4o-2024-11-20Azure OpenAIText2.7511.00128K16Kyesyes
github_copilot/gpt-4-o-previewGitHub CopilotTextN/AN/A64K4Knoyes
github_copilot/gpt-4oGitHub CopilotTextN/AN/A64K4Kyesyes
github_copilot/gpt-4o-2024-05-13GitHub CopilotTextN/AN/A64K4Kyesyes
github_copilot/gpt-4o-2024-08-06GitHub CopilotTextN/AN/A64K16Knoyes
github_copilot/gpt-4o-2024-11-20GitHub CopilotTextN/AN/A64K16Kyesyes
gmi/openai/gpt-4oGMI CloudText2.5010.00131K16Kyesyes
gradient_ai/openai-gpt-4oGradient AITextN/AN/A16KN/Anono
chatgpt-4o-latestOpenAIText5.0015.00128K4Kyesyes
ft:gpt-4o-2024-08-06OpenAIText3.7515.00128K16Kyesyes
ft:gpt-4o-2024-11-20OpenAIText3.7515.00128K16Knoyes
gpt-4oOpenAIText2.5010.00128K16Kyesyes
gpt-4o-2024-05-13OpenAIText5.0015.00128K4Kyesyes
gpt-4o-2024-08-06OpenAIText2.5010.00128K16Kyesyes
gpt-4o-2024-11-20OpenAIText2.5010.00128K16Kyesyes
gpt-4o-transcribe-diarizeOpenAIAudio (STT/TTS)2.5010.0016K2Knono
openrouter/openai/gpt-4oOpenRouterText2.5010.00128K4Kyesyes
openrouter/openai/gpt-4o-2024-05-13OpenRouterText5.0015.00128K4Kyesyes
perplexity/openai/gpt-4oPerplexityOtherN/AN/AN/AN/Anono
replicate/openai/gpt-4oReplicateText2.5010.00N/AN/Ayesyes
vercel_ai_gateway/openai/gpt-4oVercel AI GatewayText2.5010.00128K16Kyesyes