GPT-4o API
GPT-4o is a language model from openai, available on Routeriva under the model ID gpt-4o-2024-05-13. You call it with the same sk- key you use for every other model — no separate openai account is needed.
On Routeriva it costs $1.50 per 1M input tokens and $4.50 per 1M output tokens, compared with the official list price of $5.00 / $15.00 — about 70% less. Prices shown are the lowest across the routes that serve this model; your key is charged at its own route's price.
GPT-4o works with the official OpenAI SDKs on both /v1/chat/completions and /v1/responses, including streaming and tool calls, so Codex, Cursor and other OpenAI-based tools work by changing the base URL.
Key facts
- Model ID:
gpt-4o-2024-05-13 - Provider: openai
- Type: text
- Input: $1.50 / 1M (list $5.00)
- Output: $4.50 / 1M (list $15.00)
- Endpoints: /v1/chat/completions, /v1/responses
Good for
- General reasoning and coding
- Agents with tool calling (Codex, Responses API)
- Structured JSON output
Prices by route
| Route | Input / 1M | Output / 1M |
|---|---|---|
| Azure GPT 1 OLD | $1.50 | $4.50 |
Code sample
from openai import OpenAI
client = OpenAI(base_url="https://api.routeriva.com/v1", api_key="sk-your-key")
r = client.chat.completions.create(model="gpt-4o-2024-05-13", messages=[{"role": "user", "content": "Hello"}])
print(r.choices[0].message.content)FAQ
How much does the GPT-4o API cost on Routeriva?
From $1.50 per 1M input tokens and $4.50 per 1M output tokens (official list $5.00 / $15.00, about 70% less). Live prices are on routeriva.com/models/gpt-4o-2024-05-13.
What model ID do I use for GPT-4o?
Use "gpt-4o-2024-05-13" as the model value with base URL https://api.routeriva.com/v1 and your sk- key.
Which endpoints support GPT-4o?
/v1/chat/completions, /v1/responses on https://api.routeriva.com.