跳到主要内容

Text model

GPT-5.1 Codex Max

openai/gpt-5.1-codex-max

openai/gpt-5.1-codex-max is a language model from OpenAI you can call on the OceanToken API at $1.25 per 1M input tokens and $10.00 per 1M output tokens, with a 272K-token context window and up to 128K output tokens; it supports reasoning, tool calling, image input.

At a glance

Model IDopenai/gpt-5.1-codex-max
TypeText
PublisherOpenAI
Context window272,000 tokens
Max output128,000 tokens
Input price$1.25 per 1M tokens
Output price$10.00 per 1M tokens
Cached input price$0.125 per 1M tokens
Capabilitiesreasoning, tool calling, image input
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible
In the catalog since2025-12-04

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

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

Compared with similar models

Text models on OceanToken closest to openai/gpt-5.1-codex-max in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
GPT-5.1 Codex MaxOpenAI272,000$1.25 / $10.00
Claude Sonnet 5
anthropic/claude-sonnet-5
Anthropic1M$2.00 / $10.00
Claude Sonnet 5.5
anthropic/claude-sonnet-5.5
Anthropic1M$2.00 / $10.00
Command A
cohere/command-a
Cohere256K$2.50 / $10.00

More from OpenAI

All OpenAI models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.