钽TANDIU钽铥
API

TANDIU API

REST and MCP access to TANDIU data.

2026-10-17
AUTH

Authentication

Pro endpoints need an API key from a TANDIU Pro subscription. Send it as a bearer token:

curl -H "Authorization: Bearer tdu_your_key" \
  "https://www.tandiu.cn/api/v1/llm-price-history?model=deepseek&since=2026-09-01"

Base URL https://www.tandiu.cn/api/v1. Responses are JSON with as_of, source_url and a license field. Limit: 600 requests per minute per key. Errors: 401 missing/inactive key, 400 bad parameter, 429 rate limit.

ENDPOINTS

Endpoints

EndpointQuery parametersReturns
GET /api/v1/llm-price-historymodel, vendor, country, since, until, limitDaily official list-price history per model (USD/RMB per 1M tokens, source URL). Give model or vendor.
GET /api/v1/price-indexgroup (CN/US/ALL), sinceChain-linked LLM price index with the full series
GET /api/v1/price-changessince, min_change_pct, limitRecorded official price cuts/increases and models added to tracking
GET /api/v1/cloud-agentskind, query, limitCloud agents with specs, monthly prices and TANDIU test results
GET /api/v1/role-token-budgetquery, group, usage, limitMonthly token budget per job role
GET /api/v1/coding-pccategory, tier, queryComputers for AI coding agents
MCP

MCP with your key

The remote MCP server at https://www.tandiu.cn/mcp (Streamable HTTP) accepts the same key. With a key you get 600 requests per minute and the get_llm_price_history tool. Example client config:

{
  "mcpServers": {
    "tandiu": {
      "url": "https://www.tandiu.cn/mcp",
      "headers": { "Authorization": "Bearer tdu_your_key" }
    }
  }
}
FREE

Free access

Without a key you can use every page, the open feeds listed in openapi.json and llms.txt, and all MCP tools except price history, at 60 requests per minute. Please cite TANDIU (tandiu.cn) with the page URL and date.