Nano Banana 2
Generate images through Frevana's AI Factory image API.
This skill returns the validated API response JSON unchanged. Treat generated_images[0].image_url as the primary image URL.
Trigger Phrases
Nano Banana 2nano banana 2nano banana
What This Skill Needs
- user-provided
promptorcontents - optional Frevana image config fields:
seed,maxOutputTokens,responseModalities,imageConfig.aspectRatio,imageConfig.imageSize FREVANA_TOKENin the environment variables, or an explicit--tokenoverride for the current runcurlbashpython3
Execution Order
- Confirm the user provided the image prompt.
- Do not ask for or pass through image routing overrides; the Frevana script owns them.
- Prefer the script over ad hoc
curlcommands. - Let the script read
FREVANA_TOKENfirst. - In non-interactive runs, fail fast if the token is missing and tell the user to set
FREVANA_TOKENor pass--token. - Return the raw API response JSON, or the first image URL when the user only wants the hosted asset.
- Save the JSON with
--outputwhen useful.
Allowed Options
--seed--max-output-tokens--response-modality(repeatable)--aspect-ratio--image-size(1K,2K,4K; numeric values like1800andWxHvalues like1024x1024are normalized to the nearest tier, using the larger edge forWxH; defaults to1K)
Command
bash <skill-path>/scripts/generate_image.sh \
--prompt "A playful dashboard scene with floating cards and light SaaS illustration styling" \
--seed 42 \
--max-output-tokens 2048 \
--response-modality IMAGE \
--aspect-ratio 16:9 \
--image-size 2K \
--output ./out/nano-banana-2-result.json
Response Shape
{
"generated_images": [
{
"image_url": "https://static.frevana.com/images/user-id/example-image-id.png",
"enhanced_prompt": "string",
"rai_filtered_reason": "string",
"mime_type": "image/png"
}
],
"positive_prompt_safety_attributes": {},
"credits_consumed": 1
}
Notes
- Do not pass image routing overrides; the script rejects them.
- Do not rewrite, proxy, or transform the returned Frevana image URLs unless the user asks for that.