---
title: "Scene · Nano Banana Pro"
description: "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."
url: https://docs.roasos.com/models/scene/nano-banana-pro
---

# Scene · Nano Banana Pro

<Callout>
  Family 

  `scene`

   · model 

  `nano-banana-pro`

   · catalog 

  `model-catalog@2026-10-06.v5`

   · pricing 

  `customer-pricing@2026-11-05.v15`

  .
</Callout>

## Endpoint

```http
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](/concepts/jobs) and [Quotes and credits](/concepts/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 frame
* `product_id` — product; resolves to the product image list
* `product_images` — product reference images
* `references` — 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`.

<Callout>
  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](/concepts/reference-media)

   to learn how to put a file there.
</Callout>

## 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`.

```json
{
  "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.

<CodeBlockTabs defaultValue="cURL">
  <CodeBlockTabsList>
    <CodeBlockTabsTrigger value="cURL">
      cURL
    </CodeBlockTabsTrigger>

    <CodeBlockTabsTrigger value="JavaScript">
      JavaScript
    </CodeBlockTabsTrigger>

    <CodeBlockTabsTrigger value="Python">
      Python
    </CodeBlockTabsTrigger>
  </CodeBlockTabsList>

  <CodeBlockTab value="cURL">
    ```bash
    # 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_..."
    ```
  </CodeBlockTab>

  <CodeBlockTab value="JavaScript">
    ```javascript
    const key = process.env.ROASOS_API_KEY;
    const url = "https://api.roasos.com/v1/scene/nano-banana-pro";
    const idempotencyKey = "0f1c9e2a-nano-banana-pro-0001";
    const input = {
      "prompt": "A woman holds the bottle at eye level in a bright kitchen, morning light, static camera."
    };

    const post = (payload) =>
      fetch(url, {
        method: "POST",
        headers: {
          Authorization: `Bearer ${key}`,
          "Idempotency-Key": idempotencyKey,
          "Content-Type": "application/json",
        },
        body: JSON.stringify(payload),
      }).then((response) => response.json());

    // 1. Quote. Nothing is spent.
    const quote = await post({ quote_only: true, ...input });
    console.log(quote.data.credits);

    // 2. Run.
    const job = await post({ quote_id: quote.data.quote_id, ...input });

    // 3. Poll, then read the result.
    let status = "queued";
    while (status !== "completed" && status !== "failed" && status !== "canceled") {
      await new Promise((done) => setTimeout(done, 3000));
      const poll = await fetch(`${url.split("/v1")[0]}/v1/jobs/${job.data.id}/status`, {
        headers: { Authorization: `Bearer ${key}` },
      }).then((response) => response.json());
      status = poll.data.status;
    }

    const result = await fetch(`${url.split("/v1")[0]}/v1/jobs/${job.data.id}/result`, {
      headers: { Authorization: `Bearer ${key}` },
    }).then((response) => response.json());
    console.log(result.data.result);
    ```
  </CodeBlockTab>

  <CodeBlockTab value="Python">
    ```python
    import os, time, requests

    key = os.environ["ROASOS_API_KEY"]
    url = "https://api.roasos.com/v1/scene/nano-banana-pro"
    headers = {
        "Authorization": f"Bearer {key}",
        "Idempotency-Key": "0f1c9e2a-nano-banana-pro-0001",
    }
    payload = {
        "prompt": "A woman holds the bottle at eye level in a bright kitchen, morning light, static camera."
    }

    # 1. Quote. Nothing is spent.
    quote = requests.post(url, headers=headers, json={"quote_only": True, **payload}).json()
    print(quote["data"]["credits"])

    # 2. Run.
    job = requests.post(url, headers=headers, json={"quote_id": quote["data"]["quote_id"], **payload}).json()
    job_id = job["data"]["id"]

    # 3. Poll, then read the result.
    jobs = "https://api.roasos.com/v1/jobs"
    status = "queued"
    while status not in ("completed", "failed", "canceled"):
        time.sleep(3)
        status = requests.get(f"{jobs}/{job_id}/status", headers=headers).json()["data"]["status"]

    result = requests.get(f"{jobs}/{job_id}/result", headers=headers).json()
    print(result["data"]["result"])
    ```
  </CodeBlockTab>
</CodeBlockTabs>

## 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](https://docs.roasos.com/models/scene/nano-banana-pro/llms.txt) — 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](/api-reference/overview).
* [Jobs](/concepts/jobs) — how to poll a job and read its result.
* Provider endpoints: `fal-ai/nano-banana-pro` · `fal-ai/nano-banana-pro/edit`.
