跳转到内容

列出模型

返回 Public Free Model APIs 的模型目录,以及每个条目的价格和能力元信息。独占端点只服务你启动它时指定的那个模型,这条路径由 vLLM 或 SGLang 自己应答——见独占端点

GET /v1/models Bearer 密钥或会话

也可以通过 /api/v1/models 访问。

无参数。

Terminal window
curl https://developer.amd.com.cn/radeon/api/v1/models \
-H "Authorization: Bearer $RADEON_API_KEY"

外层就是一个裸的 { "data": [...] },没有 object 字段。条目带的元信息比 OpenAI 的 model 对象丰富,但没有 owned_by,也没有 created

{
"data": [
{
"id": "DeepSeek-V4-Flash",
"name": "DeepSeek-V4-Flash",
"aliases": [],
"description": "Radeon DeepSeek V4 Flash served by the AMD GPU Cloud",
"family": "deepseek",
"architecture": {
"input_modalities": ["text"],
"output_modalities": ["text"],
"tokenizer": "GPT"
},
"top_provider": { "is_moderated": true },
"providers": [
{
"providerId": "radeon-deepseek",
"externalId": "DeepSeek-V4-Flash",
"pricing": {
"prompt": "0.00000014",
"completion": "0.00000028",
"input_cache_read": "0.0000000028"
},
"streaming": true,
"vision": false,
"tools": true,
"reasoning": true,
"stability": "stable"
}
],
"pricing": {
"prompt": "0.00000014",
"completion": "0.00000028",
"input_cache_read": "0.0000000028"
},
"context_length": 1048576,
"supported_parameters": [
"temperature", "max_tokens", "top_p",
"frequency_penalty", "presence_penalty",
"stream", "response_format", "tools"
],
"json_output": true,
"structured_outputs": true,
"free": true,
"stability": "stable"
}
]
}

把这个列表里的任意 id 用作聊天补全model 字段。

字段说明
id作为 model 发送的名字。
namedescriptionfamilyaliases展示用的元信息。
architecture输入输出模态,以及 tokenizer 家族。
providers提供这个模型的后端,每个都带自己的价格和能力标志。
pricing每 token 的美元价,字符串形式的小数——promptcompletion,支持前缀缓存的还有 input_cache_read
context_length上下文窗口上限,单位 token。
supported_parameters这个模型接受的请求参数。完整 schema 见聊天补全
json_outputstructured_outputs是否认 response_format
free调用是否按零成本计入你的每日额度。
stabilitystablebetaunstableexperimental

模型目录是会变的。模型会陆续上架和下架,所以运行时去解析列表,别把名字写死,也要处理昨天还能用的模型今天没了的情况。

目录对所有密钥都一样——它不按账户区分。

这个端点不占用你的并发额度,但每分钟限流仍然适用。调它很便宜,不过还是把结果缓存几分钟,别每次补全前都调一遍。

Token Factory 里每个模型卡片上渲染的就是这同一份元信息。