openai / text-generation API-only released 2025-04-14

GPT-4.1

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...

Input / 1M
$2.00
Output / 1M
$8.00
Context
1.0M
AA Intelligence
12.7
Closed weights — available only as a hosted API image + text + file → text Knowledge cutoff Jun 2024 View on OpenRouter ↗

Pricing

via OpenRouter · USD per 1M tokens · synced 2026-10-24
$2.00
input / 1M
$8.00
output / 1M
$0.50
cached input / 1M
$10.00
1M in + 1M out
:batch variant $1.00 in · $4.00 out
Context window
1,047,576 tokens
Max output
32,768 tokens
Providers
2
Cheapest provider
Azure · $2.00 / $8.00
Best throughput
—
AA Intelligence / Coding / Agentic
12.7 / — / —
✓ Tool calling ✗ Reasoning ✓ Structured outputs ✓ Image input ✓ File input ✗ Audio input ✓ Prompt caching

Price history

tracking started — chart appears after 7 days of snapshots (6 recorded)
Current: $2.00 input · $8.00 output per 1M tokens

Benchmarks

Third-party indices as published through OpenRouter — Artificial Analysis and Design Arena. Not measured by us.

AA Intelligence Index
12.7
AA Coding Index
—
AA Agentic Index
—
Design Arena
CategoryEloWin %Rank
3d 850 30.9% #125
codecategories 1026 50.9% #119
dataviz 1104 59.5% #97
gamedev 1080 59.1% #104
uicomponent 998 49.7% #116
website 1039 52.3% #123

Providers

2 providers · per 1M tokens · last 30 min metrics
ProviderQuantContextInputOutputUptimeTok/s
Azure unknown 1.0M $2.00 $8.00 100% —
OpenAI unknown 1.0M $2.00 $8.00 100% —
Azure unknown 1.0M $2.20 $8.80 — —
Provider data from OpenRouter's endpoint listing, refreshed daily.

Specifications

Organisation
openai
Released on OpenRouter
2025-04-14
Context window
1,047,576 tokens
Max output
32,768 tokens
Input
image, text, file
Output
text
Knowledge cutoff
June 2024
Tokenizer
GPT
Moderated by provider
Yes
OpenRouter id
openai/gpt-4.1
Compare with
Prices, context and providers from the public OpenRouter API, snapshotted daily; benchmark indices from Artificial Analysis. See /methodology.