API・開発者向け

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

API key 不要・登録不要

ベース URL

https://www.llmrates.ai

エンドポイント

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

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

GET/api/models/{slug}

1 モデルの詳細情報(直近の価格変動と関連モデルを含む)。同じ slug を複数のプロバイダーが扱う場合があります。?provider= で指定でき、省略時はファーストパーティの提供分を返します。

パラメータ: provider

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

GET/api/providers/{slug}

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

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

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

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

パラメータ: type, format

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

トップページの料金ランキングの Markdown 版 — 厳選したフラッグシップテキストモデルを総合価格順に掲載。手法と引用形式付き。

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

AI Builders Digest

AI の研究者・創業者・エンジニアの発言を毎日まとめ、構造化 JSON と LLM がそのまま読める markdown で提供します。上記と同じく認証不要・CORS 対応です。

最新のダイジェスト(markdown)。エージェントにとってはこの 1 つの URL が連携のすべてです。

パラメータ: locale

最新の公開ダイジェスト(構造化 JSON)。

パラメータ: locale

各項目には安定した id が付き、ページのアンカーと RSS の guid も兼ねます。同じ識別子が JSON・markdown・HTML・フィードで通用します。任意のエンドポイントに ?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 をご利用ください。同じデータが 1 ファイルで、データベースにも一切触れません。

保証の否認

API は現状有姿で提供され、正確性・完全性・可用性のいずれも保証しません。ここの価格はいずれもベンダーが公開した内容の写しであり、古い場合も読み違えている場合もあります。請求や予算の根拠にする前に、ベンダー自身のページでご確認ください。利用規約全文

クレジット表記

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

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

オープンデータセット

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