Grok Image Generation Skill

Generate images from text prompts using xAI Grok image models.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/RogerGimbel/rodaco-workspace --skill grok-image-generation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Grok Image Generation Skill
Source: https://github.com/RogerGimbel/rodaco-workspace/tree/main/skills/grok-image
Command: npx skills add https://github.com/RogerGimbel/rodaco-workspace --skill grok-image-generation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows users to generate images based on textual prompts using the xAI Grok image generation models, providing a powerful tool for visual content creation.

Core Features & Use Cases

  • Image Generation: Create images from detailed text descriptions.
  • Model Selection: Supports different quality tiers (grok-imagine-image, grok-imagine-image-pro) and an alternative model (grok-2-image-1212).
  • Use Case: A marketing team needs a unique visual for a social media campaign. They can use this Skill to generate an image based on a description like "a futuristic cityscape at sunset with flying cars, in a cyberpunk art style."

Quick Start

Generate an image using Grok with the prompt "a serene forest landscape with a hidden waterfall".

Frequently Asked Questions about Grok Image Generation Skill

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

FAQPage Schema
How do I generate images from text prompts using Grok AI?

To generate images from text prompts using Grok AI, you provide a detailed text description to the Skill, which then interacts with xAI Grok models to produce your visual content. It uses curl for API interaction and downloads the resulting image.

Do I need an XAI_API_KEY to generate images with Grok?

Yes, you need an active XAI_API_KEY environment variable for authentication to generate images with Grok. This key authorizes your requests to the xAI Grok image generation models, ensuring secure access to the API.

What Grok models are available for text to image generation?

Available Grok models for text to image generation include grok-imagine-image, grok-imagine-image-pro for different quality outputs, and grok-2-image-1212 as an alternative. You can select the model that best fits your specific visual quality requirements.

Can I use Grok image generation for social media campaign visuals?

Yes, you can use Grok image generation for social media campaign visuals by providing detailed descriptions like a futuristic cityscape at sunset. The Skill translates your creative text prompts into unique images suitable for marketing use cases.

How does xAI text to image generation handle detailed descriptions?

xAI text to image generation handles detailed descriptions by processing your textual prompts through its image models to create corresponding visuals. This allows you to translate complex creative concepts directly into generated images.

What is the difference between grok-imagine-image and grok-imagine-image-pro?

The difference between grok-imagine-image and grok-imagine-image-pro lies in the quality of the output. The pro model offers a higher quality tier for generated images, allowing you to choose the best resolution for your needs.