Skip to main content
kRouter
All models

GPT-4.1

GPT-4.1 is served by 2 providers that kRouter can route to, with a 1M-token context window and pricing from $2.50 per 1M input tokens. Because more than one provider offers it, the price you pay depends on which one you route to — the same request, the same model, different bills.

Where to get GPT-4.1

ProviderRoute as
GitHub Copilotgh/gpt-4.1
OpenAIopenai/gpt-4.1

What GPT-4.1 is suited for

A 1M window is large enough to hold a substantial part of a codebase in one turn, so it suits whole-repo refactors and long agent sessions where the history keeps growing. It answers directly rather than reasoning at length, which keeps latency and output cost down on routine edits. Tool and function calling are supported, so it can drive an agent loop. It accepts images, so screenshots and diagrams can go straight into the prompt. Cached input is billed at $1.25 against $2.50 fresh, which is the difference that matters most for agent work — the same context is resent on every turn.

Specs

Context window
1M
Max output
33K
Input / 1M
$2.50
Output / 1M
$10.00

Cheaper alternatives to GPT-4.1

Comparable capabilities at a lower rate. With a kRouter combo you can send routine turns to one of these and reserve GPT-4.1 for the work that actually needs it.

GPT-4.1 FAQ

How much does GPT-4.1 cost?

GPT-4.1 is $2.50 per 1M input tokens and $10.00 per 1M output tokens. Cached input is $1.25, which matters a lot for agent work that resends the same context each turn.

Which providers serve GPT-4.1?

2 providers: GitHub Copilot, OpenAI. Through kRouter you can switch between them by changing the route prefix, without changing your tool.

What is GPT-4.1's context window?

1M tokens, with up to 33K tokens of output. kRouter publishes this on /v1/models as context_length, so clients read the real number instead of guessing from the model name.

Is there a cheaper alternative to GPT-4.1?

Yes — Kimi K2.5 ($1.20/1M in), Kimi K2.6 ($1.20/1M in), Kimi-K2.7 ($1.20/1M in), Qwen3 Coder Plus ($1.00/1M in) are cheaper with comparable capabilities. A kRouter combo can send routine turns to one of those and keep GPT-4.1 for the work that needs it.

Route to GPT-4.1 from any tool

kRouter runs locally and gives Claude Code, Cursor, Codex and the rest one endpoint that reaches every provider above — with automatic failover. Free and MIT-licensed.

Install kRouter