On this page

Introduction

ShaderWeave is an API-first generative graphics engine. Describe a design in JSON and get production-ready pixels back.

ShaderWeave is an API of deterministic design generators. You describe a design as a recipe (generator slug + params + seed + engine version) and get a production-ready image, animation, or code snippet back. Same input, same pixels.

This documentation covers the public REST API, core concepts, and how to integrate ShaderWeave into apps, CI, and agent toolchains.

What you can build

  • Backgrounds & textures for products, marketing sites, and design tools
  • Deterministic assets in CI (golden PNG hashes)
  • Agent-callable design APIs with machine-readable discovery
  • Interactive editors with live preview (this dashboard)

Core ideas

IdeaMeaning
GeneratorA named renderer (shader-gradient, marble-vein, …) with a Zod param schema
RecipeCanonical JSON: generator + params + seed + engine version
SeedInteger that drives PRNG / domain offsets; 0 derives from params hash
DeterminismSame recipe, size, format, engine and renderer versions → deterministic still output

Surfaces

SurfaceURL
Tools UI/tools
Editor/g/<slug>
This docs site/docs
OpenAPI (Scalar)/v1/docs
OpenAPI JSON/v1/openapi.json

Next steps

  1. Quickstart: first PNG in under a minute
  2. Authentication: API keys
  3. Generate: POST /v1/generate/:slug
  4. Generators: registry and params