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 (batch)
openai/gpt-4o-mini:batchTry OpenAI: GPT-4o-mini (batch) 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 (batch) at a glance
- Input price is 83% 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.000788.
About OpenAI: GPT-4o-mini (batch)
GPT-4o-mini (batch) is a text generation model from OpenAI, offered here in its batch variant. It belongs to the GPT-4o family and is positioned as OpenAI's small model, sitting below the full GPT-4o. The provider released it on 18 July 2024, and its training knowledge runs up to 31 October 2023. If you have used other OpenAI models, the behaviour and interface will feel familiar.
The model accepts text, images and files as input, and it returns text only. Its context window is 128,000 tokens, which is enough to hold long documents, multi-turn conversations or a mix of prose and images in a single request. Output is capped at 16,384 tokens per response. Because image input is supported, you can send screenshots, diagrams or scanned pages alongside a text prompt and ask for a written answer. File input extends this to documents you want summarised, extracted from or questioned.
Those capabilities point to a fairly wide set of practical uses. Document question answering over long PDFs or reports, summarisation of meetings and threads, extraction of structured fields from unstructured text, classification and tagging, and drafting or rewriting content are all reasonable fits. Image input makes it usable for tasks like reading charts, transcribing visible text or describing what is in a screenshot. Tool calling and structured outputs mean it can sit inside an agent loop or feed a downstream system that expects a fixed schema, and the web search option lets a request pull in external context.
You call it through api14's OpenAI-compatible API using the model id "openai/gpt-4o-mini:batch". Because the surface is OpenAI-compatible, existing OpenAI SDKs and clients work with only a base URL and key change. The request parameters it supports are frequency_penalty, logit_bias, logprobs, max_tokens, prediction, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_logprobs, top_p and web_search_options. That covers sampling controls, deterministic runs via seed, constrained decoding through response_format and structured_outputs, and tool use through tools and tool_choice.
Two things are worth checking before you commit. The knowledge cutoff is 31 October 2023, so anything more recent has to come from your prompt or from web_search_options. Output is text only, so if you need generated images or audio, this model is not the one. And since this is the batch variant, confirm that its latency profile matches your application; if you need interactive response times, compare against the standard non-batch entry for the same model.
How to call the OpenAI: GPT-4o-mini (batch) 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:batch".
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:batch",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltylogit_biaslogprobsmax_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 (batch): frequently asked questions
- How much does the OpenAI: GPT-4o-mini (batch) API cost?
- OpenAI: GPT-4o-mini (batch) costs Input $0.26 / 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 (batch)?
- OpenAI: GPT-4o-mini (batch) 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 (batch) do?
- OpenAI: GPT-4o-mini (batch) accepts text, image, file and returns text. It supports tool calling, structured JSON output.
- How do I call OpenAI: GPT-4o-mini (batch) from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4o-mini:batch". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-4o-mini (batch)?
- Comparable Text models at a similar price: Mistral: Mistral Small 4 (batch), ByteDance Seed: Seed 1.6 Flash, OpenAI: gpt-oss-safeguard-20b. Each runs through the same API key, so switching is one string.
OpenAI: GPT-4o-mini (batch) community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-4o-mini (batch).