모델 목록 획득

엔드포인트: GET /v1/models
  • 사용자가 로그인한 경우 사용자 그룹의 사용 가능한 목록을 가져오고, 사용자가 로그인하지 않은 경우 default 그룹의 사용 가능한 목록을 가져옵니다.
  • header에 Authorization 필드가 있으면 key에 해당하는 token 하위에 구성된 모델 목록을 조회합니다.
응답 예제:
{
  "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
    }
  ]
}

응답 결과

상태 코드상태 코드 의미설명데이터 모델
200OKnoneInline

응답 데이터 구조

상태 코드 200
이름타입필수제약중국어명설명
» data[object]truenonenone
»» idstringtruenone모델 IDnone
»» objectstringtruenonemodelnone
»» createdintegertruenone생성 시간none
»» owned_bystringtruenone개발자none
»» 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
»» rootstringtruenone모델명none
»» parentnulltruenone부모 노드none

모델 정보 획득

엔드포인트: GET /v1/models/:model

요청 매개변수

이름위치타입필수설명
modelpathstring모델 ID
응답 예제:
200 Response
{
  "id": "string",
  "object": "string",
  "created": 0,
  "owned_by": "string",
  "permission": [
    {
      "id": "string",
      "object": "string",
      "created": 0,
      "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
}

응답 결과

상태 코드상태 코드 의미설명데이터 모델
200OKnoneInline

응답 데이터 구조

상태 코드 200
이름타입필수제약중국어명설명
idstringtruenone모델 IDnone
objectstringtruenonemodelnone
createdintegertruenone생성 시간none
owned_bystringtruenone개발자none
permission[object]truenonenone
» idstringfalsenonenone
» objectstringfalsenonenone
» createdintegerfalsenonenone
» allow_create_enginebooleanfalsenonenone
» allow_samplingbooleanfalsenonenone
» allow_logprobsbooleanfalsenonenone
» allow_search_indicesbooleanfalsenonenone
» allow_viewbooleanfalsenonenone
» allow_fine_tuningbooleanfalsenonenone
» organizationstringfalsenonenone
» groupnullfalsenonenone
» is_blockingbooleanfalsenonenone
rootstringtruenone모델명none
parentnulltruenone부모 노드none