← All models
OpenAI · Language model
GPT-4o (2024-08-06)
openai/gpt-4o-2024-08-06- Language
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...
Specifications
- Context window
- 128,000 tokens
- Max output
- 16,384 tokens
- Input
- text, image, file
- Output
- text
- Tokenizer
- GPT
- Knowledge cutoff
- 2023-10-31
- Moderation
- provider-moderated
Supported parameters
Accepted by the model and forwarded as-is by the gateway.
- 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
Use it
POST /api/v1/chat/completions · MCP chat · full reference
curl https://omnirail.org/api/v1/chat/completions \
-H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o-2024-08-06","messages":[{"role":"user","content":"Hello"}],"max_tokens":300}'