hive.image-generation
What it does
This skill lets an AI make new pictures from a written description and edit existing images. It is for people who need logos, banners, posters or illustrations quickly.
When to use it
- βWhen you want a new picture, such as a logo, banner or illustration.
- βWhen you want to restyle or combine existing photos into a new image.
- βWhen you need text rendered inside an image, such as a poster heading.
Skill link
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/image-generation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI need a flat-style banner for my bakery's spring sale with the words Spring Sale in bold.β
5 new skills a week. 1 minute to read.
How it works
The AI sends your written prompt and any reference images to an image service. The image is saved to a file, and the cost is charged to your usage credits like an AI text request.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Image generation
image_generate turns a text prompt into an image (and can edit existing
images). It routes through the Hive image service to OpenAI's gpt-image-2;
the cost is billed to the user's Hive credits exactly like an LLM call, so there
is no API key to configure. Each generated image is also saved to disk.
The call
image_generate(
prompt: str, # required β what to draw
reference_images: list[str] = None,# local paths or http(s) URLs to edit/condition on
size: str = "1024x1024", # 1024x1024 | 1536x1024 (landscape) | 1024x1536 (portrait) | auto
quality: str = "low", # low only (medium & high disabled)
n: int = 1, # 1β4; each image is billed separately
output_format: str = "png", # png | jpeg | webp
model: str = "gpt-image-2",
)
Defaults are deliberately cheap and fast. quality is locked to low β
medium and high are disabled for cost control, and any request for a higher
tier is automatically forced to low. Only raise n when the user explicitly
wants variations.
Writing the prompt
Be concrete: name the subject, style (photo, flat vector, 3D, watercolorβ¦),
composition/framing, color palette, mood, and any text to render (gpt-image-2
renders text well β quote it exactly, e.g. the words "Launch Day" in bold).
Reference-image editing
Pass reference_images to edit, restyle, or compose from existing images β
restyle a product photo, place a logo on a mockup, keep a character's identity
across images, or merge elements. Provide up to 10 local file paths or http(s)
URLs; the model conditions on them at high fidelity. Example:
image_generate(prompt="Put this product on a marble kitchen counter, soft morning light",
reference_images=["data/uploads/bottle.png"])
A good source of reference images is something the user attached (read it from
the path in their message) or an image you generated earlier (use its saved
path).
How it runs β start, then collect (it's asynchronous)
Image generation can take a couple of minutes, so image_generate runs in the
background: it returns immediately with {"status":"started","handle":"bg_β¦"}.
You then poll the generic collect_result tool with that handle until the
image is ready:
start = image_generate(prompt="A minimalist bee logo, flat vector, amber on white")
# start.handle == "bg_1"
res = collect_result(handle="bg_1", wait_seconds=30)
# β {"status":"pending", ...} β not done yet; call collect_result again
# β eventually the real result: {"images":[{"path": β¦}], "usage": β¦, β¦}
collect_result waits up to wait_seconds (β€45) per call and returns
{"status":"pending"} until generation finishes β just call it again with the
same handle until you get the real result. It's fine to do other small things
between polls. Don't start a second image while one is pending unless the user
asked for several.
Show the user
The finished result's JSON has images (each with a path) plus model, n,
and usage; one image is previewed inline. Call attach_file(path) on the
image path to surface a downloadable chip in chat. Do not paste base64 or
write  markdown.
Failure modes
Errors surface in the collect_result result as {"error": ...} (the tool
never raises). Handle these:
- Out of credits / subscription inactive (
status: 402) β tell the user they're out of Hive credits; do not retry. - Model unavailable / org verification (
status: 403) β report that image generation is currently unavailable; do not loop. - Request rejected / moderated (
status: 400) β the prompt was likely refused; rephrase it (less explicit, no real-person likeness) and try once. - Rate limited (
status: 429) β wait a moment and retry once. - Still
pendingafter several minutes β collect_result keeps returning pending well past ~4 min: the job likely failed. Tell the user and start once more. ({"error":"Unknown β¦ handle"}means it was already collected or never started β just start a fresh image_generate.)
End-to-end example
User: "make us a logo β a friendly robot, simple and modern."
image_generate(prompt="A friendly modern robot mascot logo, simple flat vector, rounded shapes, teal and white, centered, plain background", quality="low")β{"status":"started","handle":"bg_1"}- `collect_result(handle="bg_1", wait
FAQ
Do I need my own image service key?
No. The service is set up for you, and the cost is charged to your usage credits.
Can I use my own photos?
Yes. You can pass reference images, either local files or web links, to edit or base the new image on.
Why is the quality always low?
Higher quality settings are turned off for cost control, so every image uses the low setting.
Details
Original description by the author
Required before calling image_generate. Create and edit images from a prompt β generate an image, make a picture / logo / illustration / icon / banner / poster / thumbnail / hero image / mockup / product shot / social graphic, or edit / restyle / combine existing images from reference images. Uses OpenAI gpt-image-2 through the Hive image service, billed to the user's Hive credits like an LLM call (no API key needed). Teaches the exact call shape, the quality/cost tradeoff (quality="low" is the default and cheapest), reference-image editing, how to show the result to the user with attach_file,
repo: aden-hive/hive
Popularity
- GitHub stars
- 11k
- Ranking position
- #11802
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
browser-edge-cases
11kHelps your agent fix browser automation that fails on tricky sites such as LinkedIn, X or pages with heavy scripts.
hive.browser-automation
11kTeaches your agent to control your own Chrome browser with the hive-browser tool, using screenshots and clicks.
hive.colony-progress-tracker
11kHelps your agent claim tasks and record its steps and checks in a shared database, so work is tracked as it goes.
hive.context-preservation
11kHelps your agent save key facts from long tool results into notes before older details are removed from its memory.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.