メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt

Use this file to discover all available pages before exploring further.

レスポンス

object
string
常に list です。
data
array
モデルオブジェクトの配列です。各モデルには以下が含まれます:
  • id (string): モデル識別子
  • object (string): model
  • created (integer): 作成タイムスタンプ
  • owned_by (string): モデルプロバイダー
  • lemondata.category (string): 公開モデルカテゴリ
  • lemondata.pricing_unit (string or null): 利用可能な場合の公開料金単位
  • lemondata.capability_flags (object or null): 公開されている機能サマリー
  • lemondata.supported_operations (array or null): モデルが公開サポートする非チャット操作
  • lemondata.pricing_provenance (object or null): 公開料金の出典メタデータ
  • lemondata.public_contract_summary (object or null): public_operationsrequest_endpoint のみを含む軽量な非チャット発見用サマリー
  • lemondata.agent_preferences (object): recommended_for がある場合のみ返されます
GET /v1/models は発見向けに最適化されています。capability_flagspricing_provenance、完全な public_contract のような詳細専用メタデータは GET /v1/models/{model} にあります。

クエリパラメータ

category
string
任意の公開カテゴリフィルタです。chatimagevideoaudiottssttmusic3dembeddingreranktranslation をサポートします。
任意の非チャット推奨シーンです。imagevideomusic3dttssttembeddingreranktranslation をサポートします。
provider
string
openaianthropicgoogledeepseek などの任意のプロバイダーフィルタです。
tag
string
chatimagevideoembeddingtranslation などの任意のモデルタグフィルタです。
recommended_for がある場合、/v1/models は直近のキャッシュ済み 24 時間成功率スナップショットに基づいて非チャットモデルを並べ替えます。status = "insufficient_samples" のモデルも表示されますが、スコア付きモデルの後ろに並びます。
curl "https://api.tokenlab.sh/v1/models" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "object": "list",
  "data": [
    {
      "id": "gpt-5.4",
      "object": "model",
      "created": 1706000000,
      "owned_by": "openai"
    },
    {
      "id": "claude-sonnet-4-6",
      "object": "model",
      "created": 1706000000,
      "owned_by": "anthropic"
    },
    {
      "id": "gemini-2.5-flash",
      "object": "model",
      "created": 1706000000,
      "owned_by": "google"
    }
  ]
}

プロバイダーでのフィルタリング

# Get all OpenAI models
openai_models = [m for m in models.data if m.owned_by == "openai"]

# Get all Anthropic models
anthropic_models = [m for m in models.data if m.owned_by == "anthropic"]

モデルカテゴリ

プロバイダー例のモデル
openaigpt-5.4, gpt-5.4-mini, gpt-5-mini, gpt-4o, dall-e-3
anthropicclaude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5
googlegemini-3-pro-preview, gemini-3-flash-preview, gemini-2.5-pro
deepseekdeepseek-r1, deepseek-v3-2
xaigrok-4.1
moonshotkimi-k2.5
minimaxminimax-m2.1
metallama-3.3-70b, llama-3.1-405b