executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
generating-videosGenerates videos using Grok. Supports text-to-video and image-to-video. AI视频生成、文生视频、图生视频。
Independent GitHub snapshot · Automated classification · Original documentation governs
Generates videos using Grok.
Use grok-imagine-video for video generation.
| Scenario | Use Model | Reason |
|---|---|---|
| Video 1-15s | grok-imagine-video | Grok supports direct 1-15s generation |
| Text-to-video | grok-imagine-video | Prompt-only generation |
| Image-to-video | grok-imagine-video | Uses one reference image |
| Video >15s | Generate multiple clips, then load editing-videos to concatenate | Grok max duration is 15s |
Video prompts MUST follow the user's language. If the user writes in Chinese, generate Chinese prompts; if in English, generate English prompts. If the user explicitly requests a specific language, use that language.
| Model | Speed | Quality | Max Duration | Use Case |
|---|---|---|---|---|
grok-imagine-video | Fast | Good | 15s | Default video generation |
| Parameter | Values | Default | Description |
|---|---|---|---|
duration | 1-15 | model default | Video duration in seconds |
resolution | 480p, 720p | 720p | Video resolution |
aspectRatio | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 | 9:16 | Video aspect ratio |
imageUrl | URL | none | Reference image URL for image-to-video |
generateVideoWithGrok with prompt and optional parameters.getGrokVideoStatus every 30 seconds.[Subject & Background] + [Action] + [Style] + [Camera] + [Atmosphere] + [Audio]
Specify the main focus and environmental context.
Examples:
Describe what the subject is doing.
Examples:
Add aesthetic direction.
Examples:
Describe movement and framing.
Examples:
Describe lighting, color, mood, and setting.
Examples:
Include useful audio cues when relevant.
Examples:
| Platform / Use | Aspect Ratio |
|---|---|
| TikTok, Reels, Shorts, mobile social video | 9:16 |
| YouTube landscape, website hero, presentation | 16:9 |
| Profile or square feed asset | 1:1 |
| Portrait-style content | 3:4 or 2:3 |
| Landscape social feed | 4:3 or 3:2 |
For videos longer than 15 seconds:
generateVideoWithGrok.editing-videos.Keep prompts visually consistent across segments by repeating subject, style, lighting, camera language, and environment details.