Videoslash API
Creative studioGeneratedModels

Nano Banana 2

Creative Studio image model reference for the public API.

Nano Banana 2

Public model ID: nano-banana-2

Asset type: image

Category: Generation

Starting credits: 0.35 (defaults: 0.35)

Prompt required.

Start a generation

curl -s -X POST "$API_BASE_URL/v1/creative-studio/generations" \
  -H "Authorization: Bearer vsl_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "nano-banana-2",
    "prompt": "Your prompt here",
    "image_input": ["https://example.com/reference.jpg"],
    "aspect_ratio": "match_input_image"
  }' | jq

Poll GET /v1/creative-studio/generations/{id} until status is completed. Completed generations return outputUrl on cdn.videoslash.com.

Media parameters

NameTypeConstraintsDefaultDescription
image_inputarrayoptional · max items: 14[]Input images to transform or use as reference (supports up to 14 images)

Settings parameters

NameTypeConstraintsDefaultDescription
aspect_ratioenumoptional · enum: match_input_image, 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:9match_input_imageAspect ratio of the generated image
resolutionenumoptional · enum: 1K, 2K, 4K1KResolution of the generated image. Higher resolutions take longer to generate.
google_searchbooleanoptionalfalseUse Google Web Search grounding to generate images based on real-time information (e.g. weather, sports scores, recent events).
image_searchbooleanoptionalfalseUse Google Image Search grounding to find web images as visual context for generation. When enabled, web search is also used automatically.
output_formatenumoptional · enum: jpg, pngjpgFormat of the output image

On this page