GPT-4o API
Send openai/gpt-4o for OpenAI vision and tools inside a 128,000 token window at 2.50 / 10. That is a smaller window than GPT-5 Mini at a higher price. Use 4o when the 4o id is the integration contract. If you need 400k or a measured cache score, Mini is the published option.
What is GPT-4o API in NextModel?
Send openai/gpt-4o for OpenAI vision and tools inside a 128,000 token window at 2.50 / 10. That is a smaller window than GPT-5 Mini at a higher price. Use 4o when the 4o id is the integration contract. If you need 400k or a measured cache score, Mini is the published option.
GPT-4o via NextModel: 128k-token context; $2.50 / 1M tokens in / $10 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.
Best use cases
- Existing openai/gpt-4o callers.
- Vision or tool work that must stay on the 4o id.
- A 128k OpenAI path beside Mini and 4o-mini on the same base URL.
When not to use
- You need 400k. Mini and GPT-5 list that.
- You want the cheap 128k OpenAI id. GPT-4o-mini is 0.15 / 0.60.
- You want cache numbers. 4o has no first-party row.
OpenAI-compatible code example
curl https://api.nextmodel.app/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NEXTMODEL_API_KEY" \
-d '{"model":"openai/gpt-4o","messages":[{"role":"user","content":"Reply with OK."}]}'Switching models only changes the model field.
Similar alternatives
GPT-4.1 via NextModel: 1M-token context; $2 / 1M tokens in / $8 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.
GPT-4.1 Mini via NextModel: 1M-token context; $0.4 / 1M tokens in / $1.60 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.
GPT-4.1 Nano via NextModel: 1M-token context; $0.1 / 1M tokens in / $0.4 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.
Reading
Articles that explain GPT-4o
GPT-4o is listed on NextModel: 2.50 input, 128k context
Listed price, 128k context, and the unpublished cache scores.
Zhao Yu'an
How to estimate AI API cost before you ship
Unit price is not monthly spend.
Lin Qiming
LLM Gateway: Compare Options and Alternatives
Same OpenAI-compatible base URL as the rest of the catalog.
Zhao Yu'an
FAQ
GPT-4o API questions
What model id do I send for GPT-4o?
Send openai/gpt-4o to https://api.nextmodel.app/v1.
Why not GPT-5 Mini?
Mini lists 400,000 tokens at 0.25 / 2 and has an 80% Safe Hit Rate. 4o lists 128,000 at 2.50 / 10 with no cache row.
CacheSafety?
Unpublished for this exact id.
Start now
Ready to start building?
Passwordless signup, pay-as-you-go billing, and one OpenAI-compatible endpoint for every model. Create your key and send your first request in minutes.