OpenAI: Codex MiniAPI pricing
Codex Mini is a language model. It takes text in and writes text back.
- 每100万枚代币的价格
- $1.50 / $6.00input / output
- 缓存的输入
- $0.38per 1M tokens
- 服务提供商
- 1
服务提供商
1 provider ·
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/codex-mini-latest", "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/codex-mini-latest",
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/codex-mini-latest",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 Codex Mini 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/codex-mini-latest;其余代码保持不变。
About Codex Mini
- 请求示例
- $0.02110,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.
用文字表述价格
Codex Mini costs from $1.50 per 1M input tokens and $6.00 per 1M output tokens on OpenCheap, with cached input at $0.38 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.021, and 1,000 such requests about $21.00.
One provider serves Codex Mini on OpenCheap today.
Codex Mini is one of 113 OpenAI models on OpenCheap.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the Codex Mini API cost per 1M tokens?
Codex Mini costs from $1.50 per 1M input tokens and $6.00 per 1M output tokens on OpenCheap, with cached input at $0.38 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.
What does one Codex Mini request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.021, and 1,000 such requests about $21.00. Every answer reports its own cost in usage.cost.
Which providers serve Codex Mini?
One provider serves Codex Mini on OpenCheap today. 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.
How do I call the Codex Mini API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/codex-mini-latest. 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
- 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
- GPT-4gpt-431.50 美元 / 63.00 美元 每 1M · 8.1K 上下文
类似型号
- Gemini 3.5 FlashGoogle · 100万条上下文$1.50 / $9.00 per 1M
- Gemini 4 HydrogenGoogle · 100万条上下文$1.43 / $7.13 per 1M
- anthracite-org/magnum-v4-72b无烟煤 · 32K 上下文$2.50 / $5.00 per 1M10 % cheaper
- Kimi K2.7 Code HighspeedMoonshot · 26.2万上下文$1.90 / $8.00 per 1M
- Qwen4 35B A3BQwen · 1M 语料库$1.47 / $4.41 per 1M25 % cheaper
- 元模型/Muse-Spark-Open-816B-A42BMeta · 100万上下文$1.25 / $4.25 per 1M28 % cheaper