Skip to Content

Retrieve a chat completion

Returns a completion that was created with store: true or with Prefer: respond-async. A background completion answers 202 until it finishes. Pass ?stream=true to attach to its live stream, and send Last-Event-ID to resume after that event.

GET
/chat/completions/{completion_id}

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

completion_id*string

The completion id, e.g. chatcmpl-7f3c1a.

Query Parameters

stream?boolean

Attach to the live stream of a background completion.

Response Body

The chat completion object.

curl -X GET 'https://api.munito.ai/inference/v1/chat/completions/string'
Example Response
Empty