跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt

Use this file to discover all available pages before exploring further.

概述

使用此端点可以列出当前对外可见的活跃模型定价信息。 如需查看某个模型的完整定价详情,包括结构化定价和溯源信息,请优先使用 获取模型定价

查询参数

provider
string
可选的提供方筛选,例如 openaianthropicgoogle
tag
string
可选的模型标签筛选,例如 chatimagevideoembeddingtranslation

响应

object
string
始终为 pricing
updated_at
string
响应中包含的最新定价条目的 ISO 时间戳。
currency
string
始终为 USD
data
array
定价条目数组。每一项包括 modelprovideris_lock_pricecapabilitiesaliases,以及上方交互式 schema 返回的公开标量或结构化定价摘要字段。
curl "https://api.tokenlab.sh/v1/pricing?provider=openai&tag=chat" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "object": "pricing",
  "updated_at": "2026-04-20T00:00:00.000Z",
  "currency": "USD",
  "data": [
    {
      "model": "gpt-4o",
      "provider": "openai",
      "is_lock_price": false,
      "capabilities": ["chat"],
      "aliases": ["gpt-4o-latest"],
      "pricing": {
        "input_per_1m": "2.50",
        "output_per_1m": "10.00",
        "per_request": null,
        "is_lock_price": false,
        "currency": "USD"
      }
    }
  ]
}
使用上面的交互式 OpenAPI 面板获取确切的响应 schema。公开定价条目也可能暴露 lock_price_per_requesthas_complex_pricingsupported_operationspricing_summarypricing_provenance