# GPT-5.1-Codex-Max — Use via Hanzo AI API

> GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for lon... Call via Hanzo's OpenAI-compatible API. Context: 400K.

GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks.

[Get API key](https://platform.hanzo.ai/api-keys)[Try in Chat](https://hanzo.ai/chat)

Context Window

**400K**

In

**$1.39**per million tokens

Out

**$11.13**per million tokens

OpenAI

Model ID`openai/gpt-5.1-codex-max`

### Specifications

In_$1.39_

Out_$11.13_

Context Window

400K

Modalities

text

Price

$1.39 in · $11.13 out, per million tokens

Model ID

openai/gpt-5.1-codex-max

## Quick start

openai/gpt-5.1-codex-max

$1.39 in · $11.13 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-5.1-codex-max',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
```

[Get an API key →](https://platform.hanzo.ai/api-keys)

## More from OpenAI

[View all OpenAI models →](https://hanzo.ai/models/openai)

_10K__100K__1M__$0.100__$1.00__$10.00__$100.00_

**$36.16**Bill a month

The same bill for this mix.

Input a month**10M**Output a month**2M**

GPT-5.1-Codex-Max**$36.16**400K

GPT-5**$36.16**400K

- [GPT-3.5 Turbo 16k openai/gpt-3.5-turbo-16kThis model offers four times the context length of gpt-3.5-turbo, allowing it to support approximately 20 pages of text in a single request at a higher cost. Training data: up...16K$3.34 → $4.45](https://hanzo.ai/models/openai/gpt-3.5-turbo-16k)
- [GPT-4 openai/gpt-4OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning...8K$33.39 → $66.78](https://hanzo.ai/models/openai/gpt-4)
- [GPT-4.1 openai/gpt-4.1GPT-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...1M$2.23 → $8.90](https://hanzo.ai/models/openai/gpt-4.1)
- [GPT-4.1 Mini openai/gpt-4.1-miniGPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores 45.1% on hard...1M$0.445 → $1.78](https://hanzo.ai/models/openai/gpt-4.1-mini)
- [GPT-4.1 Nano openai/gpt-4.1-nanoFor tasks that demand low latency, GPT‑4.1 nano is the fastest and cheapest model in the GPT-4.1 series. It delivers exceptional performance at a small size with its 1 million...1M$0.111 → $0.445](https://hanzo.ai/models/openai/gpt-4.1-nano)
- [GPT-5 openai/gpt-5GPT-5 is OpenAI’s most advanced model, offering major improvements in reasoning, code quality, and user experience. It is optimized for complex tasks that require step-by-step reasoning, instruction following, and accuracy...400K$1.39 → $11.13](https://hanzo.ai/models/openai/gpt-5)

- [**GPT-3.5 Turbo (older v0613) (opens in a new tab)**openai/gpt-3.5-turbo-06134KGPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.](https://hanzo.app/models/openai/gpt-3.5-turbo-0613)

## Use GPT-5.1-Codex-Max via Hanzo AI

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

[Get an API key](https://platform.hanzo.ai/api-keys)[Browse All Models](https://hanzo.ai/models)
