Skip to content
OpenAI · GPT-5

gpt-5-2025-08-07 API

Use OpenAI’s GPT-5 dated chat model on Openrouter API for text generation and multi-turn conversations.

ChatChat & TextSynchronousPrompt caching
Model id
gpt-5-2025-08-07

This is a dated snapshot of gpt-5-2025-08-07. Most users should use the main model page. gpt-5

gpt-5-2025-08-07 API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

Token typeOpenrouter APIOfficialSave
Input per 1M tokens$1.10$1.25−12%
Cached input per 1M tokens$0.11$0.125−12%
Output per 1M tokens$8.80$10.00−12%

What is gpt-5-2025-08-07?

OpenAI’s gpt-5-2025-08-07 is a GPT-5 family chat model for text generation and multi-turn conversations on Openrouter API. Its date-suffixed name positions it as a pinned snapshot, suited to teams that want a specific model version for reproducible testing. Send messages with user, assistant, and system roles through the OpenAI-compatible Chat Completions interface. The model accepts up to 272,000 input tokens and produces up to 128,000 output tokens, with support for prompt-cache reads.

Connect using one Openrouter API key and the base URL https://openrouterapi.ru/v1. The chat interface offers streaming or complete responses and an output-length control through max_tokens. Pay-as-you-go rates are $1.10 per 1M tokens for input, $0.11 per 1M tokens for cached input, and $8.80 per 1M tokens for output. The default configuration is about 12% below the developer's list price, and Openrouter API bills only successful requests.

gpt-5-2025-08-07 highlights

Large Input Allowance

Supply up to 272,000 input tokens for conversations or text-heavy requests.

Extended Output Allowance

Generate up to 128,000 output tokens. Use max_tokens to set a smaller response budget for individual requests.

Prompt-Cache Reads

The model supports prompt-cache reads at $0.11 per 1M tokens for cached input.

Compatible Chat Interface

Call the model through the OpenAI-compatible Chat Completions API. Choose streaming responses or receive the complete response at once.

How to call the gpt-5-2025-08-07 API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/chat/completions with "model": "gpt-5-2025-08-07" and the parameters below.

  4. 04

    Handle the response

    Read the response (or stream tokens with stream: true). Usage and cost appear in your console.

curl https://openrouterapi.ru/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTERAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-2025-08-07",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredgpt-5Model name
messagesarrayRequired—List of conversation messages
rolestringRequireduserRole type
contentstringRequired—Message content
temperaturenumberOptional—Controls output randomness, range 0-2
max_tokensintegerOptional—Maximum number of tokens to generate
streambooleanOptional—Whether to use streaming output
top_pnumberOptional—Nucleus sampling parameter, range 0-1
frequency_penaltynumberOptional—Frequency penalty, range -2.0 to 2.0
presence_penaltynumberOptional—Presence penalty, range -2.0 to 2.0
stopstring or arrayOptional—Stop sequences
nintegerOptional—Number of completions to generate

What you can build with gpt-5-2025-08-07

Document-Based Summaries

Provide source text in messages and ask for summaries, key points, or comparisons, keeping requests within the input limit.

Multi-Turn Assistants

Build text-based assistants by passing prior user and assistant messages alongside a system prompt that defines the assistant’s role.

Long-Form Drafting

Generate reports, guides, or other extended drafts from supplied instructions and reference text. Set an output budget appropriate to each task.

Version-Specific Evaluation

Use the date-suffixed model ID for test suites that need a specific model selection rather than a moving latest-model name.

Tips for better results

  • 01

    Select the Exact ID

    Set the model field to gpt-5-2025-08-07; do not rely on the general chat endpoint’s default model.

  • 02

    Budget Output Tokens

    Set max_tokens to match the requested answer length. Output costs $8.80 per 1M tokens, so avoid allocating lengthy responses when a short answer is sufficient.

  • 03

    Plan for Cache Reads

    For workflows with repeated prompt material, account for supported prompt-cache reads. Eligible cached input is billed at $0.11 per 1M tokens; check the documentation for cache behavior.

  • 04

    Choose Response Delivery

    Set stream to true for SSE output or false for a complete response. Choose explicitly rather than relying on endpoint defaults.

Limits and things to know

  • Input is limited to 272,000 tokens per request.

  • Output is limited to 128,000 tokens, and a lower max_tokens setting can cap it further.

  • The supplied model facts do not establish image input, tool support, or Responses API compatibility for this model.

gpt-5-2025-08-07 API FAQ

How much does gpt-5-2025-08-07 cost on Openrouter API?

Input costs $1.10 per 1M tokens, cached input costs $0.11 per 1M tokens, and output costs $8.80 per 1M tokens. The default configuration is about 12% below the developer's list price, with pay-as-you-go billing only for successful requests.

How do I call gpt-5-2025-08-07?

Use the base URL https://openrouterapi.ru/v1 and send a POST request to /chat/completions with Bearer Token authentication. Set model to gpt-5-2025-08-07 and include a messages array containing role and content fields.

What parameters does the chat API document?

The general chat interface documents max_tokens, stream, temperature, top_p, frequency_penalty, presence_penalty, stop, and n. Check model-specific documentation before relying on every general-interface control for this model.

What are the input and output token limits?

The maximum input is 272,000 tokens, and the maximum output is 128,000 tokens. The model also supports prompt-cache reads.

Can I use this model commercially?

Commercial use is subject to the model developer’s terms and applicable Openrouter API terms. Review those terms for your intended application before deployment.

How does this model differ from gpt-5 or gpt-5-mini?

The date suffix positions gpt-5-2025-08-07 as a pinned snapshot for reproducibility. The documentation describes gpt-5 as the base model and gpt-5-mini as a lightweight, cost-effective version; published information does not establish comparative performance.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with gpt-5-2025-08-07

One key, pay as you go from $50, billed only for successful requests.