{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1,
"totalCatalogModels": 477
},
"data": [
{
"id": "anthropic/claude-sonnet-4.5",
"name": "Claude Sonnet 4.5",
"provider": "anthropic",
"contextLength": 200000,
"pricing": {
"promptPer1MUsd": 3,
"completionPer1MUsd": 15,
"cacheReadPer1MUsd": 0.3
},
"benchmarks": {
"intelligenceIndex": 72.4,
"codingIndex": 68.9
}
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41001/list+and+filter+live+llm+models+pricing+and+benchmarks?provider=sample&q=nvidia&modality=sample&freeOnly=false&reasoningOnly=false&toolsOnly=false&minContext=sample&maxPromptPer1M=sample&minIntelligence=sample&sort=intelligence_desc&limit=30' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1
},
"data": [
{
"id": "deepseek/deepseek-r1",
"estimatedInputCostUsd": 0.55,
"estimatedOutputCostUsd": 0.55,
"estimatedTotalCostUsd": 1.1,
"intelligenceIndex": 64.2,
"valueScore": 58.36
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41002/estimate+and+rank+llm+workload+cost+in+usd?inputTokens=1000000&outputTokens=250000&cachedInputTokens=OptionalminContext=sample&minIntelligence=sample&excludeFree=false&sort=cost_asc&limit=20' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 2
},
"data": [
{
"id": "google/gemini-2.5-flash",
"estimatedTotalCostUsd": 0.45,
"savingsVsMostExpensivePercent": 93.4,
"intelligenceIndex": 60.5
},
{
"id": "anthropic/claude-sonnet-4.5",
"estimatedTotalCostUsd": 6.75,
"savingsVsMostExpensivePercent": 0,
"intelligenceIndex": 72.4
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41003/side-by-side+llm+cost+and+benchmark+comparator?models=sample&inputTokens=1000000&outputTokens=250000&cachedInputTokens=Optional' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1,
"totalProviders": 69
},
"data": [
{
"provider": "openai",
"modelCount": 44,
"freeModels": 0,
"medianPromptPer1MUsd": 2.5,
"topModelId": "openai/gpt-5"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41004/list+ai+model+providers+and+pricing+benchmarks?limit=50' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1
},
"data": [
{
"id": "Qwen/Qwen3-32B",
"pipelineTag": "text-generation",
"likes": 4820,
"downloads": 1290400,
"trendingScore": 98.4,
"license": "apache-2.0"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41005/hugging+face+trending+and+top+open-source+models?sort=trending&search=sample&pipeline=sample&library=sample&limit=20' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1
},
"data": [
{
"id": "HuggingFaceFW/fineweb-edu",
"likes": 1940,
"downloads": 642000,
"trendingScore": 84.1
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41006/hugging+face+trending+ai+datasets?sort=trending&search=sample&limit=20' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1
},
"data": [
{
"id": "lmarena-ai/chatbot-arena-leaderboard",
"sdk": "gradio",
"likes": 12400,
"trendingScore": 95.2
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41007/hugging+face+trending+ai+spaces+and+demos?sort=trending&search=sample&sdk=sample&limit=20' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "ai-models-pricing-api",
"version": "1.0.0",
"timestamp": "2026-11-23T06:00:00.000Z",
"latencyMs": 68,
"cached": true,
"count": 1
},
"data": [
{
"arxivId": "2611.10421",
"title": "Efficient Test-Time Scaling for Reasoning Agents",
"upvotes": 186,
"aiSummary": "Demonstrates 3x inference efficiency gains...",
"aiKeywords": [
"reasoning",
"agents"
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15342/ai+models+and+llm+pricing+api/41008/hugging+face+daily+ai+research+papers?search=sample&minUpvotes=Optionalsort=upvotes&limit=20' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 AI模型和大型语言模型定价 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
比较 470 多种大型语言模型以及热门开源 AI 模型和数据集的实时令牌价格、上下文长度、模态和工作负载成本估算
来自 OpenAI、Anthropic、Google、Meta、Mistral 和 DeepSeek 等主要专有模型和开放权重模型提供商的 470 多种模型
是。将输入令牌数和输出令牌数传递给成本估算端点,以按预计总支出对模型进行排名。
每条模型记录可以包含其 ID、名称、提供方、上下文长度、模态、推理支持、令牌成本字段,以及智能和编码分数等基准索引。筛选条件可以按提供方、模态、免费可用性、推理支持、上下文长度、成本阈值和基准分数缩小结果范围
它会返回模型 ID 及预估的输入、缓存输入、输出和总工作负载成本,以及智能指数和价值评分。结果可用于比较符合请求的各个模型的预计支出与模型能力
对于最多 10 个选定模型,它会返回模型 ID、预估总工作负载成本、相对于所选最昂贵模型的节省百分比、能力和基准测试分数。可以使用精确 ID 或部分名称片段选择模型
每条提供商记录都包含提供商名称、模型数量、免费模型数量、提示词成本中位数、最大上下文长度以及其排名最高的基准测试模型 ID。这有助于比较各提供商的目录和能力
开源模型端点会返回仓库 ID、流水线标签、点赞数、下载量、许可证和趋势分数。这些字段有助于识别热门模型、了解其预期任务类别、查看许可证并比较社区关注度
不同的端点涵盖开源模型、数据集、交互式 Spaces 和研究论文。数据集记录包括 ID、点赞数、下载量和趋势评分;Spaces 包括 ID、SDK、点赞数和评分;论文包括标题、摘要、关键词、赞成票数、代码链接和 arXiv URL
响应使用包含 `ok`、`meta` 和 `data` 的 JSON 封装。`meta` 提供服务元数据、时间戳、延迟、缓存状态和结果数量。`data` 是一个记录数组,即使只有一项匹配也如此,从而使响应便于以一致的方式进行程序化处理。
处理 `data` 前检查 `ok`,然后检查 `meta.count`。空数组表示没有记录符合请求。由于某些字段对特定模型或资源不可用,单条记录可能会省略这些字段,因此客户端应谨慎处理可选字段,而不要假设每个字段都存在。