Skip to main content
GET
Looks up a prior chat completion or transcription by its id. The reply is metadata only: model, backend, cost, and usage. It never holds the request or the reply content. Send the same Authorization header that made the call. The lookup spends one call from your rate-limit budget. The MCP get_completion tool reads the same records.

Response

status and latency_ms come from the billing record. A lookup answered from the short-lived cache returns them as null.

Errors

See Error Codes for the Gateway-wide envelope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

completion_id
string
required

Response

Successful Response

Cost, token usage, and serving metadata for one gateway generation.

id
string
required

The completion id (chatcmpl-… or transcription-…).

model
string
required

The model id echoed on the response.

served_model_id
string | null

Canonical model id.

backend
string | null

Inference runtime for the request (vllm, paddleocr, …).

cost
number | null

Metered cost of the request in US dollars, or null when the request was not priced.

usage
Usage · object | null

Usage block: prompt/completion/total tokens for chat, or input_tokens/output_tokens/input_audio_seconds for transcription.

status
string | null

Billing status (completed / failed).

latency_ms
number | null

End-to-end latency in milliseconds.