Quickstart

GenPBR API quickstart

Confirm the API with no key, then generate maps with a key you create yourself.

1. Confirm the API with no key

GET https://genpbr.com/api/v1/health-check is zero-auth. A 200 means the API is up.

curl -sS https://genpbr.com/api/v1/health-check

2. Use the free sandbox in the browser

Open https://genpbr.com/generate. Core resolutions run on-device with no account and no API key. https://genpbr.com/demo is the public quality preview.

3. Create an API key yourself

Sign up at https://genpbr.com/sign-up, start Starter or Pro at https://genpbr.com/pricing (self-serve checkout), then generate a key at https://genpbr.com/dashboard/api-keys. There is no sales form.

4. Generate textures

Send the key in X-API-Key. Authorization Bearer is also accepted.

curl -sS -X POST https://genpbr.com/api/v1/generate-texture \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"baseImage":"data:image/png;base64,...","textureTypes":["normal","roughness","metallic","ao"]}'

The field list and error codes are in the OpenAPI spec at https://genpbr.com/openapi.json and the API reference at https://genpbr.com/pbr-api.