Model details

gpt-5.1-codex-mini API Model & Pricing

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

Exact model IDgpt-5.1-codex-mini

Endpoints and pricing

Model family

ChatGPT

Compatible endpoint

openai · openai-response · gemini

Task type

text

Settlement

Settled by actual token usage

Lowest price (CNY)

Input ¥1.0417 / Output ¥8.3334 per 1M tokens, cache read ¥0.1042

Official reference price

Official: input ¥1.6703 / output ¥13.3627

Estimated savings

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

Quickstart API example

Call gpt-5.1-codex-mini 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-mini","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-mini", 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