Skip to content
Language: English (United States)

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.

Context Window
1M
In
$2.23per million tokens
Out
$8.90per million tokens

OpenAI

Model IDopenai/gpt-4.1

Specifications

Context Window
1M
Modalities
text
Price
$2.23 in · $8.90 out, per million tokens
Model ID
openai/gpt-4.1

Quick start

openai/gpt-4.1

$2.23 in · $8.90 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'openai/gpt-4.1',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
10K100K1M$0.100$1.00$10.00$100.00

$40.10Bill a month

The same bill for this mix.

GPT-4.1$40.101M
o3$40.10200K

Use GPT-4.1 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.