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

openai/gpt-4.1-nano:batch
TextInput: image · text · fileTools1MAdded Apr 14, 2025

Try OpenAI: GPT-4.1 Nano (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-4.1 Nano (batch) at a glance

  • Input price is 89% lower than the median of 434 Text models.
  • Context window of 1,047,576 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.000525.

About OpenAI: GPT-4.1 Nano (batch)

GPT-4.1 Nano (batch) is a text model from OpenAI, part of the GPT-4.1 family. It is the smallest model in that series, positioned by OpenAI for tasks that demand low latency. On api14 it is exposed under the model id openai/gpt-4.1-nano:batch, and the batch designation indicates the batch variant of the model rather than the standard synchronous endpoint.

The model accepts image, text and file inputs and returns text only. Its context window is 1,047,576 tokens, which is large enough to hold very long documents, multiple files or extended conversation histories in a single request. The maximum output is 32,768 tokens, so responses can be substantial even though the model itself is small. Its knowledge cutoff is 30 June 2024, meaning it has no built-in awareness of events after that date.

Because it handles text, images and files together over a very long context, the model suits work such as summarising or extracting structured data from long reports and contracts, answering questions over a mixed set of documents and screenshots, classifying or tagging large volumes of text, and powering chat or agent workflows where response speed matters more than deep reasoning. The combination of file and image input with a million-token window makes it practical for pipelines that would otherwise need chunking and retrieval layers.

You call it through api14's OpenAI-compatible API using the model id openai/gpt-4.1-nano:batch. The supported request parameters are max_tokens, response_format, seed, structured_outputs, temperature, tool_choice, tools and top_p. That set covers output length control, deterministic sampling via seed, JSON and structured output modes, sampling controls, and function or tool calling, so the model can be wired into existing OpenAI SDK code with little change beyond the model id.

The main things to weigh are the knowledge cutoff and the model's small size. If your task depends on information after 30 June 2024, or needs the strongest reasoning OpenAI offers, a larger model in the GPT-4.1 series may fit better. For high-volume, latency-sensitive work over long inputs, this model is the appropriate choice.

How to call the OpenAI: GPT-4.1 Nano (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-4.1-nano: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-4.1-nano:batch",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

max_tokensresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_p

Specifications

Context length
1,047,576
Max output
32,768
Input
image, text, file
Output
text
Knowledge cutoff
2024-06-30

Requests on api14 · last 7 days

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

OpenAI: GPT-4.1 Nano (batch): frequently asked questions

How much does the OpenAI: GPT-4.1 Nano (batch) API cost?
OpenAI: GPT-4.1 Nano (batch) costs Input $0.18 / 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-4.1 Nano (batch)?
OpenAI: GPT-4.1 Nano (batch) reads up to 1,047,576 tokens per request: prompt, history and documents together. It writes up to 32,768 output tokens per response.
What can OpenAI: GPT-4.1 Nano (batch) do?
OpenAI: GPT-4.1 Nano (batch) accepts image, text, file and returns text. It supports tool calling, structured JSON output.
How do I call OpenAI: GPT-4.1 Nano (batch) from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4.1-nano:batch". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-4.1 Nano (batch)?
Comparable Text models at a similar price: Upstage: Solar Mini 4, inclusionAI: Ling 3.0 Flash VL, NVIDIA: Nemotron 3.5 Lightning. Each runs through the same API key, so switching is one string.

OpenAI: GPT-4.1 Nano (batch) community

New topic

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