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-4o-mini
openai/gpt-4o-miniTry OpenAI: GPT-4o-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-4o-mini at a glance
- Input price is 67% lower than the median of 434 Text models.
- Context window of 128,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.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.00158.
About OpenAI: GPT-4o-mini
GPT-4o-mini is a text generation model from OpenAI, released on 18 July 2024. It sits in OpenAI's small model line, positioned as the successor to GPT-4o in that tier, and it is built for general purpose text work rather than a single narrow task. If you are choosing a default model for an application, this is the kind of model that is intended to handle a broad range of everyday requests.
The model accepts text, images and files as input, and it returns text only. Its context window is 128,000 tokens, and the maximum output is 16,384 tokens. The knowledge cutoff is 31 October 2023, so anything after that date is outside what the model learned during training. Because image and file inputs are supported alongside text, you can send mixed content in a single request and receive a text answer, which keeps the integration simple if your application already works with text prompts.
Those capabilities point to a few practical uses. Document and file analysis is a natural fit, since you can pass a file and ask for a summary, extraction or question answering over its contents. Image understanding covers tasks like describing a screenshot, reading a chart or pulling structured details out of a photo. General chat, drafting, classification, rewriting and code assistance all work with text alone. The large context window means long documents or multi turn conversations can be handled without splitting them into many small requests, and the 16,384 token output ceiling gives room for longer generated answers.
You call the model through api14's OpenAI-compatible API using the model id "openai/gpt-4o-mini". Because the interface follows the OpenAI format, existing OpenAI SDKs and clients work with only a base URL and key change. The model supports a wide set of request parameters: frequency_penalty, logit_bias, logprobs, max_completion_tokens, max_tokens, prediction, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_logprobs, top_p and web_search_options. Tool calling and structured outputs are available, so you can wire the model into function calling flows or force responses into a schema. The seed parameter helps with reproducibility, and web_search_options lets a request draw on search.
Two limits are worth noting before you commit. The knowledge cutoff of 31 October 2023 means the model has no built in awareness of later events, so time sensitive questions need retrieval or search rather than relying on the model alone. Output is text only, so if you need generated images or audio, this model is not the right choice. Within those bounds it is a reasonable default for text and image understanding workloads.
How to call the OpenAI: GPT-4o-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-4o-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-4o-mini",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_pweb_search_optionsSpecifications
- Context length
- 128,000
- Max output
- 16,384
- Input
- text, image, file
- Output
- text
- Knowledge cutoff
- 2023-10-31
Requests on api14 · last 7 days
OpenAI: GPT-4o-mini: frequently asked questions
- How much does the OpenAI: GPT-4o-mini API cost?
- OpenAI: GPT-4o-mini costs Input $0.52 / 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-4o-mini?
- OpenAI: GPT-4o-mini reads up to 128,000 tokens per request: prompt, history and documents together. It writes up to 16,384 output tokens per response.
- What can OpenAI: GPT-4o-mini do?
- OpenAI: GPT-4o-mini accepts text, image, file and returns text. It supports tool calling, structured JSON output.
- How do I call OpenAI: GPT-4o-mini from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4o-mini". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-4o-mini?
- Comparable Text models at a similar price: MiniMax: MiniMax M3.1 Flash, DeepSeek: DeepSeek V4.1 Flash 1017, LiquidAI: LFM2.5-24B-A2B. Each runs through the same API key, so switching is one string.
OpenAI: GPT-4o-mini community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-4o-mini.