
Mode: Text to Image
Comic Strip
Suggested test configuration: 1:1
Bring Nano Banana 2 image generation and editing into your product with Topview API. Create 1K, 2K, or 4K images and edit with one or two input images, with transparent per-image pricing, a ready-to-use Playground, and developer docs.
Text to Image · 1k
Settings here are a preview. Generate copies your prompt and opens the matching Platform Playground, where you confirm the final settings.
EXAMPLES & PROMPTS
Real Nano Banana 2 outputs with the prompts behind them. Copy a prompt and test it in the Playground.

Mode: Text to Image
Suggested test configuration: 1:1

Mode: Image Editing
Suggested test configuration: 1:1

Mode: Text to Image
Suggested test configuration: 1:1

Mode: Image Editing
Suggested test configuration: 1:1
Know the settings before you build.
A quick reference for Nano Banana 2 settings listed in Topview API Platform docs. Each mode has its own input requirements.
| Parameter | Value |
|---|---|
| Provider / Model | Google / Nano Banana 2 |
| API route | google/nano-banana-2 |
| Generation modes | Text to Image · Image Editing |
| Resolution | 1K · 2K · 4K (default 1K) |
| Aspect ratios | 1:1 · 16:9 · 9:16 |
| Image Editing inputs | 1–2 images |
| Prompt length | Up to 4,000 characters |
| Task pattern | Async submission + polling + output retrieval |
| Pricing | Per generated image; settlement follows actual usage |
DEVELOPER QUICKSTART
Submit an asynchronous prediction with your Platform API key, then poll the returned task ID to retrieve the output.
# Set TOPVIEW_API_PLATFORM_KEY once. Preserve REQUEST_KEY and input for uncertain retries.
# For a NEW task only, unset REQUEST_KEY first. Save data.id to resume GET only.
: "${TOPVIEW_API_PLATFORM_KEY:?Set TOPVIEW_API_PLATFORM_KEY first}"
export REQUEST_KEY="${REQUEST_KEY:-$(uuidgen)}"
curl --fail-with-body 'https://platform-backend.topview.ai/api/v1/models/google/nano-banana-2/text-to-image/predictions' \
-H "Authorization: Bearer $TOPVIEW_API_PLATFORM_KEY" \
-H "Idempotency-Key: $REQUEST_KEY" \
-H 'Content-Type: application/json' \
--data '{
"prompt": "A blue ceramic cup on a wooden table",
"aspect_ratio": "1:1",
"resolution": "1k"
}'
# Poll data.id until completed or failed.
curl --fail-with-body 'https://platform-backend.topview.ai/api/v1/predictions/REQUEST_ID' \
-H "Authorization: Bearer $TOPVIEW_API_PLATFORM_KEY"Sample matches the Nano Banana 2 text-to-image request in Platform docs. Keep TOPVIEW_API_PLATFORM_KEY on your server only.
Step 1
Sign in to Topview API Platform and create an API key with the required model permissions. Keep your key secure and use it to authenticate API requests.
Step 2
Submit a text prompt or upload reference images for editing. Configure the supported image settings, send your API request, and save the returned task ID.
Step 3
Check the task status until generation is complete. Retrieve the image URLs, review the final usage cost, and save your generated images.
BUILT FOR PRODUCTION WORKFLOWS
Nano Banana 2 gives image-generation products a focused set of sizes and common aspect ratios for practical marketing and editing tasks.
Turn an item photo into alternative backgrounds or lifestyle presentations while working with one or two editing references.
Create square, widescreen, and vertical image concepts for posts, thumbnails, and ad placements using 1:1, 16:9, or 9:16.
Use two source images to guide a combined visual concept, such as a product placed into a chosen environment.
Choose 1K, 2K, or 4K output for campaign concepts, visual mockups, and asset review workflows.
WHY TOPVIEW API
Topview keeps Nano Banana 2’s supported modes, output sizes, and reference-image limits visible as you test and build.
Inspect the current per-image price for 1K, 2K, and 4K before deciding which size is right for each task.
Use the Playground and documentation to check how the editing route handles the model’s supported reference-image inputs.
Implement the three supported formats―square, landscape, and portrait―without exposing unsupported aspect-ratio options.
Evaluate whether your application needs the 2.1 variant’s broader aspect-ratio and reference-image support, using the same Platform account.
EXPLORE RELATED APIS
YOUR NEXT IMAGE STARTS HERE
Try your first prompt in the Playground, compare current pricing, or follow the docs to integrate Nano Banana 2 into your application.
TRANSPARENT PRICING
Compare Topview rates with the official Nano Banana 2 rates and fal.ai. Prices are read from Topview API Platform and refreshed daily.
4K Output
Text to Image · 4K
Topview
$0.0700 /image
Official: $0.1400/image
fal.ai: $0.0600 /image
Save 50% vs official
Entry Price
Text to Image · 1K
Topview
$0.0350 /image
Official: $0.0700/image
fal.ai: $0.0600 /image
Save 50% vs official · Save 42% vs fal.ai
Per-image rates by setting, with fal.ai alongside. Topview and official rates are read from Topview API Platform.
Viewing Text to Image · 3 setups
| Setup | Topview | Official | fal.ai | Savings |
|---|---|---|---|---|
| Text to Image1K · Generated images | $0.0350 /image | $0.0700 /image | $0.0600 /image | 50% lower than official42% lower than fal.ai |
| Text to Image2K · Generated images | $0.0525 /image | $0.1050 /image | $0.0600 /image | 50% lower than official13% lower than fal.ai |
| Text to Image4K · Generated images | $0.0700 /image | $0.1400 /image | $0.0600 /image | 50% lower than official |
Rates are per generated image at the listed setting, and each output image is billed. fal.ai rates are fal's published per-image prices; fal's edit price assumptions may differ by input count. Confirm the current quote on Platform before production spend.