# Image generation

> See the roles brand8 gives reference images in the Assistant, Still Ads and Product Page Photography, what decides the product, and each model's limits.

Source: https://staging.brand8.ai/docs/how-it-works/image-generation

brand8 sends an image model your prompt plus reference pictures. In the Gen AI Assistant (the Assistant), Still Ads and Product Page Photography, each reference has one stated job. That is how your product, logo and people stay recognisable while the model does the creative work.

[Diagram: A central card labelled 'Image model' with a prompt box above it ('what to make') and a result image below it. Five reference thumbnails arrive from the left, each with a coloured role tag: a canvas tote bag photo tagged 'Product: this is what the product is', a logo tagged 'Logo: reproduce this mark', an example ad tagged 'Layout template: layout, type and panels only, not the product', a person portrait tagged 'Person: this is who appears', a photo to edit tagged 'Canvas: the image being edited'. A greyed sixth thumbnail with a crossed-out tag reads 'No job: not sent'. Under the model card, a counter 'Reference budget: 16 of 16 used' with segments coloured per role. Warm off-white background, one accent colour.]

## What job each reference has

A model given unlabelled pictures has to guess. Is this the product or a mood? Is that shape a logo or part of a template? Guessing is how a back view becomes the front of the product, or a template's own product ends up in your ad.

So in those tools each reference arrives with one stated role. Models also differ in what they accept, and brand8 follows each model's own guide.

| Role | What it is for | Example |
| --- | --- | --- |
| Product | What the product is: shape, colour, markings | Your lip balm photographed from the front |
| Logo | The mark to reproduce | Your uploaded logo |
| Layout template | Layout, type and panels, with no product lent | A reference ad you want to remake |
| Person | Who appears | A member of your Cast |
| Canvas | The existing image being edited | An ad you asked the Assistant to change |

Photography examples play a different part. They guide the look, such as light and mood, and never decide what the product is.

## What decides the product and what decides the look

When signals disagree, brand8 is built to follow this order:

1. **The product you selected** decides what the product is: colour, markings, geometry and price. That means your photos and the facts stored for the product.
2. **The template** decides graphic colours, panels and type in a Still Ad.
3. **Your intent and framing** decide camera, spacing and mood, and never change the product's shape.
4. **Your selections** in Still Ads are never quietly cut. If the chosen products and people do not fit a model's reference limit, the request is refused or the plan is visibly changed.

A model can still get details wrong, so check the result before you approve. brand8 does not promise pixel-perfect products.

## How many references a model takes

Each model family has its own limit on reference images when editing:

| Model family | Reference images per edit |
| --- | --- |
| GPT Image 2, 2.5 and 2.6 | up to 16 |
| Nano Banana 2 and 2.1 | up to 14 |
| Seedream 5 Pro | up to 10 |
| Seedream 5.5 | up to 10 |

Still Ads sends the source ad and keeps a place for your brand mark. People from Cast use the same budget, and your product photos fit in what remains. A combined ad with several products and a Cast member has fewer product slots than one with a single product, and a request that does not fit fails before any credits are spent.

## How a photo is picked for a shot

In Product Page Photography each shot asks for a face of the product, such as front, back or macro. brand8 prefers photos whose face it knows and is confident about, with a stricter bar for close-up crops than for full views, and in a few cases falls back to a compatible side or a clear photo of the product in use. A shot with no safe photo is blocked on its own and the other shots carry on. The run can also stop and ask you which side a photo shows before any credits are held.

## See what went into a result

1. In the Assistant, in Ask-first mode, open the proposal card for an image. In Auto mode, use the side panel instead.
2. Choose **See what goes in** to review each reference and its role before you approve.
3. After the result, open **What went into this result**.

[Screenshot: In the Assistant, a proposal card with 'See what goes in' opened, showing each reference image with its stated role.]

If a result looks wrong, this is the first place to look.

## FAQ

<details>
<summary>Why does my ad with several products have fewer product photos?</summary>

All references share one budget per model. The template, a brand mark and any Cast members use slots first, and your product photos fit in what remains.

</details>

<details>
<summary>Why was a shot in Product Page Photography blocked?</summary>

No photo had a face brand8 is confident about. Set the face on a product photo, or answer the question about which side a photo shows.

</details>

<details>
<summary>Do photography examples change the product?</summary>

No. They guide the look only. The product comes from the photos and facts you selected.

</details>

## Related

- [Rules vs AI](https://staging.brand8.ai/docs/how-it-works/rules-vs-ai)
- [Checks, and what they catch](https://staging.brand8.ai/docs/how-it-works/checks-and-what-they-catch)
- [Records you can correct](https://staging.brand8.ai/docs/how-it-works/records-you-can-correct)
- [Product photos](https://staging.brand8.ai/docs/product-photos)

<details>
<summary>For developers: under the hood</summary>

**Endpoints.** Image work runs on fal-hosted GPT Image 2, 2.5 and 2.6 (Sunburst for quality, Flare for speed), Nano Banana 2 and 2.1, and Seedream 5 Pro and 5.5, each as a generate endpoint and an edit endpoint. Edit endpoints take `image_urls`, validated per model: `max(16)` for GPT Image 2, 2.5 and 2.6, `max(14)` for Nano Banana 2 and 2.1, `max(10)` for Seedream. GPT Image 2 accepts prompts up to 29,999 characters and Seedream up to 20,000. A longer prompt is refused, never shortened, so no product rule at its end is lost.

**Roles in the Assistant.** An edit plan lists references in order with a role from this set: `edit_canvas`, `product_identity`, `cast_identity`, `template_layout`, `brand_logo`. A rule-based audit checks the plan (edit source, reference count and order) before submission. For a clicked edit, a failed audit blocks submission. The proposal card renders the stored generation record, which holds the roles.

**Still Ads.** The reference budget is 16, minus one slot for the template, minus one for a possible brand mark, minus the Cast references. The paid model is a GPT Image 2.5 edit endpoint, fixed by the tool and not user-selectable. Reference assignment keeps your order for "All" and "Pick". "Pick for me" uses only images attached to the selected product, drops images marked as another product or an informational graphic, and ranks colour before face and presentation.

**Product Page Photography.** View routing sends a slot to photos whose face is known with confidence at least 0.6 for full views and 0.8 for macro crops, with a cap of 8 views per slot. Overflow is always recorded; the slot is blocked, with a message naming which photos to remove, only when the dropped photos include the only one of the needed face or the only full product view. Target product pixels own geometry, face and marks, and brand photography direction guides the look.

**What we do not guarantee.** The role is our instruction to the model, not a guaranteed outcome. A model can still misread a reference, so check the result before you approve. Image models differ in how they read references, so we follow each model's own guide. For Nano Banana 2.1, the model description asks the prompt to name each reference's role.

</details>
