Skip to main content
POST
Chat with conversation history

Authorizations

x-api-key
string
header
required

Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:

Body

application/json
messages
object[]
required

Conversation history

Example:
model
string

Model ID

Example:

"openai/gpt-4o-mini"

temperature
number

Temperature (0-2)

Example:

0.7

maxTokens
number

Max tokens in response

Example:

1024

systemPrompt
string

System prompt (prepended if no system message in history)

Example:

"Answer in one sentence."

Response

200 - application/json

Assistant reply text

success
boolean
required

Success status

Example:

true

message
string
required

Success message

Example:

"Operation completed successfully"

data
string
required

Response data

Example:

""