Create Chat Completion

POST/v1/chat/completions
Create a model response using the OpenAI-compatible Chat Completions format.

Request Body

application/json
messages:requiredarray

Messages that make up the conversation.

model:requiredstring

Model identifier used for this request.

Allowedgpt-5.5
max_completion_tokens:optionalnumber

Maximum number of tokens allowed in the completion.

Example1024
reasoning_effort:optionalstring

Controls the amount of reasoning performed by supported models.

Allowednoneminimallowmediumhighxhighmax
Examplemedium
temperature:optionalnumber

Sampling temperature used to control response randomness.

Response

200

A successful request returns a JSON response. The complete example is shown in the code panel.