Endpoint: GET /v1/models

  • With user log-in, retrieves available models for the user’s group; without login, retrieves available models for the default group.
  • If an Authorization field exists in the header, the system queries the model list configured for the corresponding token.

Response Example:

{
  "data": [
    {
      "id": "gpt-4o-mini",
      "object": "model",
      "created": 1626777600,
      "owned_by": "OpenAI",
      "permission": [
        {
          "id": "modelperm-LwHkVFn8AcMItP432fKKDIKJ",
          "object": "model_permission",
          "created": 1626777600,
          "allow_create_engine": true,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-4o-mini",
      "parent": null
    }
  ]
}

Response

Status CodeDescriptionDetailsData Model
200OKnoneInline

Response Data Structure

Status Code 200

NameTypeRequiredConstraintsChinese NameDescription
» data[object]truenonenone
»» idstringtruenoneModel IDnone
»» objectstringtruenonemodelnone
»» createdintegertruenoneCreation Timenone
»» owned_bystringtruenoneDevelopernone
»» permission[object]¦nulltruenonenone
»»» idstringtruenonenone
»»» objectstringtruenonenone
»»» createdintegertruenonenone
»»» allow_create_enginebooleantruenonenone
»»» allow_samplingbooleantruenonenone
»»» allow_logprobsbooleantruenonenone
»»» allow_search_indicesbooleantruenonenone
»»» allow_viewbooleantruenonenone
»»» allow_fine_tuningbooleantruenonenone
»»» organizationstringtruenonenone
»»» groupnulltruenonenone
»»» is_blockingbooleantruenonenone
»» rootstringtruenoneModel Namenone
»» parentnulltruenoneParent Nodenone