Skip to main content
POST
/
agent
/
streaming
发起 AI 对话
curl --request POST \
  --url https://api.kira.art/agent/streaming \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {}
  ],
  "threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "thinking": false,
  "crazy": false
}
'
"<string>"

Authorizations

Authorization
string
header
required

Supabase JWT Token

Body

application/json
messages
object[]
required

对话消息列表 (AI SDK v5 格式)

threadId
string<uuid>
required

对话线程 ID

thinking
boolean
default:false

启用思考模式 (仅 Pro/Max)

crazy
boolean
default:false

启用 Crazy 模式 (仅 Pro/Max)

Response

SSE 流式响应

The response is of type string.