API・開発者向け
リアルタイムの LLM・GenAI 価格データを提供する、無料の読み取り専用 JSON エンドポイント — API key 不要、登録不要。
API key 不要・登録不要ベース URL
https://www.llmrates.aiエンドポイント
GET
/api/modelsモデルと現在価格を一覧・絞り込み(ページネーション対応)。
パラメータ: provider, modality, minContext, maxInputPrice, hasCaching, hasBatch, sort, order, page, pageSize, currency
GET
/api/models/{slug}1 つのモデルの詳細。直近の価格履歴と関連モデルを含みます。
GET
/api/providersアクティブな全プロバイダーとモデル数。
GET
/api/providers/{slug}1 つのプロバイダーと、その有効なモデル一覧・代表価格。
GET
/api/compare安定 id(sid)で最大 5 モデルを並べて比較。
パラメータ: models (comma-separated sids, max 5), currency
GET
/llms.txtLLM・AI エージェント向けに整形した、カタログのプレーンテキスト要約。
すべてのクエリパラメータは任意です。
クイックスタート
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
"provider": { "name": string, "slug": string, "providerType": 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",
"region": string | null,
"priceUnit": string, // currency the row was sourced in
"sourceUrl": string | null,
"verifiedAt": string | null // ISO 8601
}キャッシュと鮮度
各エンドポイントはエッジでキャッシュされ、価格スクレイプの直後に更新されるため、レスポンスは数分前のデータになることがあります。すべてのレスポンスに Cache-Control ヘッダーが含まれます。
クレジット表記
データは自由に利用できます。お役に立てた場合は、LLMRates.ai へのリンクをいただけると幸いです — データを公開し最新に保つ助けになります。
<a href="https://www.llmrates.ai" target="_blank" rel="noopener">
LLM & GenAI pricing data by LLMRates.ai
</a>リクエスト量は常識的な範囲でお願いします。大量利用や商用利用の場合はお問い合わせください。
