Skip to main content
This page is the demo

Generation you can put in a receipt.
A prompt, a seed, the same bytes everywhere.

wai.generate.spectral generation-equivalence In the standard

wai.generate.spectral is a generator whose whole pipeline is integer. The prompt's words shape the image through a pinned integer lexicon — colour (ocean→blue, fire→red), texture (calm→smooth, chaos→busy), orientation (horizon→horizontal, tall→vertical) and a shape grammar (ring→concentric, kaleidoscope→symmetric, star→rays, spiral/galaxy→spirals, sky→gradient) — while the prompt and seed fix the exact draw. So the same (model, prompt, seed, steps) produces byte-identical output on every conforming sink, and the generated image's hash is portable. This page runs the reference implementation's generator, compiled to WebAssembly, with no ML runtime and no floating point.

image — generate — SHA-256 — FNV-1a — same inputs → same bytes on every conforming sink
checking the native reference…

Generation-equivalence

Generate this prompt and seed on another machine and you get the identical bytes, so a publisher can pin "this prompt and seed under this model is exactly this image" and anyone can check it in the browser. The conformance line under the image shows the check: this tab reproduces the reference implementation's test vector for the pinned inputs, byte for byte.

The model

Not a learned network: a fixed-point sine table and a small hand-written lexicon, bundled as one pinned file. The image is fixed-point spectral synthesis; the prompt chooses which spectrum, deterministically. Unknown words fall back to a prompt-seeded draw.

Where the code lives

The capability and its generator are in the standard; the reference engine is Apache-2.0 in the open-standards repository. The pinned check uses the reference implementation's test vector (wai-rs/tests/vectors/generate): this tab checks the SHA-256 of the RGB8 output against the vector's committed sha256.json (SPEC §7, Digests). The 64-bit FNV-1a is shown beside it; it is a checksum, never the check.