Skip to main content
POST
/
chat
/
streamChatV2
Stream chat response (v2)
curl --request POST \
  --url http://api.superwize.ai/api/chat/streamChatV2 \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "What are the main causes of climate change?",
  "conversationId": "conv_01JHKYW2V8XQ123456789",
  "studyMode": true,
  "quizMode": true,
  "teacherMode": true,
  "model": "meetkai:functionary-urdu-mini-pak",
  "systemContext": {},
  "images": [
    {
      "imageUrl": "https://cdn.superwize.ai/assets/sample.png",
      "detail": "auto"
    }
  ]
}
'
{
  "event": "message",
  "data": {
    "type": "conversation.created",
    "conversationId": "conv_01JHKYW2V8XQ123456789"
  },
  "id": "obj_01JHKZ0PV2WX123456789",
  "retry": 3000
}

Body

application/json
message
string
required
conversationId
string
studyMode
boolean
quizMode
boolean
teacherMode
boolean
model
string
systemContext
object
images
object[]

Response

Streaming chat events emitted.

event
any
required
data
object
required
id
string
retry
number