POST
/
chat
/
completion

Engage with users through dynamic conversational AI capabilities. This endpoint processes user inputs, either in text or audio form, and returns context-aware responses in the specified format (text or audio). It enhances user interaction by providing timely and relevant information within conversational flows.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string

Text prompt or audio URL for conversation initiation.

input_type
enum<string>
default: text

Type of input provided: 'text' or 'audio'.

Available options:
text,
audio
response_type
enum<string>
default: text

Desired format for the response: 'text' or 'audio'.

Available options:
text,
audio
language
string

Language of the input if 'input_type' is 'audio'.

Response

200 - application/json
response
string

The conversational reply as text or URL to audio file.