OpenAI

OpenAI: GPT-4.1

openai/gpt-4.1

Input Price

$2.00 / 1M

Output Price

$8.00 / 1M

Context Length

1,047,576

LLM Price Calculator

Enter custom token counts to calculate exact pricing for your specific AI use case.

Input Cost
$2.00
Output Cost
$8.00
Total Cost
$10.00

About this model

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...

Try this model in Playground

Test this model's capabilities in different AI playground environments including OpenRouter, Hugging Face, Cloudflare, and Vercel.

FAQ

OpenAI: GPT-4.1 pricing FAQ

Answers about this model's pricing, context window, supported modalities, and where to try it.

How much does OpenAI: GPT-4.1 cost?

Use the calculator above to estimate the cost for your expected workload. Input and output tokens are billed at separate rates, and optional provider features may add extra charges.

What is the context length of OpenAI: GPT-4.1?

OpenAI: GPT-4.1 supports a context window of up to 1,047,576 tokens. Your provider may reserve part of that capacity for generated output or system instructions.

Which modalities does OpenAI: GPT-4.1 support?

Listed input modalities: image, text, file. Listed output modalities: text. Confirm feature availability with your chosen provider before integrating the model.

Where can I try OpenAI: GPT-4.1?

Use the Playground links above to check whether the model is currently available from those third-party services. Access, features, and pricing can vary between platforms.