v27

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-2193427579.9 KB
Inference

List chat completions.

List chat completions.

get/v1/chat/completions

Query parameters

afterstring nullable

The ID of the last chat completion to return.

The ID of the last chat completion to return.

limitinteger nullable

The maximum number of chat completions to return.

The maximum number of chat completions to return.

modelstring nullable

The model to filter by.

The model to filter by.

order'asc' | 'desc'

Sort order for paginated responses.

The order to sort the chat completions by: "asc" or "desc". Defaults to "desc".

Response

A ListOpenAIChatCompletionResponse.

has_moreboolean required

Whether there are more completions available beyond this list.

first_idstring required

ID of the first completion in this list.

last_idstring required

ID of the last completion in this list.

object'list'

Must be 'list' to identify this as a list response.