一个 API,调用对话、图像和视频模型
兼容 OpenAI。每个模型都按开发者标价计费。
对话
所有对话模型,一个端点。
了解更多 →路由
价格最低优先,其次首个 token 最快。
了解更多 →图像
生成和编辑图片。
了解更多 →视频
由文本或画面生成视频,按秒计费。
了解更多 →Studio
短剧系列,逐个阶段由你确认。
了解更多 →import os from openai import OpenAI client = OpenAI( base_url="https://api.hyperouter.app/v1", api_key=os.environ["HYPEROUTER_API_KEY"], ) res = client.chat.completions.create( model="x-ai/grok-4.7", messages=[{"role": "user", "content": "Hello"}], ) print(res.choices[0].message.content)
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.hyperouter.app/v1", apiKey: process.env.HYPEROUTER_API_KEY, }); const res = await client.chat.completions.create({ model: "x-ai/grok-4.7", messages: [{ role: "user", content: "Hello" }], }); console.log(res.choices[0].message.content);
# provider.sort and models[] control routing and fallback curl https://api.hyperouter.app/v1/chat/completions \ -H "Authorization: Bearer $HYPEROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "x-ai/grok-4.7", "models": ["x-ai/grok-4.6"], "provider": { "sort": "price" }, "messages": [{"role": "user", "content": "Hello"}] }'
行情
价格按每 100 万 token 计:输入 / 缓存输入 / 输出。
| 模型 | 价格 |
|---|---|
| $2.00 / $0.50 / $6.00 | |
| $2.00 / $0.50 / $6.00 | |
| $2.00 / $0.30 / $6.00 | |
| $1.25 / $0.20 / $2.50 | |
| $1.00 / $0.20 / $2.00 | |
| $0.15 / $0.003 / $0.60 | |
| $0.15 / $0.003 / $0.60 | |
| $10.00 / $1.00 / $50.00 | |
| $2.00 / $0.10 / $10.00 | |
| $1.40 / $0.26 / $4.40 | |
| $0.0013 每次请求 | |
| $10.00 / — / $50.00 | |
| $4.00 / — / $20.00 | |
| $2.00 / — / $10.00 | |
| $0.10 / — / $0.50 | |
| $0.10 / — / $0.50 |
| 模型 | 价格 |
|---|---|
| $0.02 每张 | |
| $0.04 起 每张 | |
| $0.035 每张 | |
| $0.018 每张 | |
| $0.035 每张 |
| 模型 | 每秒视频价格 |
|---|---|
| $0.050 起 | |
| $0.080 起 | |
| $0.020 起 | |
| $0.0431892 起 | |
| $0.0331452 起 | |
| $0.0210924 起 | |
| $0.0642816 起 | |
| $0.050 起 | |
| $0.080 起 | |
| $0.050 起 |
开发者标价,以发布时为准。
最新动态
全部文章开始使用
价格
模型用量标价
充值手续费5.5%(最低 $0.80)
失败的请求免费

