GPT-4o (2024-11-20)

openai/gpt-4o-2024-11-20
ZDR
VisionToolsJSON
by OpenAI · 2024-11-20

OpenAI's GPT-4o (2024-11-20) is a multimodal model supporting text, image, and file inputs. It features a context window of 128,000 tokens and a maximum output of 16,384 tokens. The model is priced at $2.50 per 1 million input tokens and $10.00 per 1 million output tokens, billed at OpenAI’s provider rate with zero markup when accessed through OrcaRouter. This version achieves a score of 75.9 on the MATH-500 benchmark, indicating strong mathematical reasoning capabilities. On OrcaRouter, GPT-4o is available via the OpenAI-compatible API at the base URL https://api.orcarouter.ai/v1 using the model ID "openai/gpt-4o-2024-11-20". It is suitable for a wide range of tasks including complex reasoning, content generation, multimodal analysis, and code development. The combination of a large context window, high output limit, and competitive pricing makes it a versatile choice for production applications that require deep understanding and generation across multiple modalities.

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-11-20",
    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-11-20",
  "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.
  • Complex mathematical and logical reasoning (e.g., solving competition-level math problems)
  • Multimodal understanding combining text, images, and files (e.g., document analysis, image captioning)
  • Long-form content generation requiring extended context (e.g., report writing, code generation)
  • Multi-step task automation with structured outputs (e.g., data extraction, summarization)
  • High-throughput applications where cost per token is a priority over absolute latency

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.7
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 12% of models compared
#121 of 138
8.4
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 11% of models compared
#135 of 153
6.0
AA MathArtificial Analysis Math Index: one 0–100 score that combines its competition-math evaluations.
Better than 0% of models compared
#81 of 82
AIMEAIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
15.0#19 of 26
AIME 2025AIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
6.0#51 of 52
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
54.3#120 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
2.4#138 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
34.3#95 of 104
LiveCodeBenchLiveCodeBench: recent competitive-programming problems, published after most models were trained.
30.9#51 of 56
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
49.3#117 of 136
MATH-500MATH-500: 500 competition math problems from the MATH dataset.
75.9#23 of 32
MMLU-ProMMLU-Pro: hard ten-option multiple-choice questions across 14 academic subjects.
74.8#47 of 91
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
33.3#125 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.
25.1#99 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

21.6%
SWE-bench VerifiedSWE-bench Verified: the share of real GitHub issues, checked by human annotators, that the model resolves.
#29 of 29
Source: swebench.com

Compare models

GPT-4o (2024-11-20)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 of using GPT-4o on OrcaRouter?
GPT-4o is priced at $2.50 per 1 million input tokens and $10.00 per 1 million output tokens. OrcaRouter adds zero markup, so you pay the exact provider rate.
What is the context window size for GPT-4o?
The context window is 128,000 tokens, shared between input and output.
What are the main strengths of GPT-4o (2024-11-20)?
Strengths include strong mathematical reasoning (MATH-500 score 75.9), multimodal input (text, image, file), large context, high output limit (16,384 tokens), and competitive pricing.
How does GPT-4o compare to GPT-4o mini?
GPT-4o is more capable and expensive. GPT-4o mini is cheaper and faster, suited for simpler tasks. GPT-4o is better for complex reasoning and multimodal work.
Does OrcaRouter handle my data securely when using GPT-4o?
Data handling policies depend on OrcaRouter and OpenAI. Users should review OrcaRouter's privacy policy and OpenAI's data usage terms. OrcaRouter acts as a gateway; data passes through to OpenAI unless caching or storage is involved.
How do I call GPT-4o via OrcaRouter's API?
Use the base URL https://api.orcarouter.ai/v1 with model ID "openai/gpt-4o-2024-11-20". The API is fully OpenAI-compatible.
Can GPT-4o process images and files?
Yes, it accepts text, images, and file inputs. Output is text-only.
What is the maximum output length?
Maximum output is 16,384 tokens.

Embed this badge

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

Model card as data

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