跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.lemondata.cc/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.lemondata.cc/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