grok-media

Generate and edit Grok images and videos via the xAI API.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/gyalamanch001a/pur-new --skill grok-media-gyalamanch001a
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grok-media
Source: https://github.com/gyalamanch001a/pur-new/tree/main/.agents/skills/grok-media
Command: npx skills add https://github.com/gyalamanch001a/pur-new --skill grok-media-gyalamanch001a

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you turn natural-language ideas, reference images, and compositing needs into high-quality Grok image or video outputs without guessing the right API shape.

Core Features & Use Cases

  • Text-to-Image: Create standalone visuals from prompts with model, aspect ratio, and resolution controls.
  • Image Editing and Compositing: Modify one image or combine multiple sources while preserving the intended subject and structure.
  • Text/Image-to-Video: Produce short clips from prompts, an anchor image, or multiple reference images for product demos, fashion transfer, and character-consistent motion.
  • Operational Guidance: Handle authentication, request submission, and async polling so generation jobs can be monitored to completion.

Quick Start

Use this skill to generate a square Grok image from the prompt "a cinematic product shot of a silver watch on black stone".

Frequently Asked Questions about grok-media

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

FAQPage Schema
How do I generate Grok images from a text prompt?

To generate Grok images from a text prompt, structure your prompt, configure model settings like aspect ratio and resolution, and submit a request to the xAI media endpoints. The Skill handles text-to-image generation by formatting these API requests correctly.

Can I edit an existing image and combine multiple sources with Grok?

Yes, you can edit an existing image and combine multiple sources using Grok image editing. The Skill supports compositing workflows that modify images while preserving the intended subject and structure of the original reference images.

What is the process for creating Grok videos from reference images?

Creating Grok videos from reference images involves submitting an anchor image or multiple reference images to the xAI API. The Skill manages the image-to-video workflow, allowing you to produce short clips for product demos or character-consistent motion.

Do I need an xAI API key to use Grok for image and video generation?

Yes, you need an xAI API key for authentication. The Skill requires correct xAI API authentication to access the media endpoints needed for submitting generation jobs and retrieving completed outputs.

Why does Grok video generation require async polling to retrieve results?

Grok video generation requires async polling because video creation is a time-consuming background process. The Skill uses async polling to monitor the generation job status until completion, ensuring you reliably retrieve the finished media clips.