GPT-4.1

OpenAIopenai/gpt-4.1
Modality

Chat

Family

GPT

Context window

1.05M tokens

Max output

33K tokens

Served On

OpenAI API

GPT-4.1 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 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

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
# 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
claude --model openai/gpt-4.1

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.

LLM Arena category ratings
Overall#182

1383Elo

Coding#193

1391Elo

Math#201

1370Elo

Creative Writing#159

1364Elo

Hard Prompts#183

1384Elo

Instruction Following#181

1367Elo

Multi-Turn#164

1398Elo

Longer Query#179

1385Elo

Non-English#181

1370Elo

Vision#89

1210Elo

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?

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

How much does GPT-4.1 cost?

GPT-4.1 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?

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

Does GPT-4.1 support tool calling and structured outputs?

No. GPT-4.1 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 support?

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

How do I use GPT-4.1 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". The quick-start panel above has a copy-paste curl command for this model.

Where is the GPT-4.1 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).