跳轉到主要內容

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