GPT-4 Turbo

openai/gpt-4-turbo
ZDR
VisionToolsJSON
by OpenAI · 2024-04-09

GPT-4 Turbo is a large language model from OpenAI that processes text and image inputs and represents an incremental improvement over previous GPT-4 versions. It offers a 128,000-token context window for both input and reasoning, with a maximum output of 4,096 tokens. The model is accessible through OrcaRouter's OpenAI-compatible API at base_url https://api.orcarouter.ai/v1 using the model identifier "openai/gpt-4-turbo". This means existing OpenAI SDK integrations can be redirected to OrcaRouter with minimal code changes. The model is priced at $10.00 per 1 million input tokens and $30.00 per 1 million output tokens, billed at the provider rate with zero markup from OrcaRouter. It achieved a score of 73.7 on the MATH-500 benchmark, which measures mathematical reasoning ability. GPT-4 Turbo is suited for complex reasoning, code generation, document analysis, and tasks that require understanding large amounts of context. Because it supports vision, it can also interpret images, diagrams, and screen captures when supplied as part of the input.

Max output4K
Inputtext + image
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$10.00/ 1M tokens
OUTPUT$30.00/ 1M tokens
p50 TTFTCollecting…
p95 TTFTCollecting…

Pricing

Pricing
Input / 1M tokens$10.00
Output / 1M tokens$30.00
CurrencyUSD

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $28.00

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

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.011$11.00
Summarize a long doc30K / 1K$0.330$330
Code review8K / 2K$0.140$140

Token & cost estimator

Input tokens: 20Cost per request: $0.0152

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-4-turbo",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Example response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1763280000,
  "model": "openai/gpt-4-turbo",
  "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.
top_pNucleus sampling: only consider tokens within this cumulative probability.

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 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 reasoning and proof generation — evidenced by a 73.7 score on MATH-500.
  • Interpreting and describing images, diagrams, and charts through vision input.
  • Analyzing very long documents (e.g., entire books, legal contracts) using the 128K context window.
  • Generating, debugging, and explaining code across multiple files or entire codebases.
  • Following multi-step instructions in a single conversation without losing track of early directives.

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

21.5
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 19% of models compared
#111 of 138
7.0
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 7% of models compared
#142 of 153
AIMEAIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
15.0#19 of 26
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
3.1#135 of 141
LiveCodeBenchLiveCodeBench: recent competitive-programming problems, published after most models were trained.
29.1#53 of 56
MATH-500MATH-500: 500 competition math problems from the MATH dataset.
73.7#25 of 32
MMLU-ProMMLU-Pro: hard ten-option multiple-choice questions across 14 academic subjects.
69.4#62 of 91
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
31.9#130 of 141
Source: artificialanalysis.ai

Community buzz

What developers are saying this week

Hacker News1 mentions · 7dup 1 vs the previous week

Compare models

GPT-4 TurboGPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$10.00$21.00$60.00$5.00
Output $/M$30.00$168.00$270.00$30.00
Context128K400K1.1M—
Quality2/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

What is the cost of GPT-4 Turbo through OrcaRouter?
The cost is $10.00 per 1 million input tokens and $30.00 per 1 million output tokens. OrcaRouter adds zero markup, so you pay the same as the provider rate.
How large is the context window for GPT-4 Turbo?
GPT-4 Turbo has a context window of 128,000 tokens, which can hold roughly 300 pages of text. The maximum output is limited to 4,096 tokens.
What are the main strengths of GPT-4 Turbo?
Its main strengths include mathematical reasoning (73.7 on MATH-500), handling very long contexts, generating and debugging code, and interpreting images through vision input.
How does GPT-4 Turbo compare to the original GPT-4?
GPT-4 Turbo offers a larger context window (128K vs up to 32K), lower pricing ($10/$30 vs $30/$60 per 1M tokens), and improved efficiency. Performance on benchmarks like MATH-500 is higher.
Does OrcaRouter cache responses or offer discounts?
No, OrcaRouter does not offer caching, discounts, or volume pricing for GPT-4 Turbo. Each request is billed at the per-token rate with zero markup.
How do I call GPT-4 Turbo via the API on OrcaRouter?
Set the base URL to https://api.orcarouter.ai/v1, use model name "openai/gpt-4-turbo", and include your OrcaRouter API key. The API is fully compatible with OpenAI's chat completions format.
Can I use image inputs with GPT-4 Turbo through OrcaRouter?
Yes, GPT-4 Turbo supports image inputs. You can provide images as URLs or base64-encoded data in the content array. The image token cost is added to the input token count.
What is the maximum output length for GPT-4 Turbo?
The maximum output length is 4,096 tokens. You can set max_tokens to any value up to that limit. Longer output requires multiple calls or chaining.
Is GPT-4 Turbo available for streaming?
Yes, you can enable streaming by setting the stream parameter to true. The API will return tokens incrementally, compatible with OpenAI's streaming format.

Embed this badge

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

Model card as data

GET /api/public/models/openai/gpt-4-turboOpen
Machine-readable:/llms.txt/llms-full.txt