LaunchKit · 2026
Back to Skills

grok-imagine-video

xAI Grok Imagine API integration for image generation, text-to-video, image-to-video, and editing via natural.

5
1.3k downloads
by @devvgwardo

Setup & Installation

openclaw skills install @devvgwardo/grok-imagine-video

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install grok-imagine-video

Version History

v1.0.4Feb 12, 2026 - Version note by skill developer:

- Added support for text-to-image generation and image editing alongside existing video capabilities. - Updated skill description and documentation to include image generation/editing workflows. - Clarified setup, configuration, and best practices for both images and videos. - Added limits for image requests and detailed error handling for new features. - Included metadata for OpenClaw integration.

What This Skill Does

Connects to xAI's Grok Imagine API to generate images and videos from text prompts, edit existing images or videos with natural language, and animate static images. Handles async video jobs with polling and automatic delivery via chat.

Combines image generation, video creation, and editing in one skill with built-in async polling, so you don't need separate tools or manual API wiring for long-running jobs.

When to use it

  • Generate product mockup images from text descriptions
  • Animate a static photo into a short clip
  • Edit a video's color grade or speed with a text prompt
  • Create multiple image variations to explore visual concepts
  • Produce social media video content from scene descriptions

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Generate a video of a golden retriever running through a sunny meadow

AGENT
  1. 1Submit text-to-video request to Grok Imagine API with the prompt
  2. 2Receive job ID and begin polling for completion
  3. 3Send progress updates to user every few seconds
  4. 4Download completed video file to workspace on job success
OUTPUT

MP4 video file delivered to the user via chat

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

XAI_API_KEY environment variable — obtain from https://console.x.ai/