Api reference
Model list
A public model catalog and pricing query endpoint; no authentication required.
GET /api/models
Public endpoint; no authentication required. Returns an array of platform models, sourced from the same data as Models.
Main response fields:
| Field | Description |
|---|---|
| name | Model name—the model value in chat/completions requests |
| vendor | Vendor |
| description | Model summary |
| tags | Array of capability tags |
| contextLength | Context length description |
| category | Model category |
| badge | Badge (e.g. "New", "Limited-time discount"); null if none |
| inputPrice / outputPrice | Input / output price, in "yuan per million tokens" |
| cachedInputPrice / cacheWritePrice | Cached-hit / cache-write price; falls back to the input price if not configured |
| originalInputPrice / originalOutputPrice | Struck-through original prices, shown for discounts |
| billingMode | Billing mode: TOKEN per token; PER_CALL per call (unitPrice = yuan/call); PER_CHARACTER per character (unitPrice = yuan/10k characters) |
| unitPrice | Unit price for per-call / per-character modes |
| status | LIVE means callable; other values mean not yet launched (marked "Coming soon" in Models) |
GET /api/models/{name}
Returns details for a single model, with the same fields as above.
- Returns
404if the model doesn't exist.