Chats v2

Enqueue send message job (v2)

post/v2/chats/{id}/send-message

Request

  • Base URL
    https://api.miaai.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://api.miaai.chat/v2/chats/{id}/send-message
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

clientIdstring

Client-provided message ID for idempotency

textstring required

Message text

preferVideoboolean

Prefer video generation over image generation for media requests

imageRequestCountnumber

Number of media items to generate (for image/video requests), 1..8

Example request

{
  "clientId": "550e8400-e29b-41d4-a716-446655440000",
  "text": "Hello",
  "imageRequestCount": 1
}

Response

balancenumber required

User coin balance after operation

Changes

No recorded changes to this operation across all 1 revision of this API.