TokenRoute
Get started
Back to models

OpenAI: GPT-4o (2024-08-06)

Moderated

openai/gpt-4o-2024-08-06

The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability to supply a JSON schema in the respone_format. Read more [here](https://openai.com/index/introducing-structured-outputs-in-the-api/). GPT-4o ("o" for "omni") is...

Pricing

Input$1.75 /M
Output$7.00 /M
Cache read$0.8750 /M

Specs

Context length128K tokens
Max output16.4K tokens
Inputtext, image, file
Outputtext

Quickstart

Point the OpenAI SDK at https://tokenroute.app/api/v1 and use a TokenRoute API key.

bash
curl https://tokenroute.app/api/v1/chat/completions \
  -H "Authorization: Bearer $TOKENROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-2024-08-06",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

frequency_penalty
logit_bias
logprobs
max_completion_tokens
max_tokens
prediction
presence_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_logprobs
top_p
web_search_options