Skip to main content
POST
AI Completion

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Body

application/json

Completion request

messages
object[]
required
Minimum array length: 1
workspace_id
string
required
max_tokens
integer
Required range: 1 <= x <= 16384
model
string
stream
boolean
temperature
number
Required range: 0 <= x <= 2

Response

Completion response

content
string
finish_reason
string
input_tokens
integer
model
string
output_tokens
integer