OpenAI: GPT-5.1-Codex MiniAPI pricing
GPT-5.1-Codex-Mini is OpenAI's smaller, less capable version of GPT-5.1-Codex. It accepts text and image input, replies in text, and supports function calling and web search.
- 每100万枚代币的价格
- $0.25 / $2.00input / output
- 缓存的输入
- $0.025per 1M tokens
- 上下文
- 400K tokens128K max output
- 服务提供商
- 4
- 最快
- 102 tok/sAzure
服务提供商
4 家服务商 ·
400K context · 128K max output
支持的参数11
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
400K context · 128K max output
支持的参数9
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format- 推理
推理include_reasoning- 未确认
工具
400K context · 128K max output
支持的参数7
- 抽样
种子- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
温度停止
- 1 more provider through partner hosts · from $0.26 in · $2.10 out
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/gpt-5.1-codex-mini", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gpt-5.1-codex-mini",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gpt-5.1-codex-mini",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 GPT-5.1-Codex Mini 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/gpt-5.1-codex-mini;其余代码保持不变。
About GPT-5.1-Codex Mini
- 标价
- $0.25 / $2.00in / out per 1M
- 请求示例
- $0.004510,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
GPT-5.1-Codex Mini costs from $0.25 per 1M input tokens and $2.00 per 1M output tokens on OpenCheap, with cached input at $0.025 per 1M tokens. Its list price is $0.25 per 1M input tokens and $2.00 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0045, and 1,000 such requests about $4.50.
4 providers serve GPT-5.1-Codex Mini on OpenCheap. Its context window is 400K tokens (400,000), room for roughly 300,000 words of English in one request.
GPT-5.1-Codex Mini is one of 113 OpenAI models on OpenCheap.
The public list price is $0.25 per 1M input tokens and $2.00 per 1M output tokens. OpenCheap is from $0.25 and $2.00, as of 2026-12-04 11:48 UTC.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the GPT-5.1-Codex Mini API cost per 1M tokens?
GPT-5.1-Codex Mini costs from $0.25 per 1M input tokens and $2.00 per 1M output tokens on OpenCheap, with cached input at $0.025 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.
What does one GPT-5.1-Codex Mini request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.0045, and 1,000 such requests about $4.50. Every answer reports its own cost in usage.cost.
Is GPT-5.1-Codex Mini cheaper on OpenCheap than its list price?
Its list price is $0.25 per 1M input tokens and $2.00 per 1M output tokens, the same as here.
Which providers serve GPT-5.1-Codex Mini?
4 providers serve GPT-5.1-Codex Mini on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of GPT-5.1-Codex Mini?
Its context window is 400K tokens (400,000), room for roughly 300,000 words of English in one request.
How do I call the GPT-5.1-Codex Mini API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gpt-5.1-codex-mini. One OpenCheap key works for every model; the rest of your code stays the same.
OpenAI 的更多内容
- gpt-oss-120bgpt-oss-120b0.0049 美元 / 0.021 美元 每 100 万 · 13.1 万 上下文
- gpt-oss-20bgpt-oss-20b每100万·13.1万上下文为 $0.0003 / $0.0015
- GPT 5.5gpt-5.5每1M · 1M上下文 $2.00 / $12.00
- chat-latestchat-latest$5.25 / $31.48 per 1M · 272K context
- Codex Minicodex-mini-latest每1M 1.50美元 / 6.00美元
- gpt-3.5-turbogpt-3.5-turbo每1M·4K内容 $0.52 / $1.57
- GPT-3.5 Turbo(旧版 v0613)gpt-3.5-turbo-0613每1M·4K内容 $1.05 / $2.10
- GPT-3.5 Turbo 16kgpt-3.5-turbo-16k每1M·16K上下文 $3.15 / $4.20
类似型号
- Mercury Coder SmallInception · 32K context$0.25 / $1.00 per 1M48 % cheaper
- 克劳德·俳句 4.5Anthropic · 200K context$0.40 / $2.00 per 1M
- seed-2.0-liteByteDance · 262K context$0.25 / $2.00 per 1M
- Kimi K2.7 代码Moonshot · 26.2万上下文$0.25 / $1.08 per 1M44 % cheaper
- Doubao Seed 2.0 LiteByteDance · 256K context$0.25 / $2.00 per 1M
- Qwen 3 Coder 480B TurboQwen · 256K context$0.42 / $1.80 per 1M7 % cheaper
Compare GPT-5.1-Codex Mini with any model →Cheapest LLM APICheapest GPT API