create_video
Generate AI videos from text prompts, images, or keyframe animations using free models. Supports multiple output formats and languages.
Instructions
Create an AI video — text-to-video, image-to-video, or keyframe animation (文生视频/图生视频/关键帧动画/让这张图动起来/做个动画) — via free models (Agnes AI default, or Zhipu). Use this for any '生成视频/做动画' request; no local video tools needed. Smart async: long videos return a handle to poll with get_video; short ones block until done. Multilingual triggers: 動画 · vídeo · vidéo · Video · видео · vídeo (ja/es/fr/de/ru/pt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| seed | No | ||
| wait | No | 省略=智能(预估≤60s 同步、>60s 异步返回 handle);true=阻塞等待(发 progress);false=立即返回 handle。 | |
| image | No | image-to-video: single image URL. | |
| model | No | Optional; omit to use the provider default video model. | |
| ratio | No | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 (preferred over raw size). | |
| outDir | No | 产物落盘目录,省略用默认(会话目录/output)。 | |
| prompt | Yes | Video content description. | |
| download | No | ||
| provider | No | agnes | |
| frameRate | No | ||
| keyframes | No | keyframes: image URL array. | |
| numFrames | No | Provider-specific allowed values (Agnes: 8n+1, ≤441). | |
| timeoutMs | No | ||
| resolution | No | Provider may snap to nearest preset (Agnes size_mapping). | 720p |
| negativePrompt | No | ||
| pollIntervalMs | No | ||
| durationSeconds | No | If set, auto-pick the nearest valid numFrames (~3/5/10/18s). |