We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
OpenAI: GPT-5.1
openai/gpt-5.1Try OpenAI: GPT-5.1 now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
OpenAI: GPT-5.1 at a glance
- Input price is 178% higher than the median of 434 Text models.
- Context window of 400,000 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Supports reasoning effort control.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.02.
About OpenAI: GPT-5.1
GPT-5.1 is a frontier-grade text model from OpenAI and the latest entry in the GPT-5 series. It was released by the provider on 13 November 2025. Compared with GPT-5, OpenAI describes it as offering stronger general-purpose reasoning, improved instruction adherence, and a more natural conversational style, built around adaptive reasoning. It sits in the text category and is aimed at general-purpose work rather than a narrow single task.
On the input side, the model accepts text, images, and files, so you can mix prose prompts with visual or document content in the same request. Output is text only. The context window is 400,000 tokens, which is large enough to hold long documents, extended conversation histories, or sizeable codebases in a single call. The maximum output is 128,000 tokens, so responses can be long when the task calls for it. Adaptive reasoning means the model adjusts how much internal reasoning it applies rather than using a fixed amount on every request.
Those capabilities point to a fairly wide set of uses. Long-context work such as summarising or querying large documents, contracts, or technical manuals fits the 400,000 token window. Because images and files are accepted as input, you can build workflows that reason over screenshots, scanned pages, diagrams, or attached data alongside a text prompt. Improved instruction adherence and a more natural conversational style suit chat assistants, drafting, editing, and multi-step agent-style tasks where the model has to follow a detailed brief consistently. The large output ceiling helps for generating long reports, structured documents, or extended code in one response.
You call the model through api14's OpenAI-compatible API using the model id "openai/gpt-5.1". Because the interface follows the OpenAI format, existing OpenAI SDKs and clients work with only a base URL and key change. The request parameters supported are include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, seed, structured_outputs, tool_choice, tools, and verbosity. In practice that means you can control reasoning depth with reasoning and reasoning_effort, cap output length with max_completion_tokens or max_tokens, request JSON-shaped replies with response_format or structured_outputs, and wire up function calling with tools and tool_choice. The seed parameter allows reproducible sampling where the backend supports it, and verbosity tunes how expansive the answers are.
One thing to weigh is that output is text only, so if you need generated images or audio you would look at a different model. The reasoning controls also add a layer of configuration that simpler models do not expose, which is useful when you want to trade latency against depth but is extra surface area to manage. For straightforward, high-volume text tasks where none of the long context, multimodal input, or reasoning controls matter, a smaller model may be a simpler fit.
How to call the OpenAI: GPT-5.1 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-5.1".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "openai/gpt-5.1",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbositySpecifications
- Context length
- 400,000
- Max output
- 128,000
- Input
- image, text, file
- Output
- text
Requests on api14 · last 7 days
OpenAI: GPT-5.1: frequently asked questions
- How much does the OpenAI: GPT-5.1 API cost?
- OpenAI: GPT-5.1 costs Input $4.38 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of OpenAI: GPT-5.1?
- OpenAI: GPT-5.1 reads up to 400,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
- What can OpenAI: GPT-5.1 do?
- OpenAI: GPT-5.1 accepts image, text, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call OpenAI: GPT-5.1 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-5.1". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-5.1?
- Comparable Text models at a similar price: OpenAI: GPT-5.1-Codex-Max, OpenAI: GPT-5.1-Codex, OpenAI: GPT-5. Each runs through the same API key, so switching is one string.
OpenAI: GPT-5.1 community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-5.1.