Quick Answer

  • Supports prompt-based text-to-image workflows for marketing and creative assets.
  • Supports reference-guided generation for stronger style consistency.
  • Stabilize parameters in this guide first, then move into production API.

Key Parameters

  • model | string | required | nano-banana-pro | - | Exact model identifier from ToAPIs.
  • prompt | string | required | - | - | Primary image instruction prompt.
  • size | string | optional | 1:1 | - | Output aspect ratio, model-dependent.
  • n | integer | optional | 1 | - | Number of generated images per request.
  • reference_images | file[] | optional | - | - | Reference images for style consistency.

Common Errors

  • 400 invalid_request_error: trigger=Missing or invalid payload fields.; fix=Validate model/prompt/size payload fields.; retry=Retry only after payload fix.
  • 401 authentication_error: trigger=Missing or invalid API key.; fix=Verify Authorization header and key scope.; retry=Retry after authentication fix.

Model Guide

Nano Banana Pro

Model ID: nano-banana-pro

Vendor: UnknownModalities: ImagePrice: $0.0500 /requestUpdated: 2026-05-02

Nano Banana Pro by Unknown is optimized for image generation/editing workflows. Contracts follow ToAPIs docs for production-ready API integration.

Model Overview

Quick Answer

  • Supports prompt-based text-to-image workflows for marketing and creative assets.
  • Supports reference-guided generation for stronger style consistency.
  • Stabilize parameters in this guide first, then move into production API.

Nano Banana Pro Model Features

Core Section

Core capabilities and practical engineering value

High-quality generation

Generate production-ready visual assets via a unified API.

Reference consistency

Use references to stabilize style and composition.

Parameter tuning

Tune ratio/count/sampling for quality and cost balance.

How to Use Nano Banana Pro API

  1. Set Authorization: Bearer <YOUR_API_KEY>.
  2. Call image generation endpoint with model, prompt, and size.
  3. Optionally pass reference_images for stronger consistency.
  4. Poll task status and download output URLs.
Nano Banana Pro

When to Use

  • When generating marketing, e-commerce, and social visual assets quickly.
  • When reference-guided consistency is required.

Runtime Behavior

  • Uses unified image generation endpoints with task-style responses.
  • Poll task status and fetch result URLs after completion.
Nano Banana Pro

Key Parameters

ParameterTypeRequiredDefaultRangeDescription
modelstringYesnano-banana-pro-Exact model identifier from ToAPIs.
promptstringYes--Primary image instruction prompt.
sizestringNo1:1-Output aspect ratio, model-dependent.
nintegerNo1-Number of generated images per request.
reference_imagesfile[]No--Reference images for style consistency.

Common Errors

400 invalid_request_error

Trigger: Missing or invalid payload fields.

Fix: Validate model/prompt/size payload fields.

Retry: Retry only after payload fix.

401 authentication_error

Trigger: Missing or invalid API key.

Fix: Verify Authorization header and key scope.

Retry: Retry after authentication fix.

Nano Banana Pro

FAQ

What is Nano Banana Pro best for?

Best for high-frequency creative generation and reference-guided consistency workflows.

Image or video model error: invalid apitype: -1

This usually means the request was sent to the wrong endpoint. Image and video models typically do not use the chat endpoint. Instead, submit the documented HTTP task request and poll the task status endpoint for results. Check the actual request code, URL, and payload first.

An image or video task failed, but the user was still charged

Ask the user for the task log or screenshot first and check whether input or output token usage appears. If token accounting shows up, the request was likely sent through a chat endpoint instead of the proper media workflow. Image and video models usually run as async HTTP task APIs: submit the task first, then poll by task id according to the relevant docs.

Mode Notes

Text to Image with Nano Banana Pro

Generate images directly from prompt instructions.

Mode Parameters

modelpromptsizen

Best Scenarios

  • Product key visuals
  • Ad creatives
  • Concept art

Reference-guided Image with Nano Banana Pro

Use references to generate style-consistent outputs.

Mode Parameters

reference_imagespromptsizen

Best Scenarios

  • Brand consistency
  • Character consistency
  • Series posters

Related APIs

지금 시작할 준비가 되셨나요?

무료로 가입하고 엔터프라이즈급 AI API 게이트웨이의 강력함을 경험해 보세요

ToAPIs

엔터프라이즈 AI API 게이트웨이. GPT-5, Claude, Gemini 등 50개 이상의 모델을 하나의 통합 API로 이용하세요.

법률

© 2026 ToAPIs. All rights reserved.

모든 시스템 정상 운영 중