Skip to main content
POST
/
agent
/
chatMessage
/
{threadId}
保存对话消息
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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Supabase JWT Token

Path Parameters

threadId
string<uuid>
required

Body

application/json
message
object
required

Response

200 - application/json

保存成功

version
object