OpenAI
gpt-4.1
openai/gpt-4.1
Price per million tokens
- Input
- $2.532
- Output
- $10.128
- Cache write
- not offered
- Cache read
- $0.633
What you pay. It is what the tokens cost us to buy plus 20%, and your usage page shows what we paid beside what you paid on every request you send.
Limits
- Context window
- 1,047,576 tokens
- Max output
- 32,768 tokens
- Images
- supported
What it costs to run
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0076 | $7.60 |
| Long document summary | 50,000 | 2,000 | $0.1469 | $146.86 |
| Agent step with tools | 20,000 | 1,500 | $0.0658 | $65.83 |
| 1M in, 1M out | 1,000,000 | 1,000,000 | $12.6600 | $12660.00 |
Calling it
const res = await client.chat.completions.create({ model: "openai/gpt-4.1", messages: [{ role: "user", content: "Hello" }], });