GPT-4.1 mini

OpenAIopenai/gpt-4.1-mini
Modality

Chat

Family

GPT

Context window

1.05M tokens

Max output

33K tokens

Served On

OpenAI API

GPT-4.1 mini is a chat model made by OpenAI, served on nRouter. It has a 1M-token context window.

Model pricing

Exact provider list price · 0% platform fee · x-nr-request-cost header

Rates are read live

Pricing for openai/gpt-4.1-mini is fetched from the live catalogue on load, so it is never served from a cache that could outlive a repricing.

Start building with openai/gpt-4.1-mini

One API key, three steps. Choose your tool to begin.

  1. Set your API key

    export NROUTER_API_KEY="<YOUR_API_KEY>"
  2. Configure Claude Code

    Choose a tool, then copy its setup from the panel.

npm install -g @anthropic-ai/claude-code
Claude Code · openai/gpt-4.1-mini
# Point Claude Code to nRouter gateway
export ANTHROPIC_BASE_URL="https://api.nrouter.ai"
export ANTHROPIC_API_KEY="$NROUTER_API_KEY"

# Launch with openai/gpt-4.1-mini
claude --model openai/gpt-4.1-mini

Specifications & capabilities

VisionFunction callingStreamingJSON modeSystem prompt
Compare context window against peer models (1.0M)

Context window, ranked against other chat models

Proportional scale: 0 to 1.05M tokens. Not ranked, no published context window: alibaba/qwen-mt-flash, alibaba/qwen3.7-flash.

Benchmarks & performance rankings

Published LLM Arena category placements and Elo ratings for GPT-4.1 mini.

LLM Arena category ratings
Overall#221

1340Elo

Coding#218

1367Elo

Math#224

1343Elo

Creative Writing#228

1299Elo

Hard Prompts#221

1349Elo

Instruction Following#213

1333Elo

Multi-Turn#209

1354Elo

Longer Query#214

1344Elo

Non-English#225

1318Elo

Vision#104

1181Elo

Source: huggingface.co · CC-BY-4.0

Provider-Reported Capabilities

What the hosting provider reports for this model, shown as it was returned. nRouter adds nothing to this report and infers nothing that is missing from it.

Supports vision supports_vision
Supports JSON mode supports_json_mode
Supports responses supports_responses
Supports streaming supports_streaming
Supports function calling supports_function_calling

Availability

Collecting probe samples

Not enough health probe samples collected yet to publish an uptime or latency figure.

More from OpenAI

FAQs

What is GPT-4.1 mini?

GPT-4.1 mini is a chat model made by OpenAI, served on nRouter. It has a 1M-token context window.

How much does GPT-4.1 mini cost?

GPT-4.1 mini is billed at the provider's list price on nRouter with no per-token markup — tokens settle at the exact upstream rate. Input and output rates are read live, so see the pricing section above for the current figures.

What is the context length of GPT-4.1 mini?

GPT-4.1 mini supports a 1,047,576-token context window. It can generate up to 32,768 output tokens per request.

Does GPT-4.1 mini support tool calling and structured outputs?

No. GPT-4.1 mini does not support tool calling, so it cannot invoke external tools or functions. It does not support a structured JSON output mode.

What inputs and outputs does GPT-4.1 mini support?

GPT-4.1 mini takes text as input and returns text as output.

How do I use GPT-4.1 mini via nRouter?

Use any OpenAI-compatible client: point it at https://api.nrouter.ai/v1 with your nRouter API key and set the model to "openai/gpt-4.1-mini". The quick-start panel above has a copy-paste curl command for this model.

Where is the GPT-4.1 mini documentation?

Start at nrouter.ai/docs. The quick-start guide (nrouter.ai/docs/getting-started/quick-start) covers API keys and your first request, and the API reference (nrouter.ai/docs/api-reference) lists every parameter.

What other text models does OpenAI have?

Other OpenAI text models on nRouter include Text Embedding 3 Large (nrouter.ai/models/openai-text-embedding-3-large), GPT-6 Sol (nrouter.ai/models/openai-gpt-6-sol), GPT-6 Astra (nrouter.ai/models/openai-gpt-6-astra), GPT-5.6 Luna (nrouter.ai/models/openai-gpt-5.6-luna).