POST
/
chat-completions
curl --request POST \
  --url https://api.buildr.bot/chat-completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "How do I swap 0.1 BNB to MUBARAK?"
    }
  ],
  "model": "gpt-4",
  "context": "user wants to swap tokens"
}'
{
  "reply": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Successful chat response

The response is of type object.