# Grok imagine

> Grok imagine is an open-source agent skill for design and media. Generates images from text prompts through xAI Grok's imagine builtin. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/LovelaceLoom/grok-plugin-cc/tree/main/plugins/grok/skills/grok-imagine
- **Repository:** https://github.com/lovelaceloom/grok-plugin-cc
- **GitHub stars:** 5
- **License:** Apache-2.0
- **Skill name:** grok-imagine
- **Collection:** https://github.com/LovelaceLoom/grok-plugin-cc
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-03

## About

This skill lets an agent produce an image from a written description by calling xAI Grok's /imagine builtin through the bundled companion script. The companion sanitizes the returned image, saves it to a session path under the Grok home folder or to a location the user chooses, and reports the absolute file path along with a command for opening the image on macOS, with xdg-open as the Linux substitute.

The workflow is a single shell invocation of the companion's imagine subcommand. Optional flags cover saving to a chosen path, overriding the default imagine model, setting a timeout (five minutes by default, zero to disable), and requesting JSON output. The agent is expected to return the script's output unchanged, and if Grok refuses on content-policy grounds, to show that refusal text rather than retry with a softened prompt.

The skill needs the Grok companion plugin installed and an xAI Grok account configured for it. Video generation and image analysis are outside its scope and are handled by separate flows.

## When your agent uses it

> Generate an image from a text description using xAI Grok's `/imagine` builtin. Use when the user asks for an image, picture, illustration, logo, mockup, or visual artifact. Returns the absolute path to the saved image plus an `open` command to view it.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/LovelaceLoom/grok-plugin-cc/tree/HEAD/plugins/grok/skills/grok-imagine)
- [License: Apache-2.0](https://github.com/LovelaceLoom/grok-plugin-cc/tree/HEAD/plugins/grok/skills/grok-imagine)

## Features

- **Text-to-image generation:** Turns a plain-language description into an image using Grok's imagine builtin.
- **Saved file paths:** Reports the absolute path of the generated image and can copy it to a chosen location.
- **Viewing command:** Provides an open command for macOS, with a Linux alternative, to view the result.
- **Model and timeout options:** Allows overriding the imagine model and adjusting the generation timeout.
- **Machine-readable output:** Offers a JSON output mode for scripts and other tooling.
- **Refusal passthrough:** Surfaces Grok's content-policy refusal text instead of silently rewriting the prompt.

## Good for

- Generate an illustration for a blog post
- Create a logo concept for a new project
- Draw a mockup of a app screen
- Make a picture of a scene described in text
- Save a generated image to a specific folder

## Install

### Claude Code

This skill ships in the `grok` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add LovelaceLoom/grok-plugin-cc
/plugin install grok@grok-plugin-cc
```

Or copy only this skill to `~/.claude/skills/grok-imagine`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.claude/skills/grok-imagine &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/grok-imagine` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/grok-imagine` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.agents/skills/grok-imagine &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/grok-imagine` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/grok-imagine` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.cursor/skills/grok-imagine &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/grok-imagine` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/LovelaceLoom/grok-plugin-cc.git --path plugins/grok/skills/grok-imagine
```

Or copy the folder to `~/.gemini/skills/grok-imagine` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/grok-imagine`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.copilot/skills/grok-imagine &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/grok-imagine` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git
```

Then copy `grok-plugin-cc/plugins/grok/skills/grok-imagine` into your agent's skills folder as `grok-imagine`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Grok imagine trigger?

It is used when the user asks for an image, picture, illustration, logo, mockup or other visual artifact generated from a text description.

### What does Grok imagine need to run?

It calls the Grok companion script through node using the plugin root path, so the Grok companion plugin must be installed.

### Can Grok imagine generate video?

No. Video generation is handled by a separate imagine-video subcommand that is currently available only as a slash command.

### Can Grok imagine analyze an existing image?

No. Describing an existing image with Grok is a separate flow and is not covered by this skill.

### How do I install Grok imagine in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/grok-imagine to use it in all your projects, or to .claude/skills/grok-imagine in one project. Or install the grok plugin, which includes it: /plugin marketplace add LovelaceLoom/grok-plugin-cc, then /plugin install grok@grok-plugin-cc.

### Does Grok imagine run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Grok imagine?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Grok imagine?

The closest alternatives to Grok imagine are Generate image, Text in image, Imagegen, Nano banana pro openrouter and Photoreal stills.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Generate image](https://ai-powered.com/skills/generate-image): Generate image is an open-source agent skill for design and media.
- [Text in image](https://ai-powered.com/skills/text-in-image): Text in image is an open-source agent skill for design and media.
- [Imagegen](https://ai-powered.com/skills/imagegen): Imagegen is an open-source agent skill for design and media.
- [Nano banana pro openrouter](https://ai-powered.com/skills/nano-banana-pro-openrouter): Nano banana pro openrouter is an open-source agent skill for design and media.
- [Photoreal stills](https://ai-powered.com/skills/photoreal-stills): Photoreal stills is an open-source agent skill for design and media.
- [Runware prompting](https://ai-powered.com/skills/runware-prompting): Runware prompting is an open-source agent skill for design and media.
- [Soia pkm transform article visual](https://ai-powered.com/skills/soia-pkm-transform-article-visual): Soia pkm transform article visual is an open-source agent skill for design and media.
- [Animate image](https://ai-powered.com/skills/animate-image): Animate image is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/grok-imagine
