image-generation
Skill by bytedance
Generates images from structured JSON prompts using a Python script. It suits users who ask for characters, scenes, products or other visual content, with optional reference images to guide the result.
Install image-generation
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bytedance/deer-flow /tmp/deer-flow && mkdir -p ~/.claude/skills && cp -r /tmp/deer-flow/skills/public/image-generation ~/.claude/skills/image-generationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bytedance/deer-flow /tmp/deer-flow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/deer-flow/skills/public/image-generation ~/.gemini/antigravity-cli/skills/image-generationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The image-generation skill creates images for an AI assistant. When a user asks for an image, the assistant writes a structured JSON prompt file that describes the subject, style, composition, lighting and colour palette. It then runs a Python script with that file, an output path and an aspect ratio, and can also pass reference images for style or composition guidance.
The skill selects its image provider from environment variables. It supports Gemini, MiniMax, an OpenAI-compatible Images API and BytePlus Agent Plan Seedream, and a provider can be forced with IMAGE_GENERATION_PROVIDER. The skill also includes a character example, a Star Wars scene example and a Doraemon comic template. It is aimed at users who want generated character designs, scenes or product visuals.
Written from the project's SKILL.md and checked against it.
What it can do
- Structured JSON promptsWrites a JSON prompt file with subject, style, composition, lighting and colour fields.
- Reference imagesAccepts one or more reference images to guide style, composition or subject.
- Script-based generationRuns generate.py with a prompt file, output path and aspect ratio.
- Provider selectionChooses Gemini, MiniMax, an OpenAI-compatible API or BytePlus Seedream from environment variables.
- Character and scene examplesIncludes example prompts for character design and a sci-fi scene with reference images.
- Doraemon comic templateProvides a template file that is read only when the request matches it.
- Image search for referencesSuggests using the image_search tool to find reference images before generating.
What you need
- Python
- One image provider API key: GEMINI_API_KEY, MINIMAX_API_KEY, IMAGE_GENERATION_API_KEY or BYTEPLUS_AGENTPLAN_API_KEY
- BytePlus Agent Plan tier for the BytePlus provider
Try asking
- Generate a 1990s Tokyo street portrait of a woman in a trench coat
- Create a 16:9 sci-fi market scene using these two reference images
- Make a product visualization of a ceramic mug on a wooden table
Good to know
- The legacy MiniMax writer can leave an empty file or erase an existing image if decoding fails.
- Use a fresh output file path to keep a previous image.
- The default aspect ratio is 16:9.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/public/image-generation/SKILL.md, skills/public/image-generation/scripts/generate.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB -
scripts/generate.py23 KB -
templates/doraemon.md3 KB
Alternatives to image-generation
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
image-generation: common questions
Which image providers does this skill support?
It supports Gemini, MiniMax, an OpenAI-compatible Images API and BytePlus Agent Plan Seedream. The provider is chosen by which API key environment variable is set, or forced with IMAGE_GENERATION_PROVIDER.
Can I use my own reference images?
Yes. Reference images are passed with the --reference-images option as absolute paths, and the prompt can refer to them as [Image 1] and [Image 2].
Where are generated images saved?
The skill's instructions say images are typically saved in /mnt/user-data/outputs/, and the output path is set with --output-file.
How do I install image-generation?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is image-generation free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is image-generation safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to image-generation?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
