跳转到主要内容 跳转到页脚
Bricks Templates
  • 首页
  • 模型列表
  • 文档
进入API中转站

入门

1
  • 快速接入

默拉APi

9
  • 聊天对话
  • 音频(Audio)
  • 自动补全
  • 嵌入向量
  • 微调模型
  • 创建图像
  • 模型列表
  • 上传文件
  • 内容审查
  • 首页
  • 文档
  • 默拉API中转站
  • 默拉APi
  • 模型列表

模型列表

GET 列出模型 #

GET https://api.mygptlife.com/v1/models

列出当前可用的型号,并提供每个型号的基本信息,例如所有者和可用性。

请求参数 #

名称位置类型必选说明
Authorizationheaderstring否none

返回示例

List models

"{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"model-id-0\",\n      \"object\": \"model\",\n      \"created\": 1686935002,\n      \"owned_by\": \"organization-owner\"\n    },\n    {\n      \"id\": \"model-id-1\",\n      \"object\": \"model\",\n      \"created\": 1686935002,\n      \"owned_by\": \"organization-owner\",\n    },\n    {\n      \"id\": \"model-id-2\",\n      \"object\": \"model\",\n      \"created\": 1686935002,\n      \"owned_by\": \"openai\"\n    },\n  ],\n  \"object\": \"list\"\n}"

返回结果 #

状态码状态码含义说明数据模型
200OK(opens new window)List modelsInline

返回数据结构 #

状态码 200

名称类型必选约束中文名说明
» objectstringtruenonenone
» data[object]truenonenone
»» idstringtruenonenone
»» objectstringtruenonenone
»» createdintegertruenonenone
»» owned_bystringtruenonenone

GET 检索模型 #

GET https://api.mygptlife.com/models/{modelid}

检索模型实例,提供有关模型的基本信息,例如所有者和权限。

请求参数 #

名称位置类型必选说明
modelidpathstring是用于此请求的模型的 ID
Authorizationheaderstring否none

返回示例

Retrieve model

{
  "id": "gpt-3.5-turbo-instruct",
  "object": "model",
  "created": 1686935002,
  "owned_by": "openai"
}

返回结果 #

状态码状态码含义说明数据模型
200OK(opens new window)Retrieve modelInline

返回数据结构 #

状态码 200

名称类型必选约束中文名说明
» idstringtruenonenone
» objectstringtruenonenone
» createdintegertruenonenone
» owned_bystringtruenonenone

GET 删除微调模型 #

GET https://api.mygptlife.com/v1/models/{model}

删除微调模型。您必须在组织中具有所有者角色才能删除模型。

请求参数 #

名称位置类型必选说明
modelpathstring是要删除的模型
Authorizationheaderstring否none

详细说明 #

model: 要删除的模型

返回示例

成功

{
  "id": "ft:gpt-3.5-turbo:acemeco:suffix:abc123",
  "object": "model",
  "deleted": true
}

返回结果 #

状态码状态码含义说明数据模型
200OK(opens new window)成功Inline

返回数据结构 #

状态码 200

名称类型必选约束中文名说明
» idstringtruenonenone
» objectstringtruenonenone
» deletedbooleantruenonenone
您的感觉是什么
还有问题?我们能帮忙吗?

需要什么帮助?

更新 2024-06-04
创建图像上传文件
内容目录
  • GET 列出模型
    • 请求参数
    • 返回结果
    • 返回数据结构
  • GET 检索模型
    • 请求参数
    • 返回结果
    • 返回数据结构
  • GET 删除微调模型
    • 请求参数
      • 详细说明
    • 返回结果
    • 返回数据结构
© 2020-2024 默拉智能API中转站