基本信息

Action:/models

Method: GET

Content-Type:application/json

请求参数

响应参数

  • data 为对象数组类型,用于描述模型信息,其相关参数说明:

    参数名 类型 描述 备注

    id

    字符串

    模型的 ID

    推理接口中 model 字段使用

    object

    字符串

    API 类型

    值为 model

    owned_by

    字符串

    模型的所有者

    值为 coreshub

    permission

    数组

    权限

    预留

请求示例

curl -i -X GET \
 'https://openapi.coreshub.cn/v1/models'

响应示例

{
    "object": "list",
    "data": [{
        "id": "Qwen2-7B-Instruct",
        "object": "model",
        "owned_by": "coreshub",
        "permission": []
    },
    {
        "id": "Llama-3.1-70B-Instruct",
        "object": "model",
        "owned_by": "coreshub",
        "permission": []
    },
    {
        "id": "CosyVoice-300M",
        "object": "model",
        "owned_by": "coreshub",
        "permission": []
    },
    {
        "id": "SenseVoiceSmall",
        "object": "model",
        "owned_by": "coreshub",
        "permission": []
    }]
}