Scenario seedream

From scenario-labs/skills · View interactive version

Scenario seedream is an AI agent skill from the GitHub repository scenario-labs/skills. Use when generating or editing images with Seedream models on Scenario via MCP: text-to-image, reference-image editing, posters or packaging with exact in-image text, transparent PNG output, keeping a cutout's alpha through an edit, sets of related images in one run, splitting an image into transpar

How to use this skill

Skill file

Scenario Seedream Images

Overview

Seedream, ByteDance's image family on Scenario, spans generation, reference-driven editing, and

Layerize members that only take images apart. The members agree on little else, so discover them

with search and read model_schema_get before every run.

Connection and the core loop: see the scenario skill; model-agnostic image work: the

scenario-image skill. If a sibling skill named here is missing from your available skills, load it

with skill_get (Scenario MCP) or ask the user to install it

(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag

the gap.

Route to a current member

Seedream retires whole generations. Read each search hit's tags before routing:

it or the user names it.

differ. A job the successor does not document follows its lane below instead.

At authoring time, 5.5 replaced 5.0 Flash, 5.5 Layerize replaced 5.0 Flash Layerize, and 4.0 and

Dreamina 3.1 point to 5.0 Pro. 4.5 carries a bare tag: its edits go to 5.5, its sequence sets to

Lite. An alpha-keeping edit from 4.5 or 5.0 Flash goes to Pro, but only when the cutout is the sole

reference (see Transparent output). Tell the user which member runs instead of the one they named.

Unattended, run it only inside the task's budget or count, and report the swap; otherwise report the

price and stop.

Quick reference

At authoring time (fields and caps are per member, read the live schema):

| Member | References | Sizing | Notes |

| ---------------- | --------------------------- | ---------------------------------------------- | ------------------------------------------------------ |

| 5.5 | referenceImages, up to 10 | exact width and height, 672 to 4368, by 16 | default; background: auto, opaque, transparent |

| 5.0 Pro | referenceImages, up to 10 | exact width and height, 672 to 3136, by 16 | optimizePromptMode; background keeps alpha |

| 5.0 Lite | referenceImages, up to 14 | width and height, 1024 to 6240, by 16 | the only sequence member; 2048-char prompt |

| 5.5 Layerize | one image, required | size tier: auto, 1K, 1.5K, 2K | maxImages 3 to 100, billed in full; text recognition |

| 5.0 Pro Layerize | one image, required | size tier: auto, 1K, 1.5K, 2K | up to 16 cutouts; optimizePromptMode |

at about 6 CU and 30 s, against 9 CU and 86 s on 5.0 Pro, at authoring time.

(2048x2048, 2560x1440). Treat 4.2 MP as the ceiling until a run confirms more.

optimizePromptMode standard (default) reasons about the prompt first and is slower; fast

costs the same and is usually enough when a reference sets the composition.

plus maxImages, input plus generated capped at 15. The set may come back short of maxImages.

resolution or size, yet none exposes that field. Send the pixels and check the delivered size on

the first output.

On the generators, mode follows from the inputs. Empty referenceImages is text-to-image; one or

more is an edit or a multi-reference generation, where the prompt gives each reference a role by

position. The array shape holds even for one asset. dry_run before every batch: the estimate

prices the run exactly as submitted, a whole sequence included.

Transparent output

Two contracts, read from the schemas:

returned a real alpha channel at authoring time. The default auto lets the prompt decide, so set

it on every run that must come back transparent, or opaque. Whether it keeps a reference's alpha

was not tested.

does not cut a subject out. It applies only with exactly one reference that already carries an

alpha channel, and is ignored otherwise. It defaults to opaque, so a restyle that omits it

flattens the cutout. Not run-tested at authoring time. With more references, run 5.5 with

background: "transparent" instead, and check the result.

Check the alpha on the downloaded file, since asset_display composites transparency away. With

Pillow (uv run --with pillow when it is missing), Image.open(path).getchannel("A").getextrema()

should start at 0 (fully transparent pixels exist), and an image with no A channel was flattened.

That check proves only a transparent surround: a translucent part (glass, a soft shadow) can come

back opaque and still pass, so on an edit compare that region's alpha with the source's. When the

alpha is missing, generate on a plain field and run background removal (the scenario-image-editing

skill), or split the image with Layerize.

Write the exact copy into the prompt

5.5 and Pro render legible in-image text; Pro's catalog card also names non-Latin scripts. Lite's

card claims no text rendering, so proofread every image of a Lite set. Quote the exact strings in

the prompt instead of paraphrasing them, and give each a position and a size rank (headline across

the top, date line small at the foot). Keep to a few elements at one or two sizes: letters are

drawn, not typeset, so paragraphs and many small labels turn to shapes. Copy past that budget (tour

dates, credits) is composited in post from the start. Proofread with asset_display; a word that

garbles is spelled out letter by letter after the quoted string on the rerun, and one that still

garbles goes to post. To swap copy on a reference, quote the new string, pin its position, and

require the original typeface, size and color with everything else unchanged.

Layerize: one image in, an editable stack out

Layerize returns a base layer plus transparent PNG cutouts, rebuilding the background behind

whatever it lifts.

splits finer, and the run is billed for maxImages even when fewer come back.

often several times the source image. Budget the split before spending on its source.

style of printed-text layers. It works best with no prompt and a high maxImages, and never reads

artistic or handwritten text. At maxImages 4, a one-line sign stayed baked into its graphic and

no text came back.

speed.

The prompt picks the mode: empty runs a full automatic split, and an enumerated list of parts

("Separate this poster into transparent layers: headline, product, shadow, background") cuts better

than "all layers". On the 5.0 members, <bbox>x1 y1 x2 y2</bbox> (0 to 1000 grid, origin top left)

confined the split to one region; 5.5's card names only full and named-part splits. Set size

explicitly, since auto inherits the source's tier and the tier moves the price. There is no PSD

export. On the 5.0 members, layers came back cropped to their own bounds, with bbox and z-index

metadata. On 5.5, at authoring time:

by its bounding box;

pixels, normalized on a 0 to 1000 grid), z_index, and text_recognition under

metadata.output.layers; asset_get on a layer holds none of them.

Worked example: a poster, then its layers

  1. search with target="models", query="seedream", public=true. Skip hits tagged Deprecated

and prefer the sc:featured generator, e.g. model_bytedance-seedream-5-5 (a live hit at

authoring time: re-discover each session).

  1. model_schema_get with that id: sizing fields, caps, defaults.
  2. model_run with that id, dry_run=true, and

parameters={"prompt": "Concert poster, teal and cream, screen-print grain. Headline \"MIDNIGHT ORBIT\" across the top, date line \"Nov 14, Union Hall\" small at the foot.", "width": 1600, "height": 2368, "background": "opaque"};

both sizing fields move price. Unattended, continue only inside the task's budget; otherwise

report the price and stop.

  1. Rerun model_run without dry_run and with wait=false, then jobs_wait with the returned job

id, re-called with pending_job_ids on timeout, never a second model_run.

  1. asset_display and proofread the rendered text.
  2. model_schema_get on the 5.5 Layerize hit, then model_run with that id, dry_run=true, and

parameters={"image": "<poster asset id>", "prompt": "Separate this poster into transparent layers: the headline text, the date line, and the background. Clean edges, complete transparency.", "size": "2K", "maxImages": 4}.

Rerun without dry_run under the same budget rule.

  1. jobs_wait, then asset_display each layer and asset_download the keepers.

Common mistakes

follow its deprecated: successor, or the lanes above.

Layerize takes tier enums, not pixels.

shape differ per member.

ignored, and the image comes back opaque.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.