by Faro
Generate and edit images using Google Gemini models. Standard tier uses Gemini 2.5 Flash Image for fast, affordable generation; Pro tier uses Gemini 3 Pro Image for higher quality and 4K support.
Generate or edit an image with Google Nano Banana (Gemini 2.5 Flash Image). Pass only a prompt for text-to-image; add image_data+image_mime_type (base64) or image_url+image_url_mime_type (public URL) for image-to-image editing.
Text instruction for the image to generate or edit.
Publicly accessible URL of source image. Requires image_url_mime_type.
Base64-encoded source image (PNG/JPEG/WebP/GIF). Requires image_mime_type.
MIME type of image_data.
MIME type of the image at image_url.
curl -X POST "https://api.askfaro.com/invoke/nano-banana/generate_image" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"arguments": {
"prompt": "<prompt>"
}
}'faro invoke nano-banana/generate_image --params '{"prompt":"<prompt>"}'Install pip install askfaro-cli, then faro auth login.
Generate or edit an image with Google Nano Banana Pro (Gemini 3 Pro Image) — higher quality, 4K support. Pass only a prompt for text-to-image; add image_data+image_mime_type (base64) or image_url+image_url_mime_type (public URL) for image-to-image editing.
Text instruction for the image to generate or edit.
Publicly accessible URL of source image. Requires image_url_mime_type.
Base64-encoded source image (PNG/JPEG/WebP/GIF). Requires image_mime_type.
MIME type of image_data.
MIME type of the image at image_url.
curl -X POST "https://api.askfaro.com/invoke/nano-banana/generate_image_pro" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"arguments": {
"prompt": "<prompt>"
}
}'faro invoke nano-banana/generate_image_pro --params '{"prompt":"<prompt>"}'Install pip install askfaro-cli, then faro auth login.
Image generation and editing with Google's Gemini image models — codenamed "Nano Banana."
generate_image (Standard)Gemini 2.5 Flash Image. Fast and affordable. Good for everyday image generation, asset variations, and prompt iteration.
{
"prompt": "Isometric pixel-art bakery storefront, soft morning light",
"aspect_ratio": "1:1"
}
generate_image_proGemini 3 Pro Image. Higher fidelity, supports up to 4K output, better at fine detail and typography. Use when quality matters more than throughput.
{
"prompt": "Editorial-style product photo of a ceramic teapot on dark walnut",
"aspect_ratio": "16:9",
"resolution": "2K"
}
Both tools also accept input images for editing / composition — pass reference images alongside the prompt and the model will use them as a visual anchor.
Useful options
aspect_ratio — 1:1, 4:3, 3:4, 16:9, 9:16resolution (pro only) — 1K, 2K, 4Kimages — reference images for edit / composition modeVariable, billed from upstream Google AI usage on completion. Roughly:
Charged only on success.
A Google AI Studio API key on the publisher's Faro connection — no user-side configuration required.