Send Messages

Send a message in a chat session and receive the assistant's response, including tool calls and interactions.


POST/api/v1/chats/{chatId}/messages

Request Body

ParameterTypeRequiredDescription
messagestringYesThe user message to send
mediaIdsstring[]NoMedia IDs to attach to the message
qualityTierstringNo"standard" | "high" | "max"
passthroughPromptbooleanNoDisable AI prompt rewriting (verbatim mode). See Verbatim Mode page
skillIdstringNoTarget a specific agent skill
styleIdstringNoApply a style to generated media
blueprintIdstringNoScope the message to a blueprint context
recipeSlugstringNoUse a predefined recipe for the message
aspectRatiostringNoDesired aspect ratio for generated media

Response

Response shape

{
  "status": "complete",
  "assistantText": "Here's your product video!",
  "toolCalls": [
    {
      "toolName": "generateVideo",
      "toolCallId": "tc_xyz789",
      "args": { "prompt": "..." },
      "result": { "mediaId": "media_out_1" }
    }
  ],
  "interaction": null,
  "error": null
}

Status Values

StatusDescription
completeThe assistant finished processing. Check assistantText and toolCalls
interaction_requiredThe assistant needs more input. See the Interactions page
errorAn error occurred. Check the error field for details

Example

POST/api/v1/chats/{chatId}/messages
{
  "message": "Create a 15-second product demo video",
  "mediaIds": ["media_product_img"],
  "qualityTier": "high",
  "aspectRatio": "16:9"
}