OpenAI · MODEL SHEET

GPT-4o-mini

openai/gpt-4o-mini
图像输入编程 #108
输入价 / 1M$0.1500/1M≈ ¥1.00
输出价 / 1M$0.6000/1M≈ ¥4.02
上下文128K最大输出 16K
上架日期2024-07-18OpenRouter 上架 · 文本+图像+文件 → 文本

各榜排名

同一模型可能只进入部分榜单;没有数据的榜不会显示 0 分。

2 个榜
榜单排名分数口径 / 日期
编程
Artificial Analysis Coding Index
#10811.4
Artificial Analysis Coding Index
2026-10-18 · AA via OpenRouter
文本综合
Artificial Analysis Intelligence Index
#1936.7
Artificial Analysis Intelligence Index
2026-10-18 · AA via OpenRouter

价格

厂商官方价尚未核实。以下为第三方聚合参考价,仅作估算,不作为官方口径。

档位输入输出缓存读 / 写折算人民币来源 / 日期
标准
OpenRouter 参考 · 默认
$0.1500/1M$0.6000/1M$0.0750/1M / —¥1.00 / ¥4.02
2026-10-18
路由页面 ↗
批量
OpenRouter 参考
$0.0750/1M$0.3000/1M$0.0375/1M / —¥0.50 / ¥2.01
2026-10-18
路由页面 ↗

汇率 1 USD = 6.6985 CNY(2026-10-17)。折算价只用于估算, 实际结算以支付渠道和提供方账单为准。

调用方式

代码中只使用环境变量占位,不在页面暴露任何密钥。

OpenRouter
OpenAI 兼容 · https://openrouter.ai/api/v1
openai/gpt-4o-mini
环境变量 OPENROUTER_API_KEY
cURL · OpenRouter
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role": "user", "content": "你好,请用三句话介绍你自己。"}],
    "max_tokens": 512
  }'

将 OPENROUTER_API_KEY 设为你的密钥后运行。Python 与 Node 示例见 OpenRouter 接入指南。

来源描述(OpenRouter,英文)

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable...