Chuyển đến nội dung chính
GET
/
api
/
models
Models
curl --request GET \
  --url https://api.cometapi.com/api/models
{
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "created": 123,
      "owned_by": "<string>",
      "permission": [
        {
          "id": "<string>",
          "object": "<string>",
          "created": 123,
          "allow_create_engine": true,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": true,
          "organization": "<string>",
          "group": null,
          "is_blocking": true
        }
      ],
      "root": "<string>",
      "parent": null
    }
  ],
  "success": true
}

Lấy danh sách model

Endpoint này truy xuất thông tin về tất cả các model hiện có. Đây là một endpoint danh mục công khai và không yêu cầu header Authorization.
  • Phương thức: GET
  • URL: https://api.cometapi.com/api/models

Phản hồi

200 - application/json

Successful Response

data
object[]
bắt buộc

List containing model information. Each object represents an available model

success
boolean
bắt buộc

Indicates whether the entire API request was successfully executed