Seedance 2.0 GIẢM 20% | Tạo trong Video Generator →
openai
openai/gpt-5.1-codex-max

openai/gpt-5.1-codex-max

400,000 context · $1.25/M input tokens · $10.00/M output tokens

GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks. It is based on an updated version of the 5.1 reasoning stack and trained on agentic...

Pricing

Pay-per-use

No upfront costs, pay only for what you use

Input$1.25 / M Tokens
Output$10.00 / M Tokens
Cache Read$0.13 / M Tokens

Try the model

openai/gpt-5.1-codex-max
Online
openai
Hi! I am a helpful AI assistant. What can I do for you?

API Usage

Use the following code examples to integrate with our API:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="openai/gpt-5.1-codex-max",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Model Introduction

Openai gpt-5.1-codex-max

openai gpt-5.1-codex-max


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 400000 context window for long document handling
  • Competitive pricing at $1.4/$11.0 per million tokens

Key Features

  • Context Window: 400000 tokens
  • Max Output: 128000 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderOpenai
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window400000 tokens
Max Output128000 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$1.4
Output$11.0

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: openai/gpt-5.1-codex-max


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="openai/gpt-5.1-codex-max",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-5.1-codex-max",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: openai/gpt-5.1-codex-max
  • Provider: Openai

Info

Provideropenai
Typellm

Supported Functionality

Input
TextImage
Output
Text
Context400,000
Max Output128,000
Vision✓ Supported
Function Calling✓ Supported

API Access Guide

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDopenai/gpt-5.1-codex-max

GPT 5.1 Codex Max API

openai/gpt-5.1-codex-max

GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks. It is based on an updated version of the 5.1 reasoning stack and trained on agentic...

Input

$1.25 /M

Output

$10 /M

Context

400K

Max Output

128K

Vision

Supported

Tool Use

Supported

Try GPT 5.1 Codex Max on WaveSpeedAI

Access GPT 5.1 Codex Max through our unified API — OpenAI-compatible, no cold starts, transparent pricing.

Frequently Asked Questions about GPT 5.1 Codex Max

How much does GPT 5.1 Codex Max cost via the API?+

Pricing on WaveSpeedAI: $1.25 per million input tokens and $10.00 per million output tokens. Prompt caching and batch processing are billed separately and reduce effective cost on long, repetitive workloads.

What is the context window of GPT 5.1 Codex Max?+

GPT 5.1 Codex Max supports up to 400K tokens of context with up to 128K tokens of output per request.

Is GPT 5.1 Codex Max OpenAI-compatible?+

Yes. WaveSpeedAI exposes GPT 5.1 Codex Max through an OpenAI-compatible endpoint at https://llm.wavespeed.ai/v1. Point the official OpenAI SDK at this base URL with your WaveSpeedAI API key — no other code changes required.

How do I get started with GPT 5.1 Codex Max?+

Sign in to WaveSpeedAI, create an API key in Access Keys, then send a request to https://llm.wavespeed.ai/v1/chat/completions with model id set to the value shown above. New accounts receive free credits to evaluate GPT 5.1 Codex Max before paying per token.

Related LLM APIs