roasOS
ModelsScene

Scene · Nano Banana Pro

A scene is the identity + product composite still that later becomes a video first frame. This endpoint makes one scene PNG with Nano Banana Pro and returns a `scene_id` that /v1/ugc/* and /v1/video/* accept.

Family scene · model nano-banana-pro · catalog model-catalog@2026-10-06.v5 · pricing customer-pricing@2026-11-05.v15.

Endpoint

POST https://api.roasos.com/v1/scene/nano-banana-pro

Send your API key as a bearer token. The key needs the scope api:write. Every paid request also needs an Idempotency-Key header.

The envelope fields quote_only, quote_id, webhook_url and wait_timeout_seconds behave the same on each model endpoint. Refer to Jobs and Quotes and credits.

Good at

Use this endpoint to put an avatar (identity) and a product into one framed still, ready to animate. The worker adds the CHARACTER PLACEMENT block (with the rule "re-render the whole person, never paste"), the PRODUCT PLACEMENT block, and the STYLE GUIDANCE block for any references, so the model knows which image is the person, which is the product, and which is mood only. The default frame is 9:16 for vertical ad placements. Set remix: true with references to restyle an existing ad frame. The output is a scene record, not a plain image: it carries a scene_id. It does not make 4K output; the scene is a first frame, and video models read at most 2K.

Pricing

The unit is one scene. Pricing key: nano-banana-pro.

RequestCredits
1K2
2K2

The credits come from the roasOS pricing table. No other field changes the price. To get the exact price of your request, send it with quote_only: true first.

Modes

  • composite

Provider endpoints: fal-ai/nano-banana-pro · fal-ai/nano-banana-pro/edit.

Request fields

FieldTypeRequiredDefaultRule
aspect_ratioenumno9:16auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16
avatar_idstringno—UUID
display_promptstringno—≥ 1 character; ≤ 500 characters
namestringno—≥ 1 character; ≤ 200 characters
product_idstringno—UUID
product_imagesstring[]no—≤ 1 items
promptstringyes—≥ 1 character; ≤ 8,000 characters
quote_idstringno—UUID
quote_onlybooleannofalse—
referencesstring[]no—≤ 12 items
remixbooleannofalse—
resolutionenumno1K1K, 2K
wait_timeout_secondsintegerno00–60
webhook_urlstringno—https URL; ≤ 4,096 characters

The schema is strict. A field that is not in this table gets 400 unsupported_option. The field names are the roasOS role names. One role has one name in every family.

Media

This endpoint accepts these media roles:

  • avatar_id — identity; the saved character reference sheet, with a derived portrait only where the model requires a single face or source frame
  • product_id — product; resolves to the product image list
  • product_images — product reference images
  • references — style and appearance references
RoleItemsMaximum sizeContent typesDuration
product_images≤ 110 MBimage/jpeg, image/png, image/webp—
references≤ 1210 MBimage/jpeg, image/png, image/webp—

Every other role is refused: elements, reference_images, image_url, end_image_url, scene_id, scene_image, video_urls, video_url, audio_urls, audio_url, voice_id. A refused role gets 400 unsupported_option.

Each media URL must be an immutable object on https://cdn.roasos.com that your workspace owns. Any other URL gets 400 reference_media_not_workspace_owned. Refer to Reference media and uploads to learn how to put a file there.

Prompt

Limit: 8,000 characters for the caller; the wrapper counts toward the 10,000-character engine cap. No tag syntax; the wrapper names the roles.

  • Describe the frame you want to animate: where the person stands, where the product is, what the person does, the setting and the light.
  • Give the framing that the video model needs ("half body, product at chest height, eyes to camera").
  • Do not describe the person's face or the product's label; the roles carry them and the wrapper tells the model to re-render, never paste.
  • Leave room in the frame for motion (hands, product lift).
  • Use references for mood and palette only; state "match the lighting of the references" in the prompt if that is the intent.
  • Keep the same prompt structure across scenes of one campaign so the frames match.

Not exposed

These catalog entries describe omitted inputs, pinned values and source constraints. They do not imply that the provider accepts every listed field.

  • output_format — pinned to png.
  • safety_tolerance — pinned to 4.
  • enable_web_search — pinned to false.
  • limit_generations — pinned to true.
  • system_prompt — not accepted by this public endpoint.
  • sync_mode — not accepted by this public endpoint.
  • num_images — pinned to 1.
  • resolution — these values are not available: 4K.

Result

The result kind is scene. Always present: scene_id, url.

{
  "data": {
    "id": "gen_…",
    "kind": "scene",
    "model": "nano-banana-pro",
    "status": "completed",
    "result": {
      "scene_id": "00000000-0000-4000-8000-000000000000",
      "url": "https://cdn.roasos.com/workspaces/ws_01/result"
    }
  }
}

The files are immutable objects on https://cdn.roasos.com. A result URL is a valid media input for your next request.

Example

The three steps are always the same: quote, run, poll.

# 1. Quote. Nothing is spent.
curl -X POST https://api.roasos.com/v1/scene/nano-banana-pro \
  -H "Authorization: Bearer roasos_sk_live_..." \
  -H "Idempotency-Key: 0f1c9e2a-nano-banana-pro-0001" \
  -H "Content-Type: application/json" \
  -d '{"quote_only":true,"prompt":"A woman holds the bottle at eye level in a bright kitchen, morning light, static camera."}'
# 200 { "data": { "kind": "quote", "quote_id": "q_7Hk...", "credits": 2, "expires_at": "...",
#        "confirmation": { "model": "nano-banana-pro", "example": "1K" } } }

# 2. Run. Same body, same Idempotency-Key, quote_id in place of quote_only.
curl -X POST https://api.roasos.com/v1/scene/nano-banana-pro \
  -H "Authorization: Bearer roasos_sk_live_..." \
  -H "Idempotency-Key: 0f1c9e2a-nano-banana-pro-0001" \
  -H "Content-Type: application/json" \
  -d '{"quote_id":"q_7Hk...","prompt":"A woman holds the bottle at eye level in a bright kitchen, morning light, static camera."}'
# 201 { "data": { "id": "gen_...", "status": "queued", "credits_reserved": 2 } }

# 3. Poll, then read the result.
curl https://api.roasos.com/v1/jobs/gen_.../status -H "Authorization: Bearer roasos_sk_live_..."
curl https://api.roasos.com/v1/jobs/gen_.../result -H "Authorization: Bearer roasos_sk_live_..."

Today

POST /v1/scenes { "name" (≤ 200), "prompt" (≤ 10,000), "model": "nano-banana-pro", "resolution": "1K"|"2K"|"4K", "webhook_url"?, "quote_only"?, "quote_id"?, "options": { "aspect_ratio", "reference_images" (≤ 4), "avatar_id", "product_image", "mode": "ugc"|"product"|"custom" } }. Caution: today's public route sends the prompt raw, with no CHARACTER / PRODUCT / STYLE placement wrapper; today's default aspect_ratio is 16:9; 3:2 and 2:3 are advertised but refused. POST /v1/scenes becomes an alias of this endpoint.

See also

  • llms.txt for this model — the same facts as one plain-text file for an agent.
  • GET https://api.roasos.com/v1/catalog/nano-banana-pro — the machine-readable form: enums, defaults, limits and prices. Refer to the API reference.
  • Jobs — how to poll a job and read its result.
  • Provider endpoints: fal-ai/nano-banana-pro · fal-ai/nano-banana-pro/edit.

On this page