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 Mini
openai/gpt-5-miniTry OpenAI: GPT-5 Mini 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 Mini at a glance
- Input price is 44% lower 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.00438.
About OpenAI: GPT-5 Mini
GPT-5 Mini is a text model from OpenAI, released on 7 August 2025. It is a compact version of GPT-5, built to handle lighter-weight reasoning tasks. According to OpenAI, it keeps the same instruction-following and safety-tuning benefits as the full GPT-5 model, but with reduced latency and cost. It sits in the text category and is aimed at developers who want GPT-5 style behaviour without the weight of the larger model.
The model accepts text, images and files as input, and returns text only. It has a context window of 400,000 tokens and can produce up to 128,000 output tokens, which is a large budget for long generations such as multi-page drafts or extended structured output. Its knowledge cutoff is 31 May 2024, so anything after that date has to come from the prompt, from tools, or from retrieved context rather than from the model's own training. Reasoning is a first-class part of the interface: the supported parameters include reasoning, reasoning_effort, include_reasoning and verbosity, so you can tune how much internal reasoning the model performs and how much of it is surfaced.
Those capabilities point to a fairly wide set of practical uses. Because it handles images and files alongside text, it fits document question answering, extraction from PDFs or screenshots, and summarisation of mixed content. The large context window suits long conversations, codebase review, and analysis of lengthy reports where you want the whole document in one request. Tool calling and structured outputs make it a reasonable choice for agents, function-calling workflows, and pipelines that need JSON or schema-conformant responses. The reasoning controls let you dial effort up for harder problems and down for simple classification or routing, which is useful when you want predictable behaviour across a mixed workload.
You call it through api14's OpenAI-compatible API using the model id "openai/gpt-5-mini". The supported request parameters 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 set a token cap, request a specific response format or schema, control tool use, fix a seed for reproducibility, and adjust reasoning effort and verbosity in the same request. Since the surface is OpenAI-compatible, existing OpenAI SDK clients and code generally work with only the base URL and model id changed.
One thing to keep in mind is the knowledge cutoff of 31 May 2024, so tasks that depend on recent events need retrieval or tools rather than the model's memory. It is also described as a compact model for lighter-weight reasoning, so if your workload is dominated by the heaviest reasoning problems, a larger model in the same family may be the better fit. For everything else, the combination of a 400,000 token context window, image and file input, tool calling and structured outputs covers a lot of ground.
How to call the OpenAI: GPT-5 Mini 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-mini".
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-mini",
"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
- text, image, file
- Output
- text
- Knowledge cutoff
- 2024-05-31
Requests on api14 · last 7 days
OpenAI: GPT-5 Mini: frequently asked questions
- How much does the OpenAI: GPT-5 Mini API cost?
- OpenAI: GPT-5 Mini costs Input $0.88 / 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 Mini?
- OpenAI: GPT-5 Mini 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 Mini do?
- OpenAI: GPT-5 Mini accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call OpenAI: GPT-5 Mini from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-5-mini". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-5 Mini?
- Comparable Text models at a similar price: Google: Gemini 3.8 Flash (batch), Google: Gemini 3.7 Flash (batch), Google: Gemini 3.6 Flash (batch). Each runs through the same API key, so switching is one string.
OpenAI: GPT-5 Mini community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-5 Mini.