Skip to main content
POST
Create a chat completion

Authorizations

Authorization
string
header
required

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

Body

application/json
stream
boolean
required

Whether to use stream mode (simulates typing effect).

messages
object[]
required

Context of the conversation.

model
string
required

The model to use (e.g., gpt-4o-mini).

Response

200 - application/json

Successful response

id
string

Unique ID of the response.

object
string

Type of the response object.

created
integer

Timestamp of the response creation.

choices
object[]