gpt-4.1

by OpenAI

The latest flagship multimodal model supports million-token context, with encoding capability (SWE-bench 54.6%) and instruction-following (Scale AI 38.3%) performance significantly surpassing GPT-4o, while reducing costs by 26%, making it suitable for complex tasks. Its automatic caching mechanism offers a 75% cost reduction on cache hits.

API Pricing

Input$2 / 1M tokens
Output$8 / 1M tokens
Cache read$0.5 / 1M tokens

Specifications

Context window1,047,576 tokens
Modalitiestext, image
Featurestool calling, function calling, structured outputs, long context

FAQ

What is gpt-4.1?

The latest flagship multimodal model supports million-token context, with encoding capability (SWE-bench 54.6%) and instruction-following (Scale AI 38.3%) performance significantly surpassing GPT-4o, while reducing costs by 26%, making it suitable for complex tasks. Its automatic caching mechanism offers a 75% cost reduction on cache hits.

What is the context length of gpt-4.1?

gpt-4.1 has a 1,047,576 token context window.

How much does gpt-4.1 cost?

On AIHubMix, gpt-4.1 costs $2 per million input tokens and $8 per million output tokens. Cached input reads are billed at $0.5 per million tokens.

What modalities does gpt-4.1 support?

gpt-4.1 accepts text and image input.

What features does gpt-4.1 support?

gpt-4.1 supports tool calling, function calling, structured outputs and long context. Per-protocol parameter support is listed in the capability table on this page.

How do I call gpt-4.1 via API?

gpt-4.1 is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to gpt-4.1 — no other code changes needed.

Who develops gpt-4.1?

gpt-4.1 is developed by OpenAI. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

Free version: gpt-4.1-free

More from OpenAI

gpt-5.6-luna

by OpenAI

GPT-5.6 Luna is designed for cost-sensitive, high-volume workloads. It roughly…

$0.2/1M in · $1.2/1M out
1,050,000 tokens context

gpt-5.6-sol

by OpenAI

GPT‑5.6 Sol sets a new standard for both intelligence and efficiency, achieving…

$5/1M in · $30/1M out
1,050,000 tokens context

gpt-5.6-terra

by OpenAI

GPT-5.6 Terra is designed for workloads that balance intelligence and cost. It roughly…

$2/1M in · $12/1M out
1,050,000 tokens context

gpt-4o-transcribe-diarize

by OpenAI

GPT-4o Transcribe Diarize is an automatic speech recognition (ASR) model with built-in…

$2.5/1M in · $10/1M out
16,000 tokens context

gpt-audio-1.5

by OpenAI

The gpt-audio model is OpenAI's first officially released (generally available) audio…

$2.5/1M in · $10/1M out
128,000 tokens context

gpt-image-2

by OpenAI

GPT-image-2 is OpenAI's latest cutting-edge image generation model. Key value adds…

$5/1M in · $30/1M out

Use gpt-4.1 via the AIHubMix unified API — one interface for every major LLM.