一句话发现所有能力

每个接口都是自描述的:只用一次 GET /api/v1,你就能拿到全部端点、参数、数据结构和示例。

curl -s https://aicoder.com/api/v1
📖

接口自描述

入口点返回所有可用端点、参数、字段含义与例子,Agent 无需阅读文档。

🌐

开放 CORS

Access-Control-Allow-Origin: *,浏览器端脚本可直连。

🔓

无需鉴权

完全公开只读,没有 API Key、没有速率限制。

🔄

数据每天更新

定价每天核实,榜单每周同步官方源,Cache-Control 30 分钟。

📚 接口清单

发现与入口

GET/api/v1Agent 入口 —— 一次调用列出所有端点、字段说明和示例代码
curl -s https://aicoder.com/api/v1 | jq .
GET/llms.txtllms.txt 站点索引,专为 LLM 阅读的 Markdown
curl -s https://aicoder.com/llms.txt
GET/.well-known/openapi.jsonOpenAPI 3.1 规范,可导入 Postman / SwaggerUI
curl -s https://aicoder.com/.well-known/openapi.json
GET/.well-known/ai-plugin.jsonChatGPT/OpenAI plugin 清单
curl -s https://aicoder.com/.well-known/ai-plugin.json

模型 & 定价

GET/api/v1/models列出全部模型(可按 vendor/status/tag 过滤,分页)

示例参数:?vendor=Anthropic&limit=20

curl -s 'https://aicoder.com/api/v1/models?vendor=Anthropic' | jq '.models[].name'
GET/api/v1/models/{id}按 id 获取单个模型的完整信息
curl -s https://aicoder.com/api/v1/models/anthropic-claude-opus-4-8
GET/api/v1/pricing仅返回定价字段,默认按输入价从高到低

示例参数:?sort=input_price&dir=desc

curl -s 'https://aicoder.com/api/v1/pricing?sort=input_price&dir=desc' | jq '.models[:5]'

基准榜单

GET/api/v1/leaderboards所有 6 大榜单元信息 + Top-5 快照
curl -s https://aicoder.com/api/v1/leaderboards | jq .boards
GET/api/v1/leaderboards/{board}单个榜单的完整排名(原生指标 + 归一化分)

示例参数:board ∈ { lmarena, artificial_analysis, livebench, aider_polyglot, livecodebench, evalplus }

curl -s https://aicoder.com/api/v1/leaderboards/lmarena | jq '.entries[:5]'
GET/api/v1/leaderboards/model/{id}单个模型在全部榜单上的排名一览
curl -s https://aicoder.com/api/v1/leaderboards/model/anthropic-claude-opus-4-8

跨资源搜索

GET/api/v1/search跨模型/榜单/套餐的模糊搜索

示例参数:?q=claude

curl -s 'https://aicoder.com/api/v1/search?q=claude'

订阅套餐

GET/api/plans订阅套餐(海外 / 国内可分区)

示例参数:?region=overseas

curl -s 'https://aicoder.com/api/plans?region=overseas' | jq '.plans[].name'

🚀 快速上手代码

# Fetch every LMArena board entry
curl -s https://aicoder.com/api/v1/leaderboards/lmarena \
  | jq '.entries[] | select(.rank <= 5) | { rank, model_id, native }'

# Look up one model across every board
curl -s https://aicoder.com/api/v1/leaderboards/model/anthropic-claude-opus-4-8 \
  | jq '.boards'

# Cheapest 5 models
curl -s 'https://aicoder.com/api/v1/pricing?sort=input_price&dir=asc' \
  | jq '.models[:5] | .[] | { name, input_price, output_price }'

🔌 集成方式

ChatGPT / OpenAI plugin

把本站直接注册为 ChatGPT 插件。

/.well-known/ai-plugin.json ↗

Claude / MCP

Claude 或 MCP 服务器可直接消费 /api/v1 入口。

/api/v1 ↗

Cursor / Copilot

Cursor / GitHub Copilot 等 IDE Agent 可通过 llms.txt 一次拉取索引。

/llms.txt ↗

Custom script

任意语言脚本按 OpenAPI 生成客户端。

OpenAPI 3.1 spec ↗