Create or remix images with optional references, broad aspect ratios, and higher-resolution output.
Provider: Google
Category: image generation
Endpoint: /v1/tasks
Status: Available
Cost: See live page pricing
Create or remix images with optional references, broad aspect ratios, and higher-resolution output.
Pricing
Standard Usage
Upload reference images
Choose the output image file format
Ready for generation
Configure your parameters and click "Run" to see the output here.
Choose an adjacent model by task, output tier, and reference-image needs.
A general-purpose route with optional references and broad aspect-ratio coverage.
Create or remix images with optional references, broad aspect ratios, and higher-resolution output.
The Playground and API use the same model ID: nano-banana-2. This endpoint accepts text prompts only; reference-image editing uses the separate Image-to-Image route.
Explore reference limits, sizes, formats and quality settings for Nano Banana 2.
Final cost depends on the output tier and input add-ons. Check the live page price and task record for the final charge.
Choose the destination and aspect ratio before composing subject, scene, material, light, and text.
Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.
POST /v1/tasksnano-banana-2curl -X POST "https://api.hiapi.ai/v1/tasks" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2",
"input": {
"prompt": "A cinematic product campaign with sharp text",
"aspect_ratio": "1:1",
"output_format": "png",
"resolution": "2K"
}
}'The create request immediately returns a taskId; image generation continues asynchronously.
Create or remix images with optional references, broad aspect ratios, and higher-resolution output.
Yes, up to 14 optional references. Omit them for text-only generation.
The page exposes 1K, 2K, 4K and 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9, auto; use the Playground contract for the final available set.
Billing is per successful generated image. Resolution or quality differences, when present, are reflected by the live page price.
POST an asynchronous task to /v1/tasks with model set to nano-banana-2 and put generation fields inside input.
Start with the subject, environment, and visual goal, then add material, light, camera, and exact text.
Draft
1K
Final
4K
Generate in 1K / 2K / 4K across 15 supported aspect ratios.
Confirm the result in Playground, then reuse the same prompt and model ID in an asynchronous task.