Nano Banana 2

Generate images with Nano Banana 2 (Gemini 3.1 Flash) through VicSee API. 4K resolution, 15 aspect ratios, web grounding, 5-character consistency. 10-30 credits per image.

Try it now: Use the Nano Banana 2 Generator to create images with Flash speed.

Pricing

ResolutionCreditsPrice (Pro Yearly)Price (Pro Monthly)
1K (1024px)10$0.060$0.120
2K (2048px)16$0.096$0.192
4K (4096px)30$0.180$0.360

Credits are deducted only on successful generation.

Endpoint

POST https://vicsee.com/api/v1/generate

See Authentication for API key setup.


Text to Image

Generate images from text descriptions with Flash speed.

Request Parameters

ParameterTypeRequiredDescription
modelstringYesnano-banana-2-text-to-image
input.promptstringYesDetailed description of the image (up to 20,000 characters)
input.resolutionstringNo1K, 2K, or 4K (default: 1K)
input.aspect_ratiostringNoSee aspect ratios (default: auto)
input.output_formatstringNopng or jpg (default: jpg)
input.google_searchbooleanNoEnable web grounding for real-time accuracy (default: false)

Example Request

curl -X POST https://vicsee.com/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2-text-to-image",
    "input": {
      "prompt": "A majestic snow leopard resting on a Himalayan cliff at golden hour, photorealistic, 8K detail",
      "resolution": "4K",
      "aspect_ratio": "16:9",
      "output_format": "jpg"
    }
  }'

Image to Image

Edit or transform images using up to 14 reference images.

Request Parameters

ParameterTypeRequiredDescription
modelstringYesnano-banana-2-image-to-image
input.promptstringYesDescription of the transformation
input.image_urlsarrayYesArray of reference image URLs (up to 14, max 30MB each)
input.resolutionstringNo1K, 2K, or 4K (default: 1K)
input.aspect_ratiostringNoOutput aspect ratio (default: auto)
input.output_formatstringNopng or jpg (default: jpg)
input.google_searchbooleanNoEnable web grounding (default: false)

Example Request

curl -X POST https://vicsee.com/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2-image-to-image",
    "input": {
      "prompt": "Transform this photo into a Studio Ghibli anime style illustration",
      "image_urls": ["https://example.com/photo.jpg"],
      "resolution": "2K",
      "aspect_ratio": "1:1"
    }
  }'

Supported Aspect Ratios

Nano Banana 2 supports 15 aspect ratios:

RatioTypeUse Case
autoAutomaticModel selects best ratio
1:1SquareSocial media, profile pictures
16:9WidescreenYouTube thumbnails, presentations
9:16VerticalStories, Reels, TikTok
4:3StandardBlog images, traditional photos
3:4PortraitPortraits, product photos
4:5SocialInstagram posts
5:4LandscapeDesktop wallpapers
2:3PortraitPosters, book covers
3:2LandscapePhotography, prints
21:9UltrawideCinematic banners
4:1BannerWebsite headers
1:4Tall BannerSidebar ads
8:1PanoramicPanoramic scenes
1:8Tall PanoramicVertical panoramas

Web Grounding

Set google_search: true to enable Google Web Search grounding. This helps generate accurate depictions of specific subjects, landmarks, trending topics, and current events.

curl -X POST https://vicsee.com/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2-text-to-image",
    "input": {
      "prompt": "The Eiffel Tower decorated for the 2024 Olympics",
      "resolution": "2K",
      "google_search": true
    }
  }'

Response

See Tasks for polling task status and retrieving results.

{
  "task_id": "abc123",
  "status": "pending"
}