Skip to content
OpenAI · GPT-5

gpt-5.1-2025-11-13 API

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

ChatChat & TextSynchronousPrompt caching
Model id
gpt-5.1-2025-11-13

This is a dated snapshot of gpt-5.1-2025-11-13. Most users should use the main model page. gpt-5.1

gpt-5.1-2025-11-13 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.1-2025-11-13?

OpenAI’s gpt-5.1-2025-11-13 is a GPT-5 family chat model available through Openrouter API. Its date-suffixed name positions it as a pinned snapshot for teams that want a consistent model selection across application deployments and evaluations. Use it for text generation and multi-turn conversations, sending messages with user, assistant, and system roles. The documented Chat Completions interface offers streaming or complete responses, along with controls such as temperature, top_p, stop sequences, and max_tokens. The model supports up to 272,000 input tokens and 128,000 output tokens, plus prompt-cache reads.

Connect through Openrouter API’s OpenAI-compatible base URL, https://openrouterapi.ru/v1, using one API key. Pricing is pay-as-you-go: $1.10 per 1M tokens for input, $0.11 per 1M tokens for cached input reads, 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 for successful requests.

gpt-5.1-2025-11-13 highlights

Dated Model Snapshot

The date suffix positions gpt-5.1-2025-11-13 as a pinned snapshot for reproducible model selection.

Large Token Limits

Supports a maximum input of 272,000 tokens and a maximum output of 128,000 tokens.

Flexible Chat Responses

Use the OpenAI-compatible Chat Completions format with role-based messages. Choose SSE streaming or a complete response with the stream parameter.

Prompt Cache Reads

Supports prompt-cache reads at $0.11 per 1M tokens. Standard input costs $1.10 per 1M tokens.

How to call the gpt-5.1-2025-11-13 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.1-2025-11-13" 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.1-2025-11-13",
    "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.1-2025-11-13

Conversational Applications

Build text-based assistants that receive user messages and previous assistant responses as conversation context. Use a system message to define the assistant’s behavior.

Document Summarization

Submit document text with instructions to produce a summary. Budget the source material and instructions within the 272,000-token input limit.

Content Drafting Workflows

Generate drafts and revisions from text briefs. Use output limits and stop sequences to keep responses aligned with your application’s format.

Snapshot-Based Evaluations

Use the dated model ID across test runs to keep model selection fixed while comparing prompts or application changes.

Tips for better results

  • 01

    Select the Exact Model

    Set the model parameter to gpt-5.1-2025-11-13 rather than relying on the endpoint’s default. Include messages with role and content fields.

  • 02

    Budget Generated Tokens

    Set max_tokens to the output budget your task needs, within the 128,000-token maximum. Output is priced at $8.80 per 1M tokens.

  • 03

    Tune One Sampling Control

    The chat documentation recommends using either temperature or top_p. Lower temperature values make output more deterministic, but do not guarantee identical responses.

  • 04

    Track Cached Input Costs

    Account for supported prompt-cache reads separately from standard input when estimating costs. Check current documentation for cache behavior rather than assuming every repeated prompt qualifies.

Limits and things to know

  • Maximum input is 272,000 tokens; maximum output is 128,000 tokens.

  • The supplied model facts establish chat support, not image input or Responses API tool support.

  • Prompt-cache reads are supported, but model-specific cache setup and retention details are not provided.

gpt-5.1-2025-11-13 API FAQ

How much does gpt-5.1-2025-11-13 cost on Openrouter API?

Input costs $1.10 per 1M tokens, cached input reads cost $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.1-2025-11-13 through the API?

Use https://openrouterapi.ru/v1 as your OpenAI-compatible base URL and send a POST request to /v1/chat/completions with Bearer Token authentication. Set model to gpt-5.1-2025-11-13 and supply a messages array containing role and content fields.

Which generation parameters are documented?

The general Chat Completions interface documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Set stream to true for SSE responses or false for a complete response, and check current documentation for model-specific parameter restrictions.

What are the input and output token limits?

The maximum input is 272,000 tokens, and the maximum output is 128,000 tokens. Use max_tokens to set your requested generation budget within the output limit.

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 deploying.

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

The date suffix positions gpt-5.1-2025-11-13 as a pinned snapshot for reproducible model selection. The documentation describes gpt-5-mini as a lightweight, cost-effective version; no model-specific comparative benchmarks are provided here.

Related models

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

Start building with gpt-5.1-2025-11-13

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