典名词元典名词元首页
API 文档三方工具教程
AI 模型接口公共接口

获取模型列表(openAi)

GET/api/v1/models

Header Parameters

Authorization*string

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

Response Body

application/json

成功

TypeScript Definitions

Use the response body type in TypeScript.

object*string
data*array<object>
[]?object
id*string

调用名

object*string
created*integer

创建时间

owned_by*string

属于

first_id*string

第一个模型

last_id*string

最后一个模型

has_more*boolean

存在更多

curl -X GET "https://api.aa.com.cn/api/v1/models" \  -H "Authorization: string"
{
  "object": "string",
  "data": [
    {
      "id": "string",
      "object": "string",
      "created": 0,
      "owned_by": "string"
    }
  ],
  "first_id": "string",
  "last_id": "string",
  "has_more": true
}