跳转到主要内容
GET
Get Models

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求头

x-provider-route
string
默认值:cost

上游速度cost、stable、fast

查询参数

type
string

按模型类型筛选,省略返回全部。支持 text/image/video/music/embedding,忽略大小写和周围空格。多个类型逗号分隔或重复 type,未知或空值返回 400。

Minimum string length: 1
示例:

"text"

"image"

"video"

"music"

"embedding"

"image,video"

响应

当前可调用模型目录;示例能力值仅用于展示结构,实际以返回值为准。

GET /anthropic/v1/models 的 HTTP 200 响应;GET /v1/models 携带 anthropic-version 时也使用此结构。模型范围与 OpenAI 列表相同,保留 Anthropic 游标分页。

data
object[]
必填
first_id
string | null
必填

当前页第一个模型 ID;当前页为空时为 null。

has_more
boolean
必填

是否还有其他页。向前查询时用 last_id 作为下次 after_id;使用 before_id 时按对应方向继续查询。

last_id
string | null
必填

当前页最后一个模型 ID;当前页为空时为 null。