Skip to main content
POST
Start Chat

Authorizations

X-Api-Key
string
header
required

Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".

Body

application/json
sessionId
string

Session ID. Omit it to create a new session.

messages
object[]

User messages or tool-approval responses submitted in this request. Required for a new session.

model
string
default:auto

Model. Pass auto or a specific model ID. The default is auto.

effort
enum<string>

Reasoning effort. The request fails when the model does not support the selected effort.

Available options:
none,
low,
medium,
high,
xhigh,
max
timezone
string

User IANA time zone, for example Asia/Shanghai.

Response

Native third-party protocol response or SSE data, not wrapped in the AiToEarn common response envelope.

Native third-party protocol response, not wrapped in the AiToEarn common response envelope.

Last modified on September 24, 2026