curl --request POST \
--url https://api.kira.art/agent/chatMessage/{threadId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "user",
"parts": [
{}
]
}
}
'{
"version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"images": [
{
"imageId": "<string>",
"url": "<string>",
"blurUrl": "<string>",
"thumbUrl": "<string>",
"blurhash": "<string>",
"width": 123,
"height": 123,
"toolCallId": "<string>",
"toolName": "<string>",
"seed": 123,
"prompt": "<string>"
}
],
"videos": [
{
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"provider": "seedance",
"duration": 5,
"ratio": "auto",
"prompt": "<string>",
"sourceImageId": "<string>",
"videoId": "<string>",
"thumbId": "<string>",
"url": "<string>",
"thumbUrl": "<string>",
"width": 123,
"height": 123,
"blurhash": "<string>",
"errorMessage": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}保存对话消息到数据库,如果包含图片会创建版本记录
curl --request POST \
--url https://api.kira.art/agent/chatMessage/{threadId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "user",
"parts": [
{}
]
}
}
'{
"version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"images": [
{
"imageId": "<string>",
"url": "<string>",
"blurUrl": "<string>",
"thumbUrl": "<string>",
"blurhash": "<string>",
"width": 123,
"height": 123,
"toolCallId": "<string>",
"toolName": "<string>",
"seed": 123,
"prompt": "<string>"
}
],
"videos": [
{
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"provider": "seedance",
"duration": 5,
"ratio": "auto",
"prompt": "<string>",
"sourceImageId": "<string>",
"videoId": "<string>",
"thumbId": "<string>",
"url": "<string>",
"thumbUrl": "<string>",
"width": 123,
"height": 123,
"blurhash": "<string>",
"errorMessage": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}