> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sprello.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Generating variations

> Generate one result per item, or combine items into a single generation.

This is the pattern that turns one workflow into a whole set of results. When an input holds **more than one item**, you decide how those items reach the generator: each on its own, or all together. That single choice is the difference between getting ten images and getting one.

You make the choice with the **Each / All** toggle on the input node.

<Frame caption="Switching an input between Each and All">
  <img src="https://mintcdn.com/sprello/GqYVZzX2z4AZokUD/images/screenshots/Each-all-switching.gif?s=40ec3c14a69064571273bb664a8c1642" alt="Toggling an input node between Each and All mode on the Sprello canvas" width="1520" height="1084" data-path="images/screenshots/Each-all-switching.gif" />
</Frame>

## Each: one result per item

In **Each** mode, every item starts its own generation. This is the default. Ten product photos become ten images; four prompts become four. The results are independent, so you can review them and keep the ones that work.

<Frame caption="Each mode runs the generator once per item">
  <img src="https://mintcdn.com/sprello/GqYVZzX2z4AZokUD/images/screenshots/each-shots.gif?s=d2578b7ff08f6ce6f69db3c5827d06eb" alt="An input in Each mode producing one generated result per item" width="1520" height="1084" data-path="images/screenshots/each-shots.gif" />
</Frame>

## All: items combined into one

In **All** mode, the items are bundled and sent together as a single generation. Use it when several inputs should shape *one* result—for example, three brand references guiding a single new image.

<Frame caption="All mode sends every item into one generation">
  <img src="https://mintcdn.com/sprello/GqYVZzX2z4AZokUD/images/screenshots/all-shot.png?fit=max&auto=format&n=GqYVZzX2z4AZokUD&q=85&s=b0d341f5939a17e45833ac1ba6eab5d4" alt="An input in All mode sending several references into a single generation" width="1498" height="1104" data-path="images/screenshots/all-shot.png" />
</Frame>

## Which should I use?

* Reach for **Each** when each item should produce its own result—generating a set, exploring options, or running one prompt across many products.
* Reach for **All** when the items work together toward one result—combining reference images, or blending several inputs into a single generation.

## Mix the modes

You can set one input to Each and another to All on the same generator. The **Each** input decides how many results you get; the **All** input is applied to every one of them. Ten products in Each mode, with three brand references in All mode, gives ten images—each using all three references.

<Frame caption="One input in Each mode and one in All mode, feeding the same generator">
  <img src="https://mintcdn.com/sprello/GqYVZzX2z4AZokUD/images/screenshots/mixed-modes.gif?s=e6e98b7d2d554107299a89a1ef8f8bca" alt="One input in Each mode and one in All mode feeding a single generator, producing one result per Each item" width="1520" height="1084" data-path="images/screenshots/mixed-modes.gif" />
</Frame>

## When two sets need combining

If two **independent** multi-item sources feed the same generator in Each mode, the result is ambiguous—Sprello can't tell which item should pair with which. It asks you to add a [Combinator](/concepts/combinator) to define the pairing, switch one source to All, or restructure.

## Good to know

* A single node can expand to at most **500 items**. If a combination would exceed that, Sprello blocks the run and asks you to reduce inputs.
* Generations run a few at a time and the rest queue, so large sets finish in waves.
* Switching a source between Each and All recalculates the result count. Existing results aren't deleted—switch back and they reconnect, no re-generation needed.

## Next

<Card title="Combine inputs with the Combinator" icon="grip" href="/concepts/combinator" horizontal>
  Pair every product with every material—or match them one to one.
</Card>
