Model specifications
- Context
- 8,191 tokens
- Maximum output
- 4,096 tokens
- Architecture
- text->text
- Tokenizer
- GPT
- Knowledge cutoff
- 2021-09-30
- Moderated
- Yes
Complete pricing
Synchronized OpenRouter rates. Token prices are shown per one million tokens.
- Input
- $30 /M tokens
- Output
- $60 /M tokens
Quick start
Call this exact model ID through OpenRouter’s OpenAI-compatible API.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4","messages":[{"role":"user","content":"Hello!"}]}'Input → Output
Supported API parameters
frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_p2 providers
Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.
OpenAI
unknown- Context
- 8K
- Maximum output
- 4K
- Input
- $30.00
- Output
- $60.00
- Cache read
- Not provided
- Cache write
- Not provided
Azure
unknown- Context
- 8K
- Maximum output
- 4K
- Input
- $30.00
- Output
- $60.00
- Cache read
- Not provided
- Cache write
- Not provided