kitsune-den/skulk-skills/xai-imagegen

Claude Code and agent skill by kitsune-den/skulk-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate images using xAI's Grok image generation API (model grok-imagine-image). Use when the user asks to create, generate, or make an image, picture, illustration, artwork, avatar, banner, cover art, or visual. Also use for editing images with text prompts. Requires an xAI API key from https://console.x.ai. NOT for image analysis/vision (use the image tool instead).

Install

npx vskill@latest install kitsune-den/skulk-skills/xai-imagegen

SKILL.md

xAI Image Generation

Generate images from text prompts using xAI's Grok Aurora model.

Setup

API key must be available via either:

  • Env var: XAI_API_KEY
  • Credentials file: ~/.config/xai/credentials.json → {"api_key": "xai-..."}

Get a key at https://console.x.ai

Quick Generate

Run the bundled script:

bash
bash skills/xai-imagegen/scripts/generate.sh "a fox spirit in a neon-lit library" /tmp/fox.jpg

Returns the local file path on success.

Direct API Usage

bash
curl -s -X POST "https://api.x.ai/v1/images/generations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $XAI_API_KEY" \
-d '{
"model": "grok-imagine-image",
"prompt": "your prompt here"
}'

Response contains a temporary URL — download immediately:

json
{"data": [{"url": "https://imgen.x.ai/...", "mime_type": "image/jpeg"}]}

Parameters

ParamRequiredNotes
modelYesUse grok-imagine-image
promptYesText description of desired image
nNoNumber of images (default: 1)
response_formatNourl (default) or b64_json

Prompt Tips

  • Be specific and descriptive — style, mood, composition, colors
  • Reference art styles: "in the style of cyberpunk illustration", "watercolor", "pixel art"
  • Specify format when relevant: "square album cover", "wide banner", "portrait avatar"
  • Grok handles text-in-images reasonably well (titles, labels)

Image Editing

Provide a source image URL alongside a prompt to edit existing images. See references/api-details.md for the full editing API.

Cost

Each generation costs ~$0.02 (200M cost ticks). Budget accordingly for batch generation.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kitsune-den/skulk-skills/xai-imagegen/badge)](https://verified-skill.com/skills/kitsune-den/skulk-skills/xai-imagegen)

Something wrong with this skill or its page? Tell us.