查询参数
要获取价格的模型 ID。如果未指定,则返回所有模型的价格。
响应
始终为
list。模型价格对象的数组。每个对象包含:
model(string): 模型标识符pricing(object): 计费信息input_per_1m(string | null): 每 1M input tokens 的 USD 价格output_per_1m(string | null): 每 1M output tokens 的 USD 价格per_request(string | null): 每次请求的 USD 价格(适用于固定价格模型)is_lock_price(boolean): 计费是否按每次请求固定currency(string): 始终为USD
provider(string): 模型提供商
计费类型
| 类型 | 描述 | 示例模型 |
|---|---|---|
| 基于 Token | 按输入/输出 tokens 计费 | GPT-4o, Claude, Gemini |
| 按次计费 | 每次请求固定价格 | DALL-E 3, Sora, Suno |