POST
/
ai
/
ai_extensions
/
ai_gateway
curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: eddf864695d72d33b959eec2ae6c640d817dfada" \
-d '{
  "smart_chat_assistant_id": "65d5f3473d5d68095462165d",
  "messages": [
    {
      "role": "developer",
      "content": "You are helpful assistant"
    },
    {
      "role": "user",
      "content": "Hi"
    }
  ]
}' \
https://api.quickblox.com/ai/ai_extensions/ai_gateway
{
  "answer": "Hello! How can I assist you today?"
}
Before call make sure that HIPAA AI Gateway feature enabled on QuickBlox Dashboard, otherwise you will get 405 error. To obtain HIPAA AI Gateway feature please contact us by enterprise@quickblox.com.
Accepted image types: jpeg, png. Max image size: 50MB.

Recipes

Body Parameters

smart_chat_assistant_id
string
required
Smart Chat Assistant ID.
messages
array
Messages in OpenAI format. Please refer to OpenAI documentation OpenAI messaging documentation, OpenAI analyze images documentation.

Headers

QB-Token
string
required
A user or application session token. See Authentication page to learn more about session tokens.

Responses

curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: eddf864695d72d33b959eec2ae6c640d817dfada" \
-d '{
  "smart_chat_assistant_id": "65d5f3473d5d68095462165d",
  "messages": [
    {
      "role": "developer",
      "content": "You are helpful assistant"
    },
    {
      "role": "user",
      "content": "Hi"
    }
  ]
}' \
https://api.quickblox.com/ai/ai_extensions/ai_gateway
{
  "answer": "Hello! How can I assist you today?"
}