Skip to main content
POST
/
v1
/
chat
/
completions
Create chat completion
curl --request POST \
  --url https://api.example.com/v1/chat/completions \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-4o-mini",
  "messages": [
    {
      "role": "user",
      "content": "<string>"
    }
  ]
}
'
{}

Headers

organization_id
string

Unique tenancy ID to select applicable memories

Body

application/json
model
string
required

ID of the model to use

Example:

"gpt-4o-mini"

messages
object[]
required

Response

200 - application/json

Successful response

The response is of type object.