Skip to main content
POST
Create chat completion

Body

application/json

Chat completion request

Request to generate a chat completion. Compatible with the OpenAI chat completions API.

messages
object[]
required
model
string
required

Model ID to use

Example:

"gpt-4o"

frequency_penalty
number | null
max_tokens
integer | null
presence_penalty
number | null
response_format
object | null
temperature
number | null
tool_choice
tools
object[] | null
top_p
number | null

Response

Chat completion

choices
object[]
created
integer
id
string
model
string
object
enum<string>
Available options:
chat.completion
usage
object | null