Generate a background
generate_backgroundRender a background as SVG or PNG. Deterministic: the same structure, options and seed always give the same image, so store the returned seed. Returns a permanent, cacheable image URL you can use directly in /CSS, plus an inline PNG preview. Call describe_background first to learn which shape options the structure honours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Any string. Omit for a fresh random seed (returned in the result). | |
| brand | No | Slug of a saved brand kit (see list_brand_kits); its colours become the palette baseline. | |
| shape | No | Structure-specific options; call describe_background for the exact keys, ranges and what they do. | |
| width | No | ||
| format | No | png (default) returns a viewable image; svg returns the vector source. | |
| height | No | ||
| palette | No | ||
| pngWidth | No | Raster width for PNG output/preview. Defaults to the render width, capped for inline previews. | |
| structure | Yes | Structure name, e.g. "wave". |