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 (batch)

openai/gpt-4o:batch
TextInput: text · image · fileTools128KAdded May 13, 2024

Try OpenAI: GPT-4o (batch) now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

OpenAI: GPT-4o (batch) at a glance

  • Input price is 178% higher 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.01.

About OpenAI: GPT-4o (batch)

OpenAI: GPT-4o (batch) is a text generation model from OpenAI, offered here under the model id openai/gpt-4o:batch. It belongs to the GPT-4o family, where the "o" stands for "omni", and OpenAI describes it as supporting both text and image inputs with text outputs. The batch variant is the same underlying model served through a batch workflow rather than an interactive one, which makes it a fit for work that does not need an immediate answer.

On capabilities, the model accepts text, images and files as input and returns text only. It has a context window of 128,000 tokens and can produce up to 16,384 tokens in a single response. Its knowledge cutoff is 31 October 2023, so anything after that date has to come from the prompt or from a tool rather than from the model's own training. The supported request parameters include temperature, top_p, max_tokens, stop, seed, frequency_penalty, presence_penalty, logit_bias, logprobs and top_logprobs, along with response_format, structured_outputs, tools, tool_choice, prediction and web_search_options.

Those capabilities point to a fairly wide set of practical uses. Because images and files can be passed in alongside text, the model suits document review, extraction from scanned or PDF material, and summarisation of long reports that would otherwise exceed a smaller context window. The 128,000 token window also makes it reasonable for analysing large codebases, long transcripts or multi-document sets in one request. Tool calling and structured outputs make it a candidate for pipelines where the model has to return machine-readable JSON or invoke external functions, and the batch route fits offline jobs such as bulk classification, content tagging or generating summaries across a large corpus.

Calling it through api14 works the same way as any other OpenAI-compatible endpoint. You send a request to the chat completions route with the model field set to openai/gpt-4o:batch, and you can pass any of the parameters listed above in the request body. Because the endpoint follows the OpenAI schema, existing OpenAI client libraries and SDKs generally work without modification, and switching between models is usually a matter of changing the model id.

One thing to keep in mind is the knowledge cutoff of 31 October 2023, which means questions about later events need grounding through the prompt or through web_search_options. Output is text only, so image generation is out of scope. If your workload needs a synchronous, low-latency response rather than batch processing, a non-batch GPT-4o variant would be the more natural choice.

How to call the OpenAI: GPT-4o (batch) API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-4o: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: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_options

Specifications

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

10-1710-1810-1910-2010-2110-2210-23

OpenAI: GPT-4o (batch): frequently asked questions

How much does the OpenAI: GPT-4o (batch) API cost?
OpenAI: GPT-4o (batch) 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-4o (batch)?
OpenAI: GPT-4o (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 (batch) do?
OpenAI: GPT-4o (batch) accepts text, image, file and returns text. It supports tool calling, structured JSON output.
How do I call OpenAI: GPT-4o (batch) from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4o:batch". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-4o (batch)?
Comparable Text models at a similar price: Google: Gemini 4 Argon (batch), OpenAI: GPT-6.1 Sol Pro (batch), OpenAI: GPT-6.1 Sol (batch). Each runs through the same API key, so switching is one string.

OpenAI: GPT-4o (batch) community

New topic

This community has no topics yet. Open the first one about OpenAI: GPT-4o (batch).