Agent skill · Backend & API

xai-grok-imagine-video

Produce, edit, extend, and govern short videos with xAI's direct Grok Imagine Video API. Use for text-to-video, image-to-video, multi-reference video, natural-language video edits, video continuation, exact media-cost approval, asynchronous request recovery, Files/Batch integration, moderation review, and API privacy or residency decisions. Covers `grok-imagine-video` and image-only `grok-imagine-video-1.5`; excludes Grok consumer subscriptions, Grok on X, still-image generation, voice APIs, and third-party gateways.

Calesthio43,316★ · +2,384/wk · 2 repos on radarProfile →
claude-codecodexcopilotcursorMIT
Install
npx skills add calesthio/generative-media-skills --skill xai-grok-imagine-video --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 57 KB
Bundled scripts: none
Path: skills/providers/video-generation/xai-grok-imagine-video/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 112 · +8 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Guides an AI agent to use xAI's direct Grok Imagine Video API to produce, edit, extend, and govern short videos, handling text-to-video, image-to-video, reference-to-video, and various edits, with attention to pricing, endpoints, authentication, and mode restrictions.

How it works

  • Recommends choosing a single active mode per request (text-to-video, image-to-video, reference-to-video, edit, extend) and maps each mode to the corresponding endpoint and parameters.
  • Describes endpoint usage, authentication method (Authorization: Bearer $XAI_API_KEY), and the base API URL (api.x.ai). Distinguishes between direct API surfaces and consumer gateways (grok.com, grok on X).
  • Enumerates model decisions and allowed inputs/outputs per mode: duration, aspect_ratio, resolution (480p/720p for base; 1080p possible for 1.5), and constraints like input shapes (image, reference_images, video) with explicit valid combinations.
  • Details cost structure per model and per output, with example calculations and how to quote costs before approval.
  • Provides guidance on production prompts structure (five-part approach) and mode-specific direction for 1.5/base I2V, Reference-to-video, Edit, and Extension.
  • Requires preparing a paid boundary dossier before transport, including endpoint/body, price quote, and rights/moderation evidence; recommends dry-run defaults and no automatic retries for creates.
  • Includes runnable example outline for a guarded REST client script (xai_video_guard.py) with requirements and behavior, covering all five modes and cost-tracking.

When to use it

Use when you need to orchestrate video generation via xAI Grok Imagine Video API, including:

  • Text-to-video, image-to-video, or reference-to-video generation
  • Natural-language video edits or extensions
  • Asynchronous request handling, batch/files integration, moderation review, and API privacy/residency considerations
  • Price-aware approvals with per-second and per-output pricing, and when you must persist intent prior to paid POSTs.

What it can touch

  • Endpoints and REST fields for modes (e.g., POST /v1/videos/generations, POST /v1/videos/edits, POST /v1/videos/extensions)
  • Model identifiers and accepted inputs: grok-imagine-video, grok-imagine-video-1.5; inputs include prompt, image, reference_images, video, duration, aspect_ratio, and resolution
  • Authentication with Authorization: Bearer $XAI_API_KEY
  • Pricing data and rate constants used to compute quotes and validate costs
  • Example JSON payload shapes shown for reference_images, file_id, and URL-based locators

Caveats

  • Clearly separates surface surfaces (grok-imagine-video vs grok on X, grok.com) and notes differences in terms, data controls, and pricing; no API residency promises from pages labeled differently.
  • Audio capabilities are provider-claimed; the video REST schema does not document an audio enable/disable field or related audio parameters.
  • Accepts potential documentation conflicts on media size limits (48 MB vs 50 MB) and advises staying below 48 MB or verify exact endpoint before upload.
  • First-party rate limits are noted as UNKNOWN from public docs; team-specific Console limits should be used.
  • Requires careful handling of sensitive data, logs, and private file locators; avoid logging Base64 or signed URLs and apply strict access controls.
From the SKILL.md

# xAI Grok Imagine video Use the direct xAI API as a controlled media-production service: freeze the creative brief and source rights, derive a priced request, persist intent before the paid POST, reconcile its asynchronous result, then preserve the artifact and its evidence. All volatile facts and prices below were checked against xAI first-party sources on **2026-07-10**. ## Choose the correct p

More from generative-media-skills
All skills →
About this skill
What does the xai-grok-imagine-video skill do?

Produce, edit, extend, and govern short videos with xAI's direct Grok Imagine Video API. Use for text-to-video, image-to-video, multi-reference video, natural-language video edits, video continuation, exact media-cost approval, asynchronous request recovery, Files/Batch integration, moderation review, and API privacy or residency decisions. Covers `grok-imagine-video` and image-only `grok-imagine-video-1.5`; excludes Grok consumer subscriptions, Grok on X, still-image generation, voice APIs, and third-party gateways.

How do I install it?

Run `npx skills add calesthio/generative-media-skills --skill xai-grok-imagine-video --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From calesthio/generative-media-skills, a repository with 112 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going