GPT-4o (2024-08-06)

openai/gpt-4o-2024-08-06
ZDR
VisionToolsJSON
by OpenAI · 2024-08-06

GPT-4o (2024-08-06) is a multimodal AI model from OpenAI, accessed through OrcaRouter's OpenAI-compatible API. It accepts text, image, and file inputs, and generates text outputs up to 16,384 tokens. The model has a context window of 128,000 tokens, enabling processing of long documents or multi-image conversations. It achieves a score of 79.5 on the MATH-500 benchmark, demonstrating advanced mathematical reasoning capabilities. Pricing is $2.50 per 1 million input tokens and $10.00 per 1 million output tokens, billed at the provider rate with zero markup from OrcaRouter. This model is suitable for applications requiring vision understanding, complex reasoning, and large-context tasks. Its multimodal nature allows analysis of images, diagrams, and embedded text within files, making it a versatile choice for developers who need to combine visual and textual information.

Max output16K
Inputtext + image + file
Outputtext
Data retentionZero Data Retention available. With ZDR on, requests go only to providers with a zero-retention agreement.
Runs inEuropean Union
Context window128Ktokens
INPUT$2.50/ 1M tokens
OUTPUT$10.00/ 1M tokens
p50 TTFTCollecting…
p95 TTFTCollecting…

Pricing

Pricing
Input / 1M tokens$2.50
Output / 1M tokens$10.00
Cache read / 1M$1.25
CurrencyUSD

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $8.00 · With prompt caching $7.00

1.6M input × $2.5/M + 400K output × $10/M

Prompt caching assumes half of the input tokens are read from cache at $1.25/M.

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0035$3.50
Summarize a long doc30K / 1K$0.085$85.00
Code review8K / 2K$0.040$40.00

Token & cost estimator

Input tokens: 20Cost per request: $0.005050

Estimate only — actual token counts depend on the provider's tokenizer.

Code samples

Use an OpenAI-compatible SDK or send an HTTP request. Get API key

API key
export ORCAROUTER_API_KEY=…
Base URL
https://api.orcarouter.ai/v1
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key=os.environ["ORCAROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-4o-2024-08-06",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Example response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1763280000,
  "model": "openai/gpt-4o-2024-08-06",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 10,
    "total_tokens": 19
  }
}
  • choices[0].message.content — the model's answer.
  • finish_reason — "stop" means the answer is complete; "length" means it was cut off at max_tokens.
  • usage — the input and output tokens this call is billed for.

An HTTP 200 with finish_reason "stop" means the call succeeded.

Supported parameters

ParameterWhat it does
max_tokensUpper limit on the number of tokens the model generates.
temperatureSampling randomness: lower is more focused, higher is more varied.
toolsFunctions the model may call, described as JSON Schema.
response_formatForce JSON output, optionally matching a JSON Schema.
max_completion_tokensUpper limit on generated tokens, reasoning tokens included.

Full API reference

Use cases and examples

  • Long context — 128K-token context window: whole codebases, long reports or chat histories in one request.
  • Multimodal input — Takes text + image + file in one request.
  • Agents and tool use — Calls the functions you define, for agents and tool workflows.
  • Structured extraction — Returns JSON that follows your schema, for pulling fields out of text.
  • Solving complex math problems and step-by-step reasoning tasks
  • Analyzing images, charts, and diagrams for data extraction or explanation
  • Processing long documents (e.g., research papers, legal contracts) with file uploads
  • Building conversational agents that reference visual or document content
  • Code generation and debugging with context from multiple files or screenshots

Performance

p50 TTFTTime to first token for a typical request: half of requests got their first token faster than this.
Collecting…
Output speedHow many tokens per second the model streams once it starts answering.
Collecting…
p95 TTFTTime to first token for a slow request: 95% of requests got their first token faster than this.
Collecting…
Error rateShare of requests to this model on OrcaRouter that ended in an error over the window.
100.0%

Benchmarks

16.6
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 11% of models compared
#123 of 138
7.7
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 9% of models compared
#139 of 153
AIMEAIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
11.7#23 of 26
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
52.1#123 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
2.3#140 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
36.0#94 of 104
LiveCodeBenchLiveCodeBench: recent competitive-programming problems, published after most models were trained.
31.7#50 of 56
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
41.0#127 of 136
MATH-500MATH-500: 500 competition math problems from the MATH dataset.
79.5#19 of 32
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
33.1#127 of 141
TerminalBench HardTerminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
8.3#90 of 99
τ²-Benchτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
28.9#98 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

1,283
LMArena TextLMArena Text: an Elo rating from blind votes by people comparing two models' answers side by side.
#278 on LMArena
1,065
LMArena VisionLMArena Vision: an Elo rating from blind human votes on answers to prompts that include images.
#141 on LMArena
Source: lmarena.ai

Compare models

GPT-4o (2024-08-06)GPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$2.50$21.00$60.00$5.00
Output $/M$10.00$168.00$270.00$30.00
Context128K400K1.1M—
Quality3/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

What is the cost per token for GPT-4o (2024-08-06) on OrcaRouter?
Pricing is $2.50 per 1 million input tokens and $10.00 per 1 million output tokens, billed at OpenAI's provider rate with zero markup from OrcaRouter. Image and file inputs incur additional token costs per OpenAI's policy.
What is the context window and max output tokens?
The context window is 128,000 tokens. The maximum output is 16,384 tokens. This allows processing of long documents or conversations and generating substantial responses.
What are the main strengths of this model?
It offers strong mathematical reasoning (79.5 on MATH-500), multimodal input (text, images, files), a large context window, and OpenAI's high-quality generation. It is well-suited for complex reasoning and vision tasks.
How does this model compare to a cheaper model like GPT-4o mini?
GPT-4o (2024-08-06) is more expensive but generally more capable in reasoning and multimodal tasks. GPT-4o mini is cheaper ($0.15/$0.60 per 1M tokens) and sufficient for simple tasks. Choose based on task complexity and budget.
What data handling policies apply?
Your data is sent to OpenAI for processing. OrcaRouter does not store prompts. OpenAI's data usage policies apply. Use OrcaRouter's multi-provider routing to direct requests to providers that meet your compliance requirements.
Can I use this model with the OpenAI Python client?
Yes, by setting the base URL to https://api.orcarouter.ai/v1 and using model ID "openai/gpt-4o-2024-08-06". Your existing code for ChatCompletion, streaming, and function calling works without changes.
How do I send image inputs via the API?
Include the image as a base64-encoded string or URL in the content array of a message, using the format "image_url" with detail parameter. The model interprets images for analysis. This follows OpenAI's multimodal API format.
What is the maximum output that can be generated per request?
The maximum output is 16,384 tokens. Use the max_tokens parameter to control the response length. Be aware that longer outputs increase cost and latency.
Is this model available for streaming?
Yes, when using the OpenAI-compatible API, you can set stream=True to receive responses incrementally. This works with OrcaRouter's endpoint.
Can I use this model for free or with a trial?
The model is billed at provider rates. OrcaRouter may offer a free tier or trial credits—check their website for current offers. Usage beyond any free credits incurs the standard per-token costs.

Embed this badge

OpenAI: GPT-4o (2024-08-06)•$2.50/M in•—•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4o-2024-08-06" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4o-2024-08-06.svg" alt="OpenAI: GPT-4o (2024-08-06) on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-4o (2024-08-06)](https://www.orcarouter.ai/embed/openai/gpt-4o-2024-08-06.svg)](https://www.orcarouter.ai/models/openai/gpt-4o-2024-08-06)

Model card as data

GET /api/public/models/openai/gpt-4o-2024-08-06Open
Machine-readable:/llms.txt/llms-full.txt