generate-video
Generate videos from text prompts by supplying a chat ID and prompt, then poll the chat to retrieve the completed video URL.
Instructions
Generate a video via syntx.ai. Mirrors syntx.video.generate and the SPA ai-video.sendMessage flow. Posts to POST /api/v1/video/generate?ai_name={ai_name}. Requires a target chat UUID (use create-chat first). Generation is long-running — poll the resulting chat with wait-for-response or get-messages to read the completed video URL once the model finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate override. | |
| seed | No | Seed for deterministic sampling, when supported. | |
| prompt | Yes | Text prompt describing the video to produce. | |
| ai_name | No | Video provider name (e.g. "wan_video", "runway", "kling"). Use `list-models` with scope=video to discover valid values. | wan_video |
| chat_id | Yes | Target chat UUID (create one with create-chat). | |
| quality | No | Quality preset (e.g. "low", "medium", "high"). | |
| duration | No | Target duration in seconds. | |
| audio_url | No | Optional audio track URL to mix into the generated video. Distinct from `file_urls` (SPA `audio_url` field). | |
| file_urls | No | Optional input file URLs (e.g. source image for image-to-video). `wan_video` reads `settings.file_urls` for the same purpose. | |
| model_type | No | Model identifier within the provider. | |
| resolution | No | Output resolution, e.g. "1280x720" or "720x1280". | |
| aspect_ratio | No | Aspect ratio, e.g. "16:9", "9:16", "1:1". | |
| model_settings | No | Provider-specific settings merged into `body.settings` after the top-level fields above. Use for keys the top-level surface does not expose (e.g. grok_video wants `video_duration` not `duration`, and accepts resolution enum `480p`|`720p`; kling wants `version`, `mode`, `native_audio`). Merged AFTER the top-level fields, so values here override them. Only plain JSON values are allowed; arrays and nested objects are passed through verbatim. |