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: o4 Mini
openai/o4-miniTry OpenAI: o4 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: o4 Mini at a glance
- Input price is 144% higher than the median of 434 Text models.
- Context window of 200,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.01.
About OpenAI: o4 Mini
OpenAI o4 Mini is a compact reasoning model from OpenAI, part of the company's o-series. It was released by the provider on 16 April 2025, and its knowledge cutoff is 30 June 2024. The model sits in the text category and is positioned as a smaller sibling to OpenAI's larger reasoning models, aimed at fast and cost-efficient performance while keeping strong multimodal and agentic capabilities.
The model accepts text, images and files as input, and it returns text only. Its context window is 200,000 tokens, with a maximum output of 100,000 tokens. Because input can include images and files alongside text, you can send prompts that mix written instructions with visual or document content in a single request. The reasoning behaviour is exposed through the reasoning and include_reasoning parameters, so you can control whether reasoning output is included in the response.
Those capabilities point to a few practical patterns. Reasoning-heavy tasks such as multi-step analysis, planning and problem decomposition fit the model's design. Because it accepts images and files, it also suits workflows where a prompt needs to reference a screenshot, diagram or document rather than plain text alone. Tool use and structured outputs make it a reasonable choice for agent-style applications, for example pipelines that call functions, query external systems or need responses in a fixed schema. The large context window helps when a task depends on long inputs, such as extended documents or lengthy conversation histories.
You call the model through api14's OpenAI-compatible API using the model id "openai/o4-mini". The supported request parameters are include_reasoning, max_tokens, reasoning, response_format, seed, structured_outputs, tool_choice and tools. In practice this means you can cap output length with max_tokens, request deterministic sampling with seed, ask for structured or schema-constrained responses through response_format and structured_outputs, and define callable functions with tools and tool_choice. The reasoning and include_reasoning parameters let you manage how reasoning is handled in the response.
The main constraint to keep in mind is that output is text only, so tasks that require generated images, audio or other non-text output are outside what this model returns. It is also a compact model in the o-series, so if a task demands the strongest reasoning available, a larger model in the same family may be a better fit. For most everyday reasoning, multimodal input and tool-driven workloads, o4 Mini covers the ground with a 200,000 token context window and a 100,000 token output ceiling.
How to call the OpenAI: o4 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/o4-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/o4-mini",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_tokensreasoningresponse_formatseedstructured_outputstool_choicetoolsSpecifications
- Context length
- 200,000
- Max output
- 100,000
- Input
- image, text, file
- Output
- text
- Knowledge cutoff
- 2024-06-30
Requests on api14 · last 7 days
OpenAI: o4 Mini: frequently asked questions
- How much does the OpenAI: o4 Mini API cost?
- OpenAI: o4 Mini costs Input $3.85 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of OpenAI: o4 Mini?
- OpenAI: o4 Mini reads up to 200,000 tokens per request: prompt, history and documents together. It writes up to 100,000 output tokens per response.
- What can OpenAI: o4 Mini do?
- OpenAI: o4 Mini accepts image, text, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call OpenAI: o4 Mini from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/o4-mini". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: o4 Mini?
- Comparable Text models at a similar price: OpenAI: o4 Mini High, OpenAI: o3 Mini High, OpenAI: o3 Mini. Each runs through the same API key, so switching is one string.
OpenAI: o4 Mini community
New topicThis community has no topics yet. Open the first one about OpenAI: o4 Mini.