grok-imagine-image

Generates and edits images via the Grok Imagine Image API through the Pixazo gateway.

Updated May 2, 2026
One-click install
npx skills add https://github.com/Pixazo-AI/skills --skill grok-imagine-image-pixazo-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: grok-imagine-image
Source: https://github.com/Pixazo-AI/skills/tree/main/skills/grok-imagine-image
Command: npx skills add https://github.com/Pixazo-AI/skills --skill grok-imagine-image-pixazo-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets an AI coding agent call xAI's Grok Imagine Image models through the Pixazo API to generate or edit images without the user writing any API integration code themselves. ## Core Features & Use Cases - Text-to-Image Generation: Create images from text prompts using Grok Imagine Image 2.0 or the original Grok Imagine Image endpoints, with control over aspect ratio, resolution, quality, and up to four images per request. - Image Editing: Pass a reference image as a URL or base64 data URL to the edit endpoint for image-to-image transformations. - Guided API Key Setup: Walks the agent through acquiring a Pixazo API key once and saving it to ~/.pixazo/api-key so it is never requested again. - Use Case: A user asks their agent to "create a square image of a golden abstract silhouette with Grok Imagine" and the agent authenticates, picks the text-to-image endpoint, sends the request, and displays the returned image URL inline. ## Quick Start Ask your agent to generate an image with Grok Imagine Image from a text prompt, and paste your Pixazo API key when prompted.

Frequently Asked Questions about grok-imagine-image

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

FAQPage Schema
How do I generate an image with the Grok Imagine Image API?▼

Send a POST request to the Pixazo gateway text-to-image endpoint with your prompt, num_images, aspect_ratio, resolution, and quality fields, authenticated with your Pixazo API key in the Ocp-Apim-Subscription-Key header. The response is synchronous and returns JSON containing image URLs.

How do I edit an existing image with Grok Imagine Image?▼

Use the edit endpoint instead of text-to-image and pass your reference image as a URL or base64 data URL along with your editing prompt. Both Grok Imagine Image 2.0 and the original version offer dedicated edit endpoints.

Where do I get a Pixazo API key for Grok Imagine Image?▼

Sign in at https://api-console.pixazo.ai/api_keys, click "Create new key", and copy it. The skill saves it to ~/.pixazo/api-key with chmod 600 so you only provide it once.

How many images can Grok Imagine Image generate per request?▼

Grok Imagine Image 2.0 supports up to four images per request via the num_images parameter, which accepts values from 1 to 4. The default is a single image.

Why am I getting a 401 or 402 error from the Pixazo API?▼

A 401 means your API key is missing or invalid, so generate a fresh one at the Pixazo console. A 402 means your account is out of credits and you need to top up at the Pixazo dashboard.

Does Grok Imagine Image support video or audio generation?▼

No, this skill only handles image generation and editing. Video, music, voice, 3D, and virtual try-on tasks each have their own dedicated Pixazo skills with separate endpoints.