grok-media

Generate and edit images and videos via xAI media endpoints.

21|9|Updated Jun 22, 2026
One-click install
npx skills add https://github.com/47thtechcorner/RayCodes_OpenMontage --skill grok-media-47thtechcorner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grok-media
Source: https://github.com/47thtechcorner/RayCodes_OpenMontage/tree/main/openmontage_engine/.agents/skills/grok-media
Command: npx skills add https://github.com/47thtechcorner/RayCodes_OpenMontage --skill grok-media-47thtechcorner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the complexity of managing xAI media API interactions, providing a structured interface for generating and editing images and videos without manual endpoint configuration.

Core Features & Use Cases

  • Media Generation: Access text-to-image and text-to-video capabilities using Grok models.
  • Advanced Editing: Perform image-to-video, reference-conditioned video, and multi-image compositing.
  • Use Case: Use this skill to generate consistent character-based video clips by providing reference images for wardrobe and identity, ensuring product placement remains stable across frames.

Quick Start

Use the grok-media skill to generate a 5-second video of a futuristic city using the provided reference image for the architectural style.

Frequently Asked Questions about grok-media

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate identity-consistent video clips from reference images?

To generate identity-consistent video clips, you provide reference images for wardrobe and identity to condition the xAI video generation workflow. This ensures product placement and character features remain stable across the rendered video frames.

Can I use multiple images for compositing in xAI media generation?

Yes, multi-source compositing is supported by the xAI media generation API. You can combine multiple input images to perform advanced media editing and generate cohesive visual output.

How does asynchronous video rendering work with the xAI API?

Asynchronous video rendering requires adherence to specific polling patterns to check the job status until completion. You submit a request to the video generation endpoint and poll the API until the video file is ready.

Do I need an XAI_API_KEY to perform text-to-video generation?

Yes, valid XAI_API_KEY authentication is required to access the text-to-video and text-to-image generation endpoints. You must configure this key before executing any media generation tasks.

What is the best way to edit an existing image using Grok models?

The best way to edit existing images is using the reference-conditioned image editing capabilities of the Grok models. This allows you to modify and composite media directly through the structured API interface.