API・開発者向け

リアルタイムの LLM・GenAI 価格データを提供する、無料の読み取り専用 JSON エンドポイント — API key 不要、登録不要。

API key 不要・登録不要

ベース URL

https://llmrates.ai

エンドポイント

モデルと現在価格を一覧・絞り込み(ページネーション対応)。

パラメータ: provider, modality, minContext, maxInputPrice, hasCaching, hasBatch, sort, order, page, pageSize, currency

GET/api/models/{slug}

1 つのモデルの詳細。直近の価格履歴と関連モデルを含みます。

アクティブな全プロバイダーとモデル数。

GET/api/providers/{slug}

1 つのプロバイダーと、その有効なモデル一覧・代表価格。

安定 id(sid)で最大 5 モデルを並べて比較。

パラメータ: models (comma-separated sids, max 5), currency

データセット全体のエクスポート — 全モデル・全プロバイダーと全価格ティア。?type=models|providers と ?format=csv を追加できます。

パラメータ: type, format

LLM・AI エージェント向けに整形した、カタログのプレーンテキスト要約。

すべてのクエリパラメータは任意です。

クイックスタート

curl "https://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 ヘッダーが含まれます。

無料での利用

公開 API は、軽度の利用、研究、プロトタイプ、社内ツール、オープンソースプロジェクトでは無料でご利用いただけます。クレジット表記をいただけると幸いです。

大量利用、商用での再配布、本番環境への組み込み、SLA、過去データ、カスタムモニタリングをご希望の場合は、商用プランについて

クレジット表記

データがお役に立てた場合は、LLMRates.ai へのリンクをいただけると幸いです — データを公開し最新に保つ助けになります。

<a href="https://llmrates.ai" target="_blank" rel="noopener">
  LLM &amp; GenAI pricing data by LLMRates.ai
</a>

オープンデータセット

API よりファイルが良いですか?同じデータを毎日 JSON と CSV で、GitHub 上のオープンデータセット(CC BY 4.0)として公開しています。