GET /v1/models lists the models your key can call right now. One listing works with both the
OpenAI and the Anthropic SDK.
What is listed
- Only models that can be served at this moment. A model with no working route is left out.
- Only models your key may use, if the key has an allow-list.
- Your organisation’s saved combos, as
combo/<name>.
Prices are your own: in your balance currency, at your organisation’s rate.
Example
curl https://api.yunshurouter.com/v1/models \
-H "Authorization: Bearer $YUNSHU_API_KEY"
from openai import OpenAI
client = OpenAI(base_url="https://api.yunshurouter.com/v1", api_key="tq-...")
for model in client.models.list():
print(model.id)
import anthropic
client = anthropic.Anthropic(base_url="https://api.yunshurouter.com", api_key="tq-...")
for model in client.models.list():
print(model.id, model.display_name)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.yunshurouter.com/v1", apiKey: "tq-..." });
for await (const model of client.models.list()) {
console.log(model.id);
}
Response
An example. The values are illustrative; call the endpoint for current models, limits and prices.
{
"object": "list",
"data": [
{
"id": "deepseek-v4-pro",
"object": "model",
"type": "model",
"created": 1735689600,
"created_at": "2025-01-01T00:00:00Z",
"owned_by": "yunshu",
"display_name": "DeepSeek V4 Pro",
"tier": "balanced",
"context_window": 131072,
"max_output_tokens": 32768,
"capabilities": {
"tools": true,
"reasoning": true,
"streaming": true,
"prompt_caching": true
},
"pricing": {
"currency": "USD",
"input_per_million": "0.9307",
"output_per_million": "2.4295",
"cached_input_per_million": "0.0101"
},
"fallbacks": null
}
],
"has_more": false,
"first_id": "deepseek-v4-pro",
"last_id": "deepseek-v4-pro"
}
Fields
| Field | Meaning |
|---|---|
id |
The model ID to send as model |
object, type |
Always "model". object is OpenAI’s name, type is Anthropic’s |
created, created_ |
A fixed date (2025-01-01) on every model. Both SDKs require the field; it is not a release date |
display_ |
Human-readable name |
tier |
Model tier; combo for a saved combo |
context_ |
Maximum tokens of input plus output |
max_ |
Most tokens the model will write in one answer. A larger max_ is lowered to this |
capabilities.tools |
Accepts tool definitions |
capabilities.reasoning |
Has a reasoning on/off switch |
capabilities.streaming |
Always true |
capabilities.prompt_ |
A cached-input price exists on at least one route |
pricing.*_ |
Your price per million tokens, as a decimal string, in pricing.currency |
fallbacks |
For a combo: the models it tries, in order. null otherwise |
has_, first_, last_ |
Anthropic paging fields. The list is never paged, so has_ is always false |
How prices are shown
Each price line is the lowest rate for that line across the routes that can serve the model,
off-peak. The router picks a route per request, so an input-heavy request can get the lower
input rate and an output-heavy one the lower output rate. Peak-hour requests can cost more where
a route prices by time of day. The exact price of any request is in
GET /v1/generation.
A combo is listed at the price of its first model, the one that answers unless it cannot.
Public catalogue without a key
GET /catalog/models needs no key. It is the data behind the /models page:
curl "https://api.yunshurouter.com/catalog/models?currency=USD&hours=24"
| Parameter | Values |
|---|---|
currency |
USD (default), CNY or SGD |
hours |
Window for the live stats, 1 to 168. Default 24 |
Prices here are the standard rate. An organisation with its own rate sees its prices on
GET /v1/models. Each entry adds description, routes (how many routes can serve it) and
stats (live performance for the window). This endpoint is limited per IP address.
The models today
| Model ID | Context window |
|---|---|
deepseek-v4.1-flash |
128K |
deepseek-v4-pro |
128K |
glm-5.3 |
128K |
kimi-k3 |
256K |
All four support streaming, tool calls and the reasoning switch.