API 與開發者
免費、唯讀的 JSON 介面,提供即時的 LLM 與 GenAI 價格資料 —— 無需 API key,無需註冊。
無需 API key · 無需註冊基礎 URL
https://www.llmrates.ai介面列表
列出並篩選模型及其目前價格,支援分頁。
參數: provider, modality, minContext, maxInputPrice, hasCaching, hasBatch, sort, order, page, pageSize, currency
/api/models/{slug}單一模型的完整資訊,含近期價格變動與相關模型。同一 slug 可能有多個通路在售,用 ?provider= 指定;不傳則回傳第一方通路。
參數: provider
所有使用中的供應商及其模型數量。
/api/providers/{slug}單一供應商及其使用中模型列表與代表價格。
面向 LLM 與 AI 代理的純文字目錄摘要。
首頁價格排行榜的 Markdown 版本——精選旗艦文字模型按綜合價格排序,附方法說明與引用格式。
所有查詢參數皆為選填。
AI構建者摘要
每日彙整 AI 研究者、創辦人與工程師的動態,提供結構化 JSON 和適合 LLM 直接讀取的 markdown。與上面一樣免驗證、開啟 CORS。
每則都帶一個穩定 id,同時用作頁面錨點和 RSS guid,所以同一個識別碼在 JSON、markdown、HTML 和 feed 裡通用。任意接口加 ?locale=:en(預設)、zh-Hans、zh-Hant、es、ja。
{
"date": string, // YYYY-MM-DD (UTC)
"locale": string,
"intro": string,
"item_count": number,
"items": [
{
"id": string, // stable; also the page anchor and RSS guid
"date": string,
"kind": "tweet" | "podcast" | "blog",
"source": string,
"author": string | null,
"role": string | null, // only when the source bio supports it
"headline": string,
"summary": string,
"topics": string[],
"url": string,
"urls": string[],
"permalink": string
}
],
"source": { // upstream attribution (MIT)
"name": "follow-builders",
"url": string,
"author": "zarazhangrui",
"license": "MIT"
},
"links": { "html": string, "markdown": string, "raw": string }
}快速開始
curl "https://www.llmrates.ai/api/models?provider=openai&sort=inputPrice&order=asc"Model 回應結構
{
"models": [
{
"id": number,
"name": string,
"slug": string,
"family": string | null,
"contextWindow": number | null,
"maxOutput": number | null,
"supportsTools": boolean,
"supportsBatch": boolean,
"supportsCaching": boolean,
"deprecatedAt": string | null, // ISO 8601
// providerType is the primary type; providerTypes lists every type the
// provider belongs to (direct | aggregator | cloud | coding_tool).
"provider": { "name": string, "slug": string, "providerType": string, "providerTypes": string[], "baseUrl": string | null },
"modalities": string[], // e.g. ["text", "image"]
"price": PriceRow | null, // headline price in the requested currency
"prices": PriceRow[] // every tier / region
}
],
"pagination": { "page": number, "pageSize": number, "total": number, "totalPages": number }
}
// PriceRow (per 1M tokens unless the field name says otherwise)
{
"inputPricePerMillion": number | null,
"outputPricePerMillion": number | null,
"cachedInputPricePerMillion": number | null,
"processingTier": "standard" | "batch" | "fast" | "off_peak",
"region": string | null,
"priceUnit": string, // currency the row was sourced in
"sourceUrl": string | null,
"verifiedAt": string | null // ISO 8601
}快取與時效
每個介面都經過邊緣快取並頻繁刷新,因此回應資料可能有幾分鐘的延遲。每個回應都包含 Cache-Control 標頭。
免費使用
公開 API 對輕量使用、研究、原型、內部工具與開源專案免費開放。歡迎署名。
如需大流量使用、商業再散布、生產環境整合、SLA、歷史資料或客製化監控,請以取得商業方案。
需要定時拉全量?請改取 GitHub 上每日更新的 JSON 和 CSV。同一份資料,一個檔案,而且完全不碰資料庫。
不作擔保
API 按現狀提供,不對準確性、完整性或可用性作出擔保。這裡的每個價格都是供應商已發布內容的副本,可能過期,也可能被讀錯——拿它計費或做預算之前,請到供應商自己的頁面確認。完整條款。
署名
若資料對你的專案有幫助,歡迎連結回 LLMRates.ai —— 這有助於資料持續開放與更新。
<a href="https://www.llmrates.ai" target="_blank" rel="noopener">
LLM & GenAI pricing data by LLMRates.ai
</a>開放資料集
比起 API 更想要檔案?同樣的資料每天以 JSON 與 CSV 形式發布在我們 GitHub 上的開放資料集中(CC BY 4.0)。
