/gemini-media:gemini-imagefrom Gemini Media
Generates and edits images with Google's GenAI models via the gemini-media MCP server: text-to-image, photo retouching, multi-reference composition, product shots, posters, logos, and search-grounded visuals. Activates when users request image creation, design, or editing.
Ships in Gemini Media. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
gemini-media:generate_image with prompt and, if the destination implies one, aspectRatio. Keep the default model (nb2) and size (1K) for a first pass.gemini-media:edit_image, passing the result's uri as image and one specific change.The tools live on the gemini-media MCP server. Harnesses name MCP tools differently (mcp__gemini-media__generate_image, gemini-media.generate_image, or plain generate_image); match on the part after the server name. This skill writes them as gemini-media:<tool>.
| Tool | Use it to |
|---|---|
gemini-media:generate_image | Create 1-4 images from text, optionally guided by up to 14 reference images |
gemini-media:edit_image | Change an existing image (add/remove/replace, restyle, relight, fix text, change aspect ratio); saves a new file |
gemini-media:estimate_cost | Price a request before running it (compare: true prices every image model) |
gemini-media:list_models | Current models, aliases, prices; detail: true adds sizes and aspect ratios |
gemini-media:get_usage / gemini-media:get_config | Spend so far and budget; backend, output directory and input-file policy |
Results carry files[] (each with path on the server's disk, a gemini-media:// uri, width and height), model, cost, optional text (the model's own commentary) and warnings (read them: they report dropped parameters and retired-model redirects). Inputs accept a file path, a gemini-media:// URI or bare file name of an earlier output, or a data: URI. Web URLs are not fetched: download the file first.
| Alias | Choose it for | Limits |
|---|---|---|
nb2 (default, Nano Banana 2.1) | Almost everything, drafts through finals, including most text in images | 1K to 4K; extra ratios 1:4, 4:1, 1:8, 8:1; googleSearch on the Gemini API only |
pro | Dense infographics, complex multi-subject scenes, final renders when nb2 falls short | 1K to 4K; about three to four times the price of nb2 at 1K; slower |
nb2-lite | Bulk drafts and thumbnails at scale | 1K only; same per-image price as nb2 but cheaper input; no googleSearch; weaker with multiple references |
Prices and capabilities change: call gemini-media:list_models (mediaType: "image") for the current list and gemini-media:estimate_cost for a specific request. Never quote prices from memory.
| Parameter | Guidance |
|---|---|
aspectRatio | Match the destination (table below). Defaults to 1:1 without reference images; with them the model usually follows the first image's ratio. |
imageSize | 1K default (also the smallest size), 2K for most finals, 4K only when print or large display needs it. |
referenceImages | Subjects, products, characters or style to carry over. Refer to them by order in the prompt ("the mug in image 1"). |
count | 1-4 parallel variations, each billed. Use it instead of asking for "four versions" in the prompt; the model does not reliably honor counts written in text. |
googleSearch | Ground in live information (scores, weather, recent events, real landmarks, data for an infographic). Pair with pro for text-heavy results. |
outputName | Readable base file name, e.g. hero-mug-v2. Edits default to the source name plus -edit. |
edit_image.aspectRatio | Set a new ratio to outpaint (extend the canvas); omit to keep the source ratio. |
edit_image.model | Omit: the server keeps editing with the model that made the source. |
| Destination | aspectRatio |
|---|---|
| Square post, avatar, icon, sticker | 1:1 |
| Instagram portrait, feed ad | 4:5 |
| Story, Reel, TikTok, phone wallpaper, 9:16 video keyframe | 9:16 |
| YouTube thumbnail, slide, desktop, 16:9 video keyframe | 16:9 |
| Poster, book cover | 2:3 or 3:4 |
| Cinematic banner | 21:9 (web banners and skyscrapers: 4:1, 8:1, 1:4, 1:8 on nb2) |
nb2 at 1K. Switch to pro when text accuracy or scene complexity matters. Explore with count: 2-4 or nb2-lite.gemini-media:generate_image.text and warnings.gemini-media:edit_image: one specific change per call, and say what must stay unchanged. If quality drifts after three or four edits, regenerate from a refined prompt that folds in what you learned, passing the best result as a reference.2K/4K, or edit the chosen image with imageSize set and "keep everything unchanged" (expect small differences). Past 4K (large prints, 8K), use gemini-upscale. Deliver path, uri, model and cost.pro for anything beyond a short headline. Finalize the copy before generating; rewrite it yourself rather than asking the model to invent it.pro up to 6 objects, 5 characters and 3 style references (14 images total either way).Examples:
generate_image(model: "nb2", aspectRatio: "1:1", prompt:
"A studio product photograph of a matte black ceramic coffee mug on polished concrete.
Three-point softbox lighting gives soft highlights and no harsh shadows. Slightly elevated
45-degree angle, sharp focus on the steam rising from the coffee. Minimal, premium e-commerce look.")
generate_image(model: "pro", aspectRatio: "2:3", imageSize: "2K", prompt:
"A retro 1970s travel poster for the Dolomites. Bold headline \"DOLOMITI\" in cream condensed
sans-serif across the top, smaller line \"Summer 2027\" below it. Flat screen-print style,
limited palette of burnt orange, teal and cream, jagged peaks at sunset, a cable car crossing.")
edit_image(image: "gemini-media://files/living-room.png", prompt:
"Change only the blue sofa into a vintage brown leather chesterfield. Keep the pillows,
the rest of the room, the camera angle and the lighting unchanged.")
generate_image(referenceImages: ["dress.png", "model.png"], aspectRatio: "4:5", prompt:
"Professional e-commerce fashion photo: the woman from image 2 wears the blue floral dress
from image 1. Full-body shot outdoors, lighting and shadows matched to a sunny terrace.")
More templates (infographics with search, icons, object removal, relighting, outpainting, character consistency): references/prompt-patterns.md.
count, imageSize and model multiply the price. Draft with nb2 at 1K (or nb2-lite for large batches) and upscale only the keeper.pro with count > 1, batches of more than four images, many large references) call gemini-media:estimate_cost with mediaType: "image", model, imageSize, count, inputImages and compare: true, then tell the user the figure. Estimates exclude any Google Search grounding fee.[confirmation] means the call is above the user's approval threshold. Show the user the amount, and only after they agree retry the same call with approvedCostUsd set to that amount. Never invent approval.[budget] means a spending cap was reached: stop, tell the user, and show gemini-media:get_usage. Do not retry.Tool errors read [kind] message followed by Hint: .... Follow the hint; in short:
| Kind | Do |
|---|---|
invalid | Fix the argument named in the message (unsupported ratio or size for the model, too many references, bad path). gemini-media:list_models with detail: true shows valid values. For a path "outside the allowed directories", pass the image as a data: URI, copy it into the server's output directory if you share its filesystem, or ask the user to allow that folder (gemini-media:get_config shows the input policy). |
safety | Rephrase: drop real people's names, brands, copyrighted characters, violence. Do not resend the same prompt. |
quota, unavailable | The server already retried with backoff. Wait briefly, retry once with a smaller count or size, then report. |
timeout | Not retried by the server: the generation may still finish and be billed, so a retry can double-charge. Retry once at most, preferably at a smaller size or with nb2, and mention it to the user. |
not_found | Model retired or not on this backend, or a missing input file: check gemini-media:list_models (live: true) or the path. |
auth, permission | Stop. Ask the user to run gemini-media-mcp doctor and check the API key, billing or Vertex AI access. |
budget, confirmation | See Cost and approvals. |
Never loop on an error that costs money; one retry at most.
pro final, animating it), not a long menu.nb2, 1K, ratio from the destination), stay below the confirmation threshold (never set approvedCostUsd yourself), review your own output and make at most two corrective edits. Finish with a short report: prompt used, model, parameters, file paths, total cost.uri as image, lastFrame or referenceImages; generate keyframes at 16:9 or 9:16 to match the clip).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/gemini-media-productionPlans and produces multi-asset media projects with the gemini-media MCP server by chaining Nano Banana images, Veo or Gemini Omni video, Gemini TTS voiceover and Lyria music into one deliverable - product promos, social ads, short story or explainer videos, trailers, podcast intros. Covers shot lists, consistent characters across shots, an up-front budget with cost estimates and approval, parallel video jobs, and assembly with ffmpeg. Use when a request needs two or more media types or several shots combined, even if the user just says "make a promo video". For a single image, clip, voiceover or track, use gemini-image, gemini-video, gemini-speech or gemini-music instead./gemini-musicComposes original music with Google Lyria through the gemini-media MCP server - 30-second clips, loops, jingles and stingers, or full songs of a few minutes with vocals, custom lyrics in any language, section structure and timing control, instrumental beds for videos and podcasts, and music inspired by images. Use when the user wants a song, beat, soundtrack, theme tune, background or intro music, or describes a musical idea to hear, even without naming Lyria. Not for spoken voiceover or narration (use gemini-speech), sound effects inside a video clip, or editing, remixing or extending an existing audio file./gemini-speechGenerates natural speech audio (WAV) with Gemini text-to-speech through the gemini-media MCP server - voiceovers, narration, audiobook passages, announcements, explainer and ad reads, and two-speaker podcast or dialogue scripts, with controllable delivery style, 30 prebuilt voices, inline sounds like sighs and pauses, and automatic language detection. Use when the user wants text read aloud, a voiceover or narration track, TTS, a spoken intro, or a conversation rendered as audio. Not for music or singing (use gemini-music), transcription or speech-to-text, dialogue inside a generated video clip (gemini-video), or live voice chat./gemini-upscaleUpscales photos and images to a target size from 1K up to 8K (the default) and beyond with the gemini-media MCP server. It plans the cheapest set of crops that covers the target (one tile up to about 4K, a grid of 4K tiles beyond), re-renders each with Nano Banana 2.1 using the whole photo as context, aligns and blends them into one large PNG, then optionally re-renders a few regions to fix defects such as mismatched eyes. Use it when the user wants to upscale, enlarge or add detail to a photo for print, wallpapers or large screens, even if they never mention Gemini. Limits - it invents plausible detail rather than recovering the original, so faces, eyes, small text and textures can change; it is unsuitable for forensic, archival, evidence or product-label work; a run costs about $0.04 at 1K to $0.50-1.20 at 8K on nb2./gemini-videoGenerates and edits short video clips with native audio using Google Veo and Gemini Omni Flash through the gemini-media MCP server - text-to-video, animating a still image, first-to-last-frame transitions, keeping a character or product consistent from reference images, changing an existing clip with an instruction, and extending clips into longer shots. Handles the asynchronous job flow, resolution and duration rules, and cost approval for this expensive medium. Use when the user wants a video, clip, animation, b-roll, cinematic shot or product spin, wants to bring a picture to life, or wants to add, remove or restyle something in a short clip. Not for trimming or cutting footage, screen recordings, slideshows, or audio-only work.npx claudepluginhub mordor-forge/gemini-media-mcp --plugin gemini-mediaOther plugins' skills for the same job