nano-banana-2-1
Installation
SKILL.md
Nano Banana 2.1
Generate or edit hosted images through POST /gemini/image/generate. The script fixes provider gemini and model gemini-nano-banana-2.1; do not pass routing overrides. This model uses the server's Interactions API path, so the older Nano Banana 2 config fields do not apply.
Workflow
- Require a user-provided image prompt or editing instruction. Prefer
scripts/generate_image.shover ad hoc API requests. - Map local references to repeatable
--image, remote HTTP(S) references to--image-url, and directories to--image-dir. Up to 14 PNG/JPEG/WebP references are supported in total, each under 50MB. - Use
FREVANA_TOKEN, or a one-time--tokenoverride. Send it asAuthorization: Bearer; ignoreFREVANA_API_KEY. Missing credentials fail fast in non-interactive runs. Never print credentials. - The script sends
x-frevana-agent-app-instance-idwhenFREVANA_AGENT_APP_INSTANCE_IDis present. It also supportsX_FREVANA_AGENT_APP_INSTANCE_IDand the explicit--agent-app-instance-idoverride. - Return a concise result and the primary hosted URL at
data[0].image_url(orgenerated_images[0].image_urlfor compatible responses). Preserve API fields and URLs; return full JSON when requested.--outputsaves the validated response JSON locally. - If
--job-idis supplied, the response acknowledges an asynchronous job; it does not confirm successful generation. Follow the async instructions below before claiming completion.