Skip to content
OpenAI · GPT-5

gpt-5-mini-2025-08-07 API

Run text conversations with a pinned GPT-5 mini snapshot through Openrouter API's OpenAI-compatible API.

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

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

gpt-5-mini-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$0.22$0.25−12%
Cached input per 1M tokens$0.022$0.025−12%
Output per 1M tokens$1.76$2.00−12%

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

OpenAI's gpt-5-mini-2025-08-07 is a GPT-5 family chat model positioned as a lighter, cost-conscious tier. Its date suffix identifies a pinned snapshot, suited to teams that want to keep model selection consistent across deployments and evaluations. Use it for text conversations, drafting, and summarization workflows. Requests contain messages with role and content fields, including system instructions and prior assistant replies for multi-turn conversations.

Openrouter API exposes the model through an OpenAI-compatible Chat Completions interface using one API key and the base URL https://openrouterapi.ru/v1. Choose streaming or a complete response, and set an output budget with max_tokens. The model allows up to 272,000 input tokens and 128,000 output tokens, with prompt-cache reads supported. Pay-as-you-go pricing is $0.22 per 1M tokens for input, $0.022 per 1M tokens for cached input, and $1.76 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-mini-2025-08-07 highlights

Large Input Budget

Supply up to 272,000 input tokens for text-based chat requests. Include instructions and conversation history in the messages array.

Output Budget Control

The maximum output is 128,000 tokens. Use max_tokens to set the generation budget for each request.

Prompt Cache Reads

Prompt-cache reads are supported, with cached input priced at $0.022 per 1M tokens on Openrouter API.

Flexible Response Delivery

The Chat Completions interface supports streaming responses in SSE format or complete responses. Set stream explicitly to choose the behavior.

How to call the gpt-5-mini-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-mini-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-mini-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-mini-2025-08-07

Customer Support Drafts

Build an assistant that drafts replies from supplied customer messages and support context. Use system instructions to define tone and have your team review responses.

Document Summaries

Submit document text and ask for summaries tailored to a specific audience. Keep the combined instructions and source text within the input limit.

Internal Chat Assistants

Create a multi-turn text assistant by sending user messages alongside prior assistant replies. The pinned snapshot is suited to consistent model selection across deployments.

Content Drafting Workflows

Generate first drafts, rewrites, or concise descriptions from a written brief. Set an output budget appropriate to each task and review the resulting text.

Tips for better results

  • 01

    Select the Exact Snapshot

    Set the model field to gpt-5-mini-2025-08-07 rather than relying on the endpoint's default model. The date suffix positions this ID as a pinned snapshot for reproducibility.

  • 02

    Bound Generated Output

    Use max_tokens to limit generated tokens for each task. A short-answer workflow usually needs a smaller budget than a long-form drafting request.

  • 03

    Plan for Cache Reads

    For workflows with repeated prompt material, account for the supported prompt-cache read rate. Cached input costs $0.022 per 1M tokens; check caching documentation before assuming a request qualifies.

  • 04

    Choose Streaming Explicitly

    Set stream to true for SSE delivery or false for a complete response. Explicit configuration avoids depending on different endpoint defaults.

Limits and things to know

  • Maximum input is 272,000 tokens per request.

  • Maximum output is 128,000 tokens; max_tokens can impose a lower budget.

  • The published documentation does not establish Responses API, image-input, or tool support for this model.

gpt-5-mini-2025-08-07 API FAQ

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

Input costs $0.22 per 1M tokens, cached input costs $0.022 per 1M tokens, and output costs $1.76 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-mini-2025-08-07?

Send a POST request to https://openrouterapi.ru/v1/chat/completions with Bearer Token authentication using your Openrouter API key. Set model to gpt-5-mini-2025-08-07 and provide a messages array containing role and content fields.

Which request controls are documented?

The general Chat Completions interface documents max_tokens, stream, temperature, top_p, frequency_penalty, presence_penalty, stop, and n. These are interface-level controls; check the model documentation for any model-specific restrictions.

What are the input and output limits?

The model supports a maximum input of 272,000 tokens and a maximum output of 128,000 tokens. It also supports prompt-cache reads.

Can I use this model commercially?

Commercial use is subject to the model developer's terms. Review OpenAI's applicable terms and Openrouter API's service terms before deploying your application.

How does this model differ from other GPT-5 models?

The mini name positions it as a lighter, cost-conscious tier within GPT-5, while the date suffix indicates a pinned snapshot suited to reproducible model selection. Published information does not establish benchmark or latency comparisons with sibling models.

Related models

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

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

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