Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer token authentication using JWT (JSON Web Token). Include the token in the Authorization header as: Authorization: Bearer <token>

Body

application/json
messages
object[]
required

A list of messages comprising the conversation so far

Minimum array length: 1
model
enum<string>
default:PET_ADVISOR_1

ID of the model to use

Available options:
PET_ADVISOR_1,
PET_ADVISOR_TURBO
stream
boolean
default:true

If true, partial message deltas will be sent via Server-Sent Events

maxTokens
integer
default:1024

Maximum number of tokens to generate

Required range: 1 <= x <= 4096
temperature
number
default:1

Sampling temperature between 0 and 2

Required range: 0 <= x <= 2

Response

Successful response. Format depends on the stream parameter.

Streaming response (when stream=true). Each line contains a JSON chunk prefixed with 'data: '