generate_video_with_tts
Generates a video from a text prompt and adds text-to-speech audio in one call, letting you create narrated videos without separate TTS and video generation steps.
Instructions
Generates a video with text-to-speech audio in one call
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ai_model_id": "<ai_model_id>",
"text_prompt": "<text_prompt>",
"voice_id": "<voice_id>",
"speech_text": "<speech_text>"
},
"name": "generate_video_with_tts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | Speech speed multiplier | |
| voice_id | Yes | ID of the voice to use for TTS | |
| stability | No | Voice stability (0-1) | |
| resolution | No | Video resolution (e.g., 540p, 720p) | |
| ai_model_id | Yes | ID of the video AI model to use | |
| speech_text | Yes | Text to convert to speech for the video | |
| text_prompt | Yes | Text prompt describing the video content | |
| aspect_ratio | No | Video aspect ratio (16:9, 9:16, 1:1) | |
| start_keyframe_id | No | ID of an uploaded image asset to use as keyframe |