Skip to main content
POST

Authorizations

x-user-auth
string
header
required

Your API key from account settings

x-bot
string
header
required

Your bot ID from account settings

Body

application/json
Message
string

The message to send to the AQL model

Example:

"ما هي عاصمة مصر وما أهم معالمها السياحية؟"

ChatHistory
object[]

Optional previous messages for context-aware conversations

Config
object

Configuration parameters for text generation

PromptStyle
integer

Style of response generation:

  • 0: Base (standard responses)
  • 1: Expert (technical/formal)
  • 2: Conversational (casual, dialogic)
  • 3: Structured (organized with sections)
  • 4: Concise (brief, to-the-point)
  • 5: Detailed (comprehensive explanations)
Required range: 0 <= x <= 5
Example:

3

Response

Successful response with generated text

StatusCode
integer
Example:

200

Response
object
Consumption
string

Usage tracking

Example:

"147/10000000"