API & MCP

Everything a person can do on Procedural Material Graph (PBR), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Procedural Material Graph (PBR)

Run a Renderloom Material Nodes graph — noise, Voronoi, bricks, gradients, blends, domain warp, levels, curves and surface-from-height nodes — and get base color, normal, roughness, metallic, ambient occlusion and height maps, a lit sphere and a tiled plane preview, a per-node report and the editable graph. Start from brick, wood, stone, metal or fabric.

Inputs of Procedural Material Graph (PBR)
FieldTypeDefaultDescription
presetselect (brick, wood, stone, metal, fabric, custom)"brick"Material graph
graphtextarea—Graph JSON (for a custom graph). Format renderloom-material-graph version 1 (schema at /static/apps/renderloom/material-graph.schema.json). Copy it from Renderloom → Material Nodes.
sizeinteger256Map size (px)
seedinteger-1Graph seed (−1 keeps the graph’s seed)

Example request

Red brick wall

curl -X POST https://renderloommaterialgraph.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"preset":"brick"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "renderloom-material-graph": { "type": "http", "url": "https://renderloommaterialgraph.usefulweb.app/mcp" }
  }
}