Gemini image ("Nano Banana 2")
Use it for places, not for facts. Generated stills are a regular tool for the world a film happens in: a harbour, a street, a lab, a landscape. The information stays native: text, numbers, charts and labels are never in an image. Image exploration can also discover abstract materials and original objects. When exact brand colours, typography or repeatable geometry matter, reconstruct the selected idea as a native library sketch; keep text, logos and data native. See docs/image-direction.md for the two-pass workflow, hybrid options and prompt families. Built-in imagegen is the default when available; this skill documents the separate explicit Gemini provider path.
Depth plates (the regular way)
One declaration generates three layers that stand in depth, so the camera moves through painted art with real parallax and focus:
"assets": [{ "id": "harbor", "kind": "image", "layers": true, "size": "1K",
"prompt": "A small fishing harbour at dusk: a stone quay, moored boats, a lighthouse on the far headland",
"subject": "A small wooden fishing boat with a yellow wheelhouse, seen from the side",
"foreground": "A dark stone wall with a bare branch on the left, a weathered railing post on the right" }]
On a canvas beat, "plates": "harbor" stages the layers:
| Layer |
Depth |
Contents |
harbor-far |
z 6 |
A full-bleed painting of the setting |
harbor-mid |
z 1.2 |
The subject, cut out |
harbor-near |
z −0.35 |
Soft foreground framing, cut out |
A slow push is added unless the beat sets a camera. Add focus for depth of field and draw native elements over it.
- Cut-outs are generated on chroma green and keyed to transparency, sampling the real key colour from the corners.
- Describe objects, never scenes, for
subject and foreground. Given a scene "on green", models paint a framed picture of it.
- Consistency: one
continuity.treatment and continuity.lighting for the film, the palette in the prompt (automatic), and refs to an earlier plate for a series.
- People: a plate subject can be a person, but always an anonymous one: seen from behind or in silhouette, hands at work, a figure small in a landscape. Never a likeness of a real, named person, and never a generated person presented as a real witness. For a human moment drawn in code, see
sketch desk and sketch crowd.
- Cost: about $0.20 a scene at 1K, cached by prompt. Run
plan first and honour the budget.
- Check the green
*.green.jpg beside each cut-out if an edge looks wrong. Regenerate with a more object-like description.
Single stills (a material, a texture, a photo-like plate) are still declared as plain assets and used as a beat plate or an image element.
Use it
Declare it in the storyboard, then generate:
"assets": [{ "id": "paper", "kind": "image", "size": "2K",
"prompt": "Macro photograph of layered off-white paper sheets, soft raking window light from the left, gentle shadows, shallow depth of field, calm neutral palette, generous empty space on the right third. No text, no letters, no logos, no people." }]
clearframe plan <dir> # shows ≈ cost
clearframe images <dir> # → assets/img/<id>.jpg (+ .json with prompt & model), cached by hash
node packages/engine/dist/skills/gemini-image/scripts/image.mjs --prompt "…" --aspect 16:9 --size 2K --out out.jpg [--ref style.jpg] [--dry-run]
Reference it from an image block ("props": {"asset": "paper"}); add "drift": true for a slow push-in and "fit": "cover" to fill the frame. Titles stay native text on top of or beside the plate.
Contract (verified 2026-09-27 against ai.google.dev)
POST https://generativelanguage.googleapis.com/v1beta/interactions with header x-goog-api-key
{
"model": "gemini-3.1-flash-image",
"input": [
{ "type": "text", "text": "…prompt…" },
{ "type": "image", "mime_type": "image/png", "data": "<base64 reference>" }
],
"response_format": { "type": "image", "mime_type": "image/jpeg", "aspect_ratio": "16:9", "image_size": "2K" }
}
The response carries steps[type="model_output"].content[type="image"] = { mime_type, data }. Text blocks may accompany it, and thought blocks are separate.
aspect_ratio: 1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9 (plus 1:4 4:1 1:8 8:1 on 3.1 Flash).
image_size: "512" (3.1 Flash only), "1K" (default), "2K", "4K". The K must be uppercase. At 16:9, 2K is 2752×1536, which covers 1080p with room for a slow push.
- Reference images: up to 14 in total. 3.1 Flash accepts up to 10 object and 4 character references. Use one style reference to keep a series consistent.
- All output carries a SynthID watermark.
- Imagen was shut down on the Gemini API (Aug 17 2026). Don't use
imagen-*. gemini-2.5-flash-image shuts down Oct 2 2026.
| Model |
Use |
Price per image |
gemini-3.1-flash-image (default) |
best balance |
512: $0.045 · 1K: $0.067 · 2K: $0.101 · 4K: $0.151 |
gemini-3.1-flash-lite-image |
cheapest drafts, 1K only, weak multi-reference |
$0.0336 |
gemini-3-pro-image |
hardest compositions |
1K/2K: $0.134 · 4K: $0.24 |
Plates that belong to the film
clearframe images sends a composed prompt (recorded in assets/img/<id>.json). It starts with your subject, then adds:
- the film's palette and continuity;
- composition hints from how the storyboard uses the image (a
plate on the left needs its subject away from the seam; a full plate needs calm space where the headline sits);
- a strict no-text rule.
When a beat applies treatment: duotone or tint, the prompt asks for strong tonal contrast instead of colours, because the renderer recolours the image into the palette. Set raw: true on the asset to send your prompt unchanged. Describe the subject, light and mood, and let the plate settings (side, treatment, drift, focus) do the layout.
Prompt recipes (professional register)
Structure: subject → material and light → palette → composition (where the empty space is) → exclusions.
- Texture plate: "Macro photograph of brushed aluminium with fine linear grain, soft diffused top light, cool neutral greys, even exposure edge to edge. No text, no logos."
- Editorial illustration: "Flat editorial illustration of a small paper boat on calm water seen from above, two-colour palette of warm off-white and cobalt blue, lots of negative space, subtle paper texture, minimal shapes. No text, no letters, no people."
- Place, abstracted: "Architectural photograph of an empty modern atrium at dawn, long soft shadows, muted warm palette, symmetrical composition, lower third left empty for typography. No people, no signage, no text."
- Backdrop for a chart: "Out-of-focus abstract light gradient from deep navy to slate, very low contrast, subtle film grain, no shapes, no text." (Honestly, a CSS gradient usually wins here.)
Always end with the exclusions: No text, no letters, no numbers, no logos, no people unless one of them is the point. Name the palette in words matching your theme (e.g. "warm off-white and cobalt").
Don't
- Don't ask for text, numbers, charts, UI or diagrams. Models garble them, and they carry information that must be exact. Render those in code over the image.
- No real people, brands, logos, documents or screenshots, and no "photos" that could pass as evidence.
- No stock clichés (handshakes, lightbulbs, rockets, chess pieces).
1---2name: gemini-image3description: Generate still images with Google's native Gemini image models (Nano Banana 2 — gemini-3.1-flash-image; Lite; Pro) via the Interactions API — depth plates (a painted far layer, cut-out subject and foreground staged in depth), single plates and textures, aspect ratios and sizes, reference images, pricing and prompt recipes. Use for the places a film happens in (depth plates are a regular tool); never for text, numbers, charts, logos or real people.4metadata:5 source: https://skillmd.com/skills/brandonbryant12/gemini-image6---78# Gemini image ("Nano Banana 2")910**Use it for places, not for facts.** Generated stills are a regular tool for the world a film happens in: a harbour, a street, a lab, a landscape. The information stays native: text, numbers, charts and labels are never in an image. Image exploration can also discover abstract materials and original objects. When exact brand colours, typography or repeatable geometry matter, reconstruct the selected idea as a native library sketch; keep text, logos and data native. See `docs/image-direction.md` for the two-pass workflow, hybrid options and prompt families. Built-in imagegen is the default when available; this skill documents the separate explicit Gemini provider path.1112## Depth plates (the regular way)1314One declaration generates three layers that stand in depth, so the camera moves through painted art with real parallax and focus:1516```jsonc17"assets": [{ "id": "harbor", "kind": "image", "layers": true, "size": "1K",18 "prompt": "A small fishing harbour at dusk: a stone quay, moored boats, a lighthouse on the far headland",19 "subject": "A small wooden fishing boat with a yellow wheelhouse, seen from the side",20 "foreground": "A dark stone wall with a bare branch on the left, a weathered railing post on the right" }]21```2223On a canvas beat, `"plates": "harbor"` stages the layers:2425| Layer | Depth | Contents |26|---|---|---|27| `harbor-far` | z 6 | A full-bleed painting of the setting |28| `harbor-mid` | z 1.2 | The subject, cut out |29| `harbor-near` | z −0.35 | Soft foreground framing, cut out |3031A slow push is added unless the beat sets a camera. Add `focus` for depth of field and draw native elements over it.32- **Cut-outs** are generated on chroma green and keyed to transparency, sampling the real key colour from the corners.33- **Describe objects, never scenes, for `subject` and `foreground`.** Given a scene "on green", models paint a framed picture of it.34- **Consistency:** one `continuity.treatment` and `continuity.lighting` for the film, the palette in the prompt (automatic), and `refs` to an earlier plate for a series.35- **People:** a plate subject can be a person, but always an anonymous one: seen from behind or in silhouette, hands at work, a figure small in a landscape. Never a likeness of a real, named person, and never a generated person presented as a real witness. For a human moment drawn in code, see `sketch desk` and `sketch crowd`.36- **Cost:** about $0.20 a scene at 1K, cached by prompt. Run `plan` first and honour the budget.37- **Check** the green `*.green.jpg` beside each cut-out if an edge looks wrong. Regenerate with a more object-like description.3839Single stills (a material, a texture, a photo-like plate) are still declared as plain `assets` and used as a beat `plate` or an `image` element.4041## Use it4243Declare it in the storyboard, then generate:44```jsonc45"assets": [{ "id": "paper", "kind": "image", "size": "2K",46 "prompt": "Macro photograph of layered off-white paper sheets, soft raking window light from the left, gentle shadows, shallow depth of field, calm neutral palette, generous empty space on the right third. No text, no letters, no logos, no people." }]47```48```bash49clearframe plan <dir> # shows ≈ cost50clearframe images <dir> # → assets/img/<id>.jpg (+ .json with prompt & model), cached by hash51node packages/engine/dist/skills/gemini-image/scripts/image.mjs --prompt "…" --aspect 16:9 --size 2K --out out.jpg [--ref style.jpg] [--dry-run]52```53Reference it from an `image` block (`"props": {"asset": "paper"}`); add `"drift": true` for a slow push-in and `"fit": "cover"` to fill the frame. Titles stay native text on top of or beside the plate.5455## Contract (verified 2026-09-27 against ai.google.dev)5657`POST https://generativelanguage.googleapis.com/v1beta/interactions` with header `x-goog-api-key`5859```json60{61 "model": "gemini-3.1-flash-image",62 "input": [63 { "type": "text", "text": "…prompt…" },64 { "type": "image", "mime_type": "image/png", "data": "<base64 reference>" }65 ],66 "response_format": { "type": "image", "mime_type": "image/jpeg", "aspect_ratio": "16:9", "image_size": "2K" }67}68```69The response carries `steps[type="model_output"].content[type="image"] = { mime_type, data }`. Text blocks may accompany it, and thought blocks are separate.7071- `aspect_ratio`: `1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9` (plus `1:4 4:1 1:8 8:1` on 3.1 Flash).72- `image_size`: `"512"` (3.1 Flash only), `"1K"` (default), `"2K"`, `"4K"`. The K must be uppercase. At 16:9, 2K is 2752×1536, which covers 1080p with room for a slow push.73- Reference images: up to 14 in total. 3.1 Flash accepts up to 10 object and 4 character references. Use one style reference to keep a series consistent.74- All output carries a **SynthID** watermark.75- **Imagen was shut down on the Gemini API (Aug 17 2026).** Don't use `imagen-*`. `gemini-2.5-flash-image` shuts down Oct 2 2026.7677| Model | Use | Price per image |78|---|---|---|79| `gemini-3.1-flash-image` (default) | best balance | 512: $0.045 · 1K: $0.067 · 2K: $0.101 · 4K: $0.151 |80| `gemini-3.1-flash-lite-image` | cheapest drafts, 1K only, weak multi-reference | $0.0336 |81| `gemini-3-pro-image` | hardest compositions | 1K/2K: $0.134 · 4K: $0.24 |8283## Plates that belong to the film8485`clearframe images` sends a composed prompt (recorded in `assets/img/<id>.json`). It starts with your subject, then adds:86- the film's palette and continuity;87- composition hints from how the storyboard uses the image (a `plate` on the left needs its subject away from the seam; a full plate needs calm space where the headline sits);88- a strict no-text rule.8990When a beat applies `treatment: duotone` or `tint`, the prompt asks for strong tonal contrast instead of colours, because the renderer recolours the image into the palette. Set `raw: true` on the asset to send your prompt unchanged. Describe the subject, light and mood, and let the plate settings (`side`, `treatment`, `drift`, `focus`) do the layout.9192## Prompt recipes (professional register)9394Structure: **subject → material and light → palette → composition (where the empty space is) → exclusions.**9596- **Texture plate:** "Macro photograph of brushed aluminium with fine linear grain, soft diffused top light, cool neutral greys, even exposure edge to edge. No text, no logos."97- **Editorial illustration:** "Flat editorial illustration of a small paper boat on calm water seen from above, two-colour palette of warm off-white and cobalt blue, lots of negative space, subtle paper texture, minimal shapes. No text, no letters, no people."98- **Place, abstracted:** "Architectural photograph of an empty modern atrium at dawn, long soft shadows, muted warm palette, symmetrical composition, lower third left empty for typography. No people, no signage, no text."99- **Backdrop for a chart:** "Out-of-focus abstract light gradient from deep navy to slate, very low contrast, subtle film grain, no shapes, no text." (Honestly, a CSS gradient usually wins here.)100101Always end with the exclusions: `No text, no letters, no numbers, no logos, no people` unless one of them is the point. Name the palette in words matching your theme (e.g. "warm off-white and cobalt").102103## Don't104105- Don't ask for text, numbers, charts, UI or diagrams. Models garble them, and they carry information that must be exact. Render those in code over the image.106- No real people, brands, logos, documents or screenshots, and no "photos" that could pass as evidence.107- No stock clichés (handshakes, lightbulbs, rockets, chess pieces).