Image Gen logo

Image Gen

OrganizationPopular
amd
image-gen

Turn a description into an image file with local Stable Diffusion, then iterate on it. Use when the user says draw, sketch, paint, render, "make a picture of", "generate an image", or asks for concept art, a thumbnail, a logo idea, a wallpaper, or a mockup — and when they want the last image changed rather than replaced.

Overview

Publisheramd
Repositorygaia
Skill nameimage-gen
Stars
1.6K
Forks
176
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by amd on GitHub. Read the source before you install it.

Installation

Install the Image Gen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/amd/gaia/tree/main/hub/skills/image-gen
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amd/gaia.git /tmp/gaia
mkdir -p .claude/skills
cp -r /tmp/gaia/hub/skills/image-gen .claude/skills/image-gen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Gen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image Gen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image Gen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Image Generation

Generation runs locally and is slow — tens of seconds to minutes per image, and the first call for a model downloads gigabytes. That changes the job: you get few attempts, so spend the thinking before the call rather than firing off four variations and picking one.

It also costs the conversation. Drawing loads the image model in place of the chat model, so the reply after an image pauses while the chat model comes back. Generate when the user actually asked for a picture — not to illustrate an answer they did not ask to have illustrated.

Check what is loaded before you promise anything

Call list_sd_models() first. It tells you which models exist and what each costs, and the reported default_model is the one you get if you pass no model. Do not assume a specific model is resident — naming one the machine has not pulled turns a 20-second request into a multi-gigabyte download the user did not agree to.

Tell the user the estimate before a slow model, not after: SDXL-Base-1.0 at 1024x1024 is on the order of minutes, the Turbo models are seconds.

Build the prompt for them

A user asking for "a cat" has a picture in their head that "a cat" will not produce. Expand it yourself rather than interrogating them — one round of questions is fine, three is a worse experience than a decent first image.

A usable prompt names, roughly in this order: subject, what it is doing or how it is arranged, setting, style, lighting or mood. So "a red bicycle" becomes "a red bicycle leaning against a brick wall, morning sunlight, shallow depth of field, photographic".

Then say the expanded prompt back to the user with the result. They cannot correct a prompt they never saw, and "make it warmer" is only meaningful if they know what you asked for.

The default is a few-step model — do not over-tune it

SDXL-Turbo is the default and it is distilled to converge in about 4 steps with CFG around 1.0. The knobs that matter on a normal model do nothing useful here:

  • Raising steps to 30 costs seven times the wall clock and does not improve the image.
  • Raising cfg_scale degrades it — Turbo models are trained for guidance-free sampling.
  • Long negative-prompt boilerplate ("blurry, low quality, watermark, extra fingers…") is wasted. Spend those words describing what you do want.

Leave steps, cfg_scale, and size unset unless you have a reason; the tool fills in the right values per model. Reach for SDXL-Base-1.0 only when the user explicitly wants photorealism and has accepted the wait.

Iterate instead of starting over

get_generation_history() returns this session's generations with the exact prompt, model, size and seed of each. When the user says "same but at sunset" or "make it wider", read the previous entry, change the one thing they asked about, and keep everything else — including the seed. Reusing the seed is what makes the second image recognisably the same picture rather than an unrelated one that happens to match the words.

Rewriting the prompt from scratch throws away everything that was already working, and the user has to re-explain the parts they liked.

When it fails, say what failed

generate_image returns {"status": "error", "error": ...} rather than raising. Read it and pass the actual message to the user.

Do not quietly retry with a different model, a smaller size, or fewer steps. A user who asked for a photorealistic 1024px render and silently received a 512px Turbo sketch has been given the wrong thing and told nothing. If a fallback would genuinely help, propose it and let them choose.

The common failures and what to say:

  • Cannot reach Lemonade Server — inference is not running. Tell them to start it; nothing here works until it is up.
  • Timed out — usually the first use of a model, downloading several GB. The server is fine. Tell them to pre-fetch it with the pull command the error names for their install, then retry, rather than restarting anything.
  • Invalid model or size — you passed something outside the supported set. Call list_sd_models() and pick from what it returned.

Reporting a generated image

Give them the path. It is the only part of the result they can act on:

Saved to ~/.gaia/cache/sd/images/a_red_bicycle_..._SDXL-Turbo_....png (18s).

Prompt used: "a red bicycle leaning against a brick wall, morning sunlight, shallow depth of field, photographic" — say the word if you want it warmer, wider, or at a different time of day.

Never describe an image you did not generate, and never claim a file exists because the call was made — check status first.

Fork this

Pin the style clause in step two to your own house look (brand palette, flat vector, isometric) and the skill stops needing to be told it every time.

Frequently asked questions

What does the Image Gen AI skill do?

Turn a description into an image file with local Stable Diffusion, then iterate on it. Use when the user says draw, sketch, paint, render, "make a picture of", "generate an image", or asks for concept art, a thumbnail, a logo idea, a wallpaper, or a mockup — and when they want the last image changed rather than replaced.

Why use Image Gen on TypingMind?

Because you install it once and use it with any model. Image Gen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image Gen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/amd/gaia/tree/main/hub/skills/image-gen. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Image Gen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image Gen?

As many as you like. As long as a model supports skills, you can use Image Gen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image Gen AI skill free?

Yes. It is published on GitHub by amd under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇