API 참조

저장된 채팅 결과 조회

GET/v1/chat/completions/{completion_id}

동일한 API Key만 store=true로 저장한 완전하고 정산된 결과를 7일 동안 조회할 수 있습니다. 빈 조회는 미실행의 증거가 아닙니다. 자동 환불이나 재전송을 하지 마세요. store와 metadata는 멱등성을 보장하지 않습니다.

인증과 권한

현재 GloopAPI 키를 사용하세요. 사용 가능한 모델, 기능과 권한은 해당 카탈로그와 엔드포인트 문서에 따라 달라집니다.

Authorization: Bearer $GLOOP_API_KEY

인증 방식: BearerAuth

요청

경로 매개변수

응답과 오류

HTTP 200

성공

application/json

유형
object
추가 속성
false
  • idstring선택 사항
  • objectstring선택 사항
  • createdinteger선택 사항
  • modelstring선택 사항
  • choicesarray선택 사항
    choices 하위 필드(1)
    • []object선택 사항
      추가 속성
      false
      [] 하위 필드(3)
      • indexinteger선택 사항
      • messageobject선택 사항
        추가 속성
        false
        message 하위 필드(5)
        • rolestring필수
          열거형
          ["assistant"]
        • contentstring선택 사항null 허용

          텍스트 응답 콘텐츠입니다.

        • tool_callsarray선택 사항
          tool_calls 하위 필드(1)
          • []object선택 사항
            [] 하위 필드(3)
            • idstring선택 사항
            • typestring선택 사항
            • functionobject선택 사항
              function 하위 필드(2)
        • reasoning_contentstring선택 사항null 허용
        • refusalstring선택 사항null 허용
      • finish_reasonstring선택 사항
        열거형
        ["stop","length","tool_calls","content_filter"]
  • usageobject선택 사항
    usage 하위 필드(5)
  • system_fingerprintstring선택 사항
  • metadataobject선택 사항null 허용
    metadata 하위 필드(1)
  • gloop_billingobject선택 사항

    GloopAPI extension: stored response GET/list queries include the caller’s finalized USD charge. This is not an OpenAI standard field and generation responses may omit it. Missing billing does not mean zero cost.

    gloop_billing 하위 필드(3)
    • statusstring필수
      열거형
      ["settled"]
    • currencystring필수
      열거형
      ["USD"]
    • final_amountstring필수

      Decimal string of the caller’s finalized USD charge.

HTTP 400

잘못된 매개변수

application/json

유형
object
필수 필드
error

HTTP 401

유효하지 않은 Key

application/json

유형
object
필수 필드
error

HTTP 404

결과가 없거나 삭제·만료되었거나 아직 제공할 수 없습니다

application/json

유형
object
필수 필드
error

HTTP 503

일시적으로 사용할 수 없음

application/json

유형
object
필수 필드
error
개발할 준비가 되셨나요? 열기: 콘솔 API 키를 생성하거나 살펴보기: 기능.