AvailableOpenAIChatCache 90% off
gpt-5.1-codex

Build next-gen apps with gpt-5.1-codex

API Code Example

Pricing

TokenLab Price

$0.375

Per Token

Discount: 70%

One-click test

Sign in once and Web Agent keeps this model, prompt, and request preset for you.

Test gpt-5.1-codex in Web Agent with a short request at /v1/responses, then show request body, latency, and response.

API workbench

The default route for production. The code sample below uses this endpoint with the format you pick.

chatOpenAI Compatible
POST/v1/responses
API Format:
curl https://api.tokenlab.sh/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxx" \
  -d '{
    "model": "gpt-5.1-codex",
    "input": "Hello!"
  }'

Use cases

Best for

Vision

Reading images, parsing documents, and answering visual questions

01

Agents and tools

Drive reasoning, support triage, tool calls, and multi-step task flows.

02

Developer workflows

Generate, review, or debug code without rewiring your stack.

03

Knowledge assistants

Ship chat, search, and retrieval with predictable cost and behavior.

04

Side-by-side test

See real response quality, latency, and price before this becomes your production default.

Prompt examples

Write a concise support reply and list the assumptions behind it.

Review this API design and call out the top three integration risks.

Turn a long changelog into release notes a non-engineer would read.

Cost Calculator

1M
0.5M
Estimated Monthly Cost$1.88

FAQ

How much does gpt-5.1-codex cost?

On TokenLab, gpt-5.1-codex costs $0.3750 per 1M input tokens and $3.0000 per 1M output tokens. Cache and per-request prices show in the pricing table when they apply.

What is gpt-5.1-codex best for?

gpt-5.1-codex is a strong fit for Tool Use, Vision, Prompt Cache. You can call it through TokenLab with one API key.

How do I call the gpt-5.1-codex API?

Get a TokenLab API key, then send your request to https://api.tokenlab.sh/v1/responses. The API workbench above has a recommended endpoint and copy-ready code.

Which endpoint should gpt-5.1-codex use?

Use https://api.tokenlab.sh/v1/responses as the default for gpt-5.1-codex. If a provider-native format is supported, the API workbench shows that endpoint too.

Can I test gpt-5.1-codex before integrating it?

Yes. Try in Web Agent opens a ready test for gpt-5.1-codex and keeps your prompt after sign-in, so you don’t lose context.

Related Models