Model details

gpt-5.1-codex API Model & Pricing

Call ChatGPT gpt-5.1-codex via Infistar: inspect the exact model ID, declared endpoints (openai), transparent CNY pricing, and ready-to-run examples.

Exact model IDgpt-5.1-codex

Endpoints and pricing

Model family

ChatGPT

Compatible endpoint

openai

Task type

text

Settlement

Settled by actual token usage

Lowest price (CNY)

Input ¥5 / Output ¥40 per 1M tokens, cache read ¥0.5

Official reference price

Official: input ¥8.3517 / output ¥66.8135

Estimated savings

Up to 40% below official reference (never above official pricing)

Quickstart API example

Call gpt-5.1-codex via POST /v1/chat/completions using your Infistar API key:

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

client = OpenAI(api_key="YOUR_INFISTAR_KEY", base_url="https://infistar.ai/v1")
res = client.chat.completions.create(model="gpt-5.1-codex", messages=[{"role": "user", "content": "Hello"}])
print(res.choices[0].message.content)

Before you use this model

Models and prices may change. Sign in to check available models and review current pricing before calling.

Related models and guides