ID로 완료된 생성의 상세 메타데이터를 조회합니다. 이 엔드포인트를 사용하여 과거 요청의 비용과 사용량을 확인할 수 있습니다.Documentation Index
Fetch the complete documentation index at: https://docs.arouter.ai/llms.txt
Use this file to discover all available pages before exploring further.
엔드포인트
쿼리 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
id | string | 예 | 채팅 완성 응답의 id 필드에서 가져온 생성 ID |
요청 예시
응답 예시
응답 필드
| 필드 | 타입 | 설명 |
|---|---|---|
id | string | 생성 ID |
model | string | 응답을 생성한 모델 |
provider | string | 요청을 처리한 프로바이더 |
created_at | string | ISO 8601 타임스탬프 |
latency_ms | integer | 요청 총 지연 시간 (밀리초) |
usage.prompt_tokens | integer | 입력 토큰 수 |
usage.completion_tokens | integer | 출력 토큰 수 |
usage.total_tokens | integer | 총 토큰 수 |
usage.cost | number | 총 비용 (USD) |
usage.is_byok | boolean | 사용자 제공 key 사용 여부 |
참고 사항
- 생성 메타데이터는 일반적으로 요청 완료 후 몇 초 이내에 사용 가능합니다
- 생성 ID는 모든 채팅 완성 응답의
id필드에서 반환됩니다 - 이력 데이터는 90일 동안 보관됩니다