Generate images from text, edit or compose with reference images, and adapt one design cleanly across multiple aspect ratios. Use when the user asks to generate an image, create a static ad creative, do an image-to-image edit, render text inside an image, or produce a print-quality poster.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Image Generation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hyperfx-ai-image-generation)
---
name: image-generation
description: Generate images from text, edit or compose with reference images, and adapt one design cleanly across multiple aspect ratios. Use when the user asks to generate an image, create a static ad creative, do an image-to-image edit, render text inside an image, or produce a print-quality poster.
metadata:
version: 2.1.0
requires_toolkits:
- image_gen
icon: image_gen
short_description: Generate and edit images across one or multiple aspect ratios with one tool and a model choice.
---
# Image Generation
Use `images_generate` for text-to-image, image-to-image editing, multi-reference composition, and multi-ratio creative sets (`ratios` + `match_base` + `design_id`). Prompts go straight to the image model with no hidden HTML banners, overlays, or CTA pills added.
## Requirements
Connect to the [Hyper MCP](https://app.hyperfx.ai/mcp) to use these tools from an MCP client. Image generation (`images_generate`, `images_product_photoshoots_create`, `images_marketplace_cards_create`) and `firecrawl_branding_extract` are built into Hyper and require no separate integration.
Hyper Chat, Hyper CLI, and the full Hyper MCP endpoint expose image tools. Some official directory MCP connectors exclude `image_gen`. Check the active surface with `describe("images_generate")` or the equivalent lookup below. If image tools are unavailable or the user works without Hyper, deliver ready-to-use prompts and asset briefs for their image tool.
| Surface | Find a tool | Run it |
| --- | --- | --- |
| Hyper Chat | `search_tools(queries=["<tool or action>"])` | `<name>(...)` |
| MCP client (Claude, Cursor, Codex, ChatGPT) | `search("<what you want to do>")`, then `describe("<name>")` | Use the `call_with` entry from `describe` to choose `call_read("<name>", {...})`, `call_write`, or `call_destructive` |
| Hyper CLI | `hyperai search "<what you want to do>"`, then `hyperai describe <name>` | `hyperai call <name> --json '{...}'` |
## Call shape
Pass these JSON arguments to `images_generate`.
```json
{
"requests": [
{
"id": "mug-hero",
"prompt": "Morning daylight product photo on a sunlit stone counter. Keep the mug's silhouette, glaze, and logo from the reference.",
"reference_images": ["<stored image file ID>"]
}
],
"ratios": ["9:16", "4:5", "1:1"],
"match_base": true,
"design_id": "Morning Mug Hero",
"quality": "standard",
"n": 1,
"model": "gpt-image-2.6-sunburst"
}
```
| Argument | Values |
| --- | --- |
| `requests` | Array of objects with `prompt`, optional `id`, optional `reference_images` (stored image file IDs or `/files/...` paths), and optional per-item `design_id`. |
| `aspect_ratio` | Single output ratio when `ratios` is omitted: `"1:1"` (default), `"9:16"`, `"16:9"`, `"4:5"`, `"5:4"`, `"2:3"`, `"3:2"`, `"3:4"`, `"4:3"`, or `"21:9"`. For `"1:4"`, `"1:8"`, `"4:1"`, or `"8:1"`, use `nano-banana-2.1` or `nano-banana`. Nano Banana Pro substitutes `"9:16"` for tall ratios and `"21:9"` for wide ratios. |
| `ratios` | Optional list of aspect ratios to generate in one call (e.g. `["9:16", "4:5", "1:1"]`). Standard social ratios (`9:16`, `4:5`, `1:1`) are fitted to `1080x1920`, `1080x1350`, and `1080x1080`. |
| `match_base` | Optional boolean, default `false`. When `true` with 2+ `ratios`, generates one base size first (`4:5` → `1:1` → `9:16` → `16:9`) and adapts the remaining ratios in parallel using that base image as a reference so all sizes share one visual design in a single call. Requires a reference-capable model (`gpt-image-2.6-*`, `nano-banana*`); under `model="auto"`, selects `nano-banana` (or `nano-banana-pro` if `use_search=true`). |
| `design_id` | Optional custom label grouping outputs that belong to the same design (e.g. `"Morning Mug Hero"`). Images sharing a `design_id` group into one matched-height row in Hyper Chat and stamp `design_id` when saved to Hyper Ads Creatives. Omit for standalone or unrelated images. |
| `quality` | `"draft"`, `"standard"` (default), or `"high"`. |
| `n` | `1`–`4` images per request, default `1`. |
| `seed` | Optional integer for reproducible runs with `seedream-4.5` only. |
| `use_search` | Optional boolean, default `false`. Search grounding works with `nano-banana-pro` only. |
| `model` | `"auto"` by default, or an explicit model below. |
For full paid-ad workflows (brand context, copy variants, safe zones, and video packs), see [Ad creative generation](../ad-creative-generation/SKILL.md).
## Choosing a model
Start with `model="auto"` for general runs, or name the exact model when quality, typography, or style matters. Under `"auto"`, priority order is: `use_search=true` → `nano-banana-pro`; any `reference_images` or `match_base=true` with 2+ `ratios` → `nano-banana`; plain text-to-image (with or without `seed`) → `seedream-4.5`.
| Model | Choose it for |
| --- | --- |
| `gpt-image-2.6-sunburst` | Complex compositions, precise edits, product fidelity, and production static ads |
| `gpt-image-2.6-flare` | Fast drafts and concept iteration |
| `nano-banana-2.1` | Reference fidelity, multi-reference edits, and extreme aspect ratios |
| `nano-banana` | Fast reference-based edits and multi-ratio `match_base=true` adaptations |
| `nano-banana-pro` | Readable text in posters, static ads, labels, or infographics, or search-grounded scenes |
| `flux-3-image` | Candid lifestyle and UGC-style photography from text (no references, no `match_base`) |
| `seedream-4.5` | Product photography from text, detailed materials, and seeded runs (no references, no `match_base`) |
`flux-3-image` and `seedream-4.5` accept text-only requests and cannot run `match_base=true` across multiple ratios. `flux-3-image` ignores `quality`. [Image prompting](references/image-prompting.md)
## Branded / website ad creatives
1. Use the user's logo, colors, fonts, and screenshots first. If you need brand assets from a website, call `firecrawl_branding_extract(url=...)` for colors, typography, and any available `logo.file_id`, `logo.path`, or `screenshot`.
2. A cached result or failed asset save can leave you with a source URL and no stored file ID. If needed, store a usable raster copy first. For additional visual context, call `firecrawl_urls_scrape(url=..., formats=["screenshot"])`.
3. Put the real hex colors, typography, layout, and exact quoted headline/copy directly in the prompt. Pass only raster images (`png`, `jpg`, `gif`, `webp`) as stored file IDs or `/files/...` paths. Convert SVGs to raster first. The branding response's `file` field contains JSON data.
## Higher-level workflows
- For studio, lifestyle, hero, or carousel shots from the same product, use `images_product_photoshoots_create`. [Product photoshoot](references/product-photoshoot.md)
- For listing image sets and A+ modules, use `images_marketplace_cards_create`. [Marketplace cards](references/marketplace-cards.md)
## Delivery & reminders
- Match `aspect_ratio` or `ratios` to the channel and refine vague prompts unless the user asks for verbatim generation.
- Use `design_id` only when outputs are size variants of the same design; omit it for unrelated images so they stay individual tiles.
- Use `"draft"` or `"standard"` for iteration and `"high"` for production when the model honors `quality`. Reuse generated image file IDs in later edits.
- In Hyper Chat, generated images render automatically. On MCP or CLI, share the returned image URL or workspace path for viewing or download. Without image tools, return structured prompts and aspect-ratio specs.