Image Generation logo

Image Generation

Community
Negai-ai
image-generation

Generate, edit, and iterate raster images from text prompts or reference images with GPT Image, Nano Banana, or Seedream. Use for visual asset creation, concept art, product/mockup imagery, style exploration, thumbnails, illustrations, and image transformation workflows across image provider APIs.

Overview

PublisherNegai-ai
RepositoryAgentClaw
Skill nameimage-generation
Stars
329
Forks
35
Bundled files
7
LicenseApache-2.0
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.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Negai-ai on GitHub. Read the source before you install it.

Installation

Install the Image Generation 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/Negai-ai/AgentClaw/tree/main/agentclaw/skills/builtin_skills/image-generation
  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/Negai-ai/AgentClaw.git /tmp/AgentClaw
mkdir -p .claude/skills
cp -r /tmp/AgentClaw/agentclaw/skills/builtin_skills/image-generation .claude/skills/image-generation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Generation 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 Generation 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 Generation 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 Skill

Use this skill for image creation and image editing work that should call an image provider API and save usable raster files.

Provider Selection

Current complete provider:

  • OpenAI GPT Image Image API: read references/openai.md; use scripts/openai_generate_image.py for repeatable command-line generation and editing. This runner also accepts an OpenAI-compatible base_url for GPT Image compatible providers.
  • Nano Banana image generation: read references/nano_banana.md; use scripts/nano_banana_generate_image.py for Nano Banana 2, Nano Banana Pro, and Nano Banana generation/editing.
  • Seedream image generation on Volcengine Ark: read references/seedream.md; use scripts/seedream_generate_image.py for Seedream 5 text-to-image, image-to-image, coherent image groups, streaming, and web search.

Reserved provider integration:

  • Future providers should add one references/<provider>.md file and one scripts/<provider>_generate_image.py runner following references/provider_contract.md.

Workflow

  1. Capture the visual brief: subject, style, composition, aspect ratio, output count, quality, format, destination folder, and any reference images.
  2. Pick the provider. OpenAI is the supported default in this skill.
  3. Check the provider API key before calling the script. If the key is missing, tell the user the exact variable to configure; after the user provides or confirms the key, write/update it in the project .env and update the current temporary environment before retrying.
  4. Read the matching provider reference when API parameters, edits, masks, streaming, or model limits matter.
  5. Use the provider script for deterministic file output when possible; otherwise write a small one-off call using the same output contract.
  6. Save generated files to the requested path, or to generated_images when no path is specified.
  7. Return the saved file paths, output_dir, provider/model, size/quality/format, revised prompt when available, and any provider response ID. For user-visible Markdown images, use browser-safe URLs only; if the script returns local output_paths, call create_download_url for each image and use the returned URL instead of embedding local paths.

API Key Handling

Required keys by provider:

  • OpenAI official or compatible GPT Image: OPENAI_IMAGE_KEY. Compatible services may also need the optional endpoint override OPENAI_BASE_URL or --base-url.
  • Nano Banana: GOOGLE_IMAGE_KEY.
  • Seedream on Volcengine Ark: ARK_API_KEY.

The bundled runners automatically load .env before reading these variables. They check AGENTCLAW_PROJECT_DIR/.env, the current working directory .env, and the AgentClaw project .env, then copy loaded values into the script process environment without overriding already exported variables.

When a selected provider key is not configured, tell the user which key is needed and wait for the user to provide or configure it. After the user provides the value, update the project .env and the current temporary environment for this session before rerunning the provider script. Keep secrets out of prompts, logs, references, tests, and generated reports.

All bundled runners default to generated_images and include output_dir plus absolute_output_dir in their JSON result. These are local filesystem directories, not browser URLs.

OpenAI Quick Start

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "A clean product hero image of a compact desktop AI assistant device" \
  --output-dir generated_images \
  --model gpt-image-2

For explicit GPT Image output parameters:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "A polished app icon for AgentClaw, sharp claw mark plus workflow nodes" \
  --model gpt-image-2 \
  --size 1024x1024 \
  --quality high \
  --format png

For an OpenAI-compatible image service:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "A square face icon in a clean 3D style" \
  --base-url https://api.squarefaceicon.org/v1 \
  --model gpt-image-2 \
  --size 1024x1024

For an edit or reference-image composition:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "Create a cohesive product bundle image using these reference items" \
  --input-image body-lotion.png \
  --input-image soap.png \
  --output-dir generated_images

For a masked edit:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py \
  --prompt "Replace the selected area with a small indoor pool" \
  --input-image room.png \
  --mask-image mask.png

Nano Banana Quick Start

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/nano_banana_generate_image.py \
  --prompt "A professional product photo of an AI automation workspace on a clean desk" \
  --banana nano-banana-2 \
  --aspect-ratio 16:9 \
  --image-size 1K \
  --output-dir generated_images

For professional assets or stronger text rendering:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/nano_banana_generate_image.py \
  --prompt "A premium magazine cover with the title AgentClaw, no other cover text" \
  --banana nano-banana-2 \
  --aspect-ratio 3:4 \
  --image-size 2K

Seedream Quick Start

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/seedream_generate_image.py \
  --prompt "A cinematic wide-angle image of a vintage train bursting out of a black hole" \
  --seedream seedream-5 \
  --size 2K \
  --output-dir generated_images

For a coherent group:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/seedream_generate_image.py \
  --prompt "Generate four coherent illustrations of the same courtyard across spring, summer, autumn, and winter" \
  --seedream seedream-5 \
  --sequential-image-generation auto \
  --max-images 4 \
  --stream

For image-to-image:

bash
python agentclaw/skills/builtin_skills/image-generation/scripts/seedream_generate_image.py \
  --prompt "Use this logo as reference and create outdoor sports brand visuals" \
  --input-image logo.png \
  --seedream seedream-5 \
  --size 2K

Notes

  • Use one key variable per provider: OPENAI_IMAGE_KEY, GOOGLE_IMAGE_KEY, or ARK_API_KEY.
  • For OpenAI-compatible GPT Image services, use OPENAI_BASE_URL or pass --base-url.
  • For edits with reference images or masks, keep all source files local and pass their paths explicitly.
  • Prefer PNG for transparent or lossless assets, JPEG for faster photo-style outputs, and WebP for compact web delivery.
  • Do not display local paths such as generated_images/... or absolute_output_dir inside Markdown image links. The dashboard will resolve relative paths under /dashboard/, for example /dashboard/generated_images/..., which is not a served file URL. Use create_download_url, public_urls, image_markdown, or signed /api/files/...?token=... URLs for display.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Image Generation AI skill do?

Generate, edit, and iterate raster images from text prompts or reference images with GPT Image, Nano Banana, or Seedream. Use for visual asset creation, concept art, product/mockup imagery, style exploration, thumbnails, illustrations, and image transformation workflows across image provider APIs.

Why use Image Generation on TypingMind?

Because you install it once and use it with any model. Image Generation 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 Generation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Negai-ai/AgentClaw/tree/main/agentclaw/skills/builtin_skills/image-generation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Image Generation?

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 Generation?

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

Is the Image Generation AI skill free?

Yes. It is published on GitHub by Negai-ai under the Apache-2.0 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 👇