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.
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-proSend 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.
| Request | Credits |
|---|---|
1K | 2 |
2K | 2 |
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
| Field | Type | Required | Default | Rule |
|---|---|---|---|---|
aspect_ratio | enum | no | 9:16 | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |
avatar_id | string | no | — | UUID |
display_prompt | string | no | — | ≥ 1 character; ≤ 500 characters |
name | string | no | — | ≥ 1 character; ≤ 200 characters |
product_id | string | no | — | UUID |
product_images | string[] | no | — | ≤ 1 items |
prompt | string | yes | — | ≥ 1 character; ≤ 8,000 characters |
quote_id | string | no | — | UUID |
quote_only | boolean | no | false | — |
references | string[] | no | — | ≤ 12 items |
remix | boolean | no | false | — |
resolution | enum | no | 1K | 1K, 2K |
wait_timeout_seconds | integer | no | 0 | 0–60 |
webhook_url | string | no | — | 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 frameproduct_id— product; resolves to the product image listproduct_images— product reference imagesreferences— style and appearance references
| Role | Items | Maximum size | Content types | Duration |
|---|---|---|---|---|
product_images | ≤ 1 | 10 MB | image/jpeg, image/png, image/webp | — |
references | ≤ 12 | 10 MB | image/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.
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
referencesfor 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 topng.safety_tolerance— pinned to4.enable_web_search— pinned tofalse.limit_generations— pinned totrue.system_prompt— not accepted by this public endpoint.sync_mode— not accepted by this public endpoint.num_images— pinned to1.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.txtfor 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.
Topaz Image Upscale
Topaz increases the resolution of one image by 2×, 3× or 4× and repairs its detail. It is the roasOS last step before delivery.
Avatar · Nano Banana Pro
Create a reusable character identity with an original full-body image and a matching three-panel reference sheet. One creation quote includes both stages and the individual panel crops. The saved avatar_id works with supported image, scene, video, UGC, and lipsync endpoints.