OpenAI

gpt-4o-mini

Fast, affordable small model for focused tasks

起始价格
输入
$0.15/ 1M
输出
$0.60/ 1M
进入控制台

渠道

每个渠道均使用输入价格最低的档位参与比较,输入同价时比较输出价格。短横线表示 /api/pricing 未提供该费率。选择渠道会更新下方端点与调用示例。

openai/gpt-4o-mini
输入
$0.15 USD / 1M tokens
输出
$0.60 USD / 1M tokens
缓存读取
$0.075 USD / 1M tokens
缓存写入
- USD / 1M tokens

端点

POST/v1/chat/completionsChat Completions

发起调用

当前渠道 openai/gpt-4o-mini

1from openai import OpenAI23client = OpenAI(4    base_url="https://www.realrelay.ai/v1",5    api_key="sk-***",6)78response = client.chat.completions.create(9    model="openai/gpt-4o-mini",10    messages=[{"role": "user", "content": "Hello"}],11)1213print(response.choices[0].message.content)
1import OpenAI from "openai";23const client = new OpenAI({4  baseURL: "https://www.realrelay.ai/v1",5  apiKey: process.env.REALRELAY_API_KEY,6});78const response = await client.chat.completions.create({9  model: "openai/gpt-4o-mini",10  messages: [{ role: "user", content: "Hello" }],11});1213console.log(response.choices[0].message.content);
1curl https://www.realrelay.ai/v1/chat/completions \2  -H "Authorization: Bearer $REALRELAY_API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "model": "openai/gpt-4o-mini",6    "messages": [{ "role": "user", "content": "Hello" }]7  }'

价格与可用性为 2026年10月4日 发布的数据。

能力

微调结构化输出工具调用视觉
输入
文本图像
输出
文本