Available now
OpenAI
gpt-4o
The 2024-11-20 version of GPT-4o offers a leveled-up creative writing ability with more natural, engaging, and tailored writing to improve relevance & readability. It’s also better at working with uploaded...
TextToolsFilesVision128KCacheWebSearch
InputFree
OutputFree
Context128K
Endpointsopenai
Capabilities
ToolsParallel toolsVisionFilesCacheStructuredWeb search
Modalities
Input
textimagefile
Output
text
Quick stats
Context window128K
Max output16.4K
Modechat
TokenizerGPT
Knowledge cutoff2023
Deprecation2026
ModeratedYes
Performance
Loading performance data...
Supported parameters
| Parameter | Always | Default |
|---|---|---|
| frequency_penalty | - | |
| logit_bias | - | |
| logprobs | - | |
| max_tokens | - | |
| presence_penalty | - | |
| response_format | - | |
| seed | - | |
| stop | - | |
| structured_outputs | - | |
| temperature | - | |
| tool_choice | - | |
| tools | - | |
| top_logprobs | - | |
| top_p | - | |
| web_search_options | - |
§ 01
Pricing
| Input price | $0.00 · 1M tokens |
| Output price | $0.00 · 1M tokens |
| Context window | 128K tokens |
| Compatible endpoints | openai |
| Vendor | OpenAI |
§ 02
Call gpt-4o from your code
Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.
bash
curl https://api.unorouter.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}'§ 03
Frequently asked questions
How much does gpt-4o cost per 1M tokens?
Input is priced at $0.00 per 1M tokens, output at $0.00 per 1M tokens. Billing is per token, no rounding to batch sizes.
How do I access gpt-4o via API?
Send requests to the UnoRouter /v1/chat/completions endpoint with model=gpt-4o. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.
What is the context window of gpt-4o?
gpt-4o supports a context window of 128K tokens, shared between your prompt and the model's response.
§ 04