generate_backdrop
Generate a UI background plate from your project's palette, measure contrast against overlay text, and get a PASS/FAIL verdict with actionable adjustments.
Instructions
Generate a background plate that the project's UI can sit on top of.
STOP: before calling this, read the project's actual colours — the CSS custom
properties, tailwind.config, theme file, or an existing screenshot — and pass
them as palette. Do not guess them, and do not invent a palette from the
prompt. Whatever text or UI will sit on this backdrop determines
overlay_text_color. Getting these two right is what stops the backdrop from
clashing and needing a second paid generation.
The prompt is rewritten to enforce background-plate discipline (no text, no
logos, no centre subject, calm negative space, tone set opposite the overlay
colour), then the saved file is measured locally: worst-region contrast against
overlay_text_color, clutter, drift from palette, and edge seam if tileable.
The file is ALWAYS kept — it is already paid for. A FAILED verdict tells you exactly what to change if you choose to regenerate; it is not an automatic retry.
Args: prompt: The scene or texture, e.g. "soft abstract mesh gradient". out_dir: Absolute path to save into. Created if missing. palette: Hex colours from the project, e.g. ["#0f1115", "#6ea8fe"]. A single comma-separated string works too. overlay_text_color: Hex colour of the text/UI going on top, e.g. "#e7e9ee". size: Exact dimensions, e.g. "1920x1080". model: Omit for the default. Do not use bytedance/seedream-* for a non-square backdrop — it only renders 2048x2048. tileable: True for a repeating pattern; the edge seam is then measured. seed: Integer for reproducible output.
Returns the saved path, the measurements, and a PASS/FAILED verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| size | No | ||
| model | No | ||
| prompt | Yes | ||
| out_dir | Yes | ||
| palette | Yes | ||
| tileable | No | ||
| overlay_text_color | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |