الانتقال إلى المحتوى الرئيسي
GET
/
api
/
models
Models
curl --request GET \
  --url https://api.cometapi.com/api/models \
  --header 'Authorization: Bearer <token>'
{
  "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
}

الحصول على قائمة النماذج

تسترجع هذه النقطة النهائية معلومات حول جميع النماذج المتاحة.
  • الطريقة: GET
  • عنوان URL: https://api.cometapi.com/api/models

التفويضات

Authorization
string
header
مطلوب

Bearer token authentication. Use your CometAPI key.

الاستجابة

200 - application/json

Successful Response

data
object[]
مطلوب

List containing model information. Each object represents an available model

success
boolean
مطلوب

Indicates whether the entire API request was successfully executed