# Rengi Forge: PBR Map Generator

> Rengi Forge: PBR Map Generator is a paid API for AI agents from rengi.dev, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-22).

Generates a full PBR map set (normal, height, roughness, AO, lit preview) from a single albedo/base-color texture image

## Facts

- Endpoint: POST https://rengi.dev/v1/texture-tools/pbr?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rengi-forge-pbr-map-generator-ff46b238
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yw5chma8kW7lapFNgZIhA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rengi-forge-pbr-map-generator-ff46b238 -d '<json body>'
```

Example prompt: Take this stone wall albedo texture (URL: https://example.com/stone_albedo.png) and generate a full PBR map set for Unity — I need an OpenGL normal map with strength 3, a 16-bit height map, roughness auto-detected, and ambient occlusion.

## When to prefer this

Choose this endpoint when you need a complete PBR map set (normal in both OpenGL and DirectX conventions, height, roughness, AO) generated automatically from a single albedo texture — ideal for game developers targeting Unity, Unreal Engine, or three.js who want to skip manual authoring in Substance Painter or similar tools. Prefer this over generic image-processing APIs when you need game-engine-ready outputs with correct normal map conventions per engine.

## Known failure modes

- Invalid or undecodable base64 image data — returns 400 error
- Image URL unreachable or returns non-image content — returns 400 or 422 error
- Image format not PNG, JPEG, or WebP — returns 422 validation error
- roughness value outside 0–1 range — returns 422 validation error
- normalStrength outside 0.1–10 range — returns 422 validation error
- Payment not provided or insufficient (x402 protocol) — returns 402 Payment Required
- Image too large or processing timeout — returns 500 or 504 error

## How this service works

Texture tools: PBR maps from one albedo image: normal (OpenGL for Unity/three.js and DirectX for Unreal), 16-bit height, roughness and ambient occlusion, plus a lit preview. Full schema: https://rengi.dev/v1/texture-tools/schema

## Output

Returns a set of PBR map images derived from the input albedo: an OpenGL normal map (for Unity/three.js), a DirectX normal map (for Unreal Engine), a 16-bit height map, a roughness map, an ambient occlusion map, and a lit composite preview image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "string",
   "description": "Albedo (base color) texture as base64 (PNG, JPEG or WebP)."
  },
  "height": {
   "type": "object",
   "properties": {
    "image": {
     "type": "string"
    },
    "imageUrl": {
     "type": "string",
     "format": "uri"
    }
   },
   "description": "Optional height map you already have.",
   "additionalProperties": false
  },
  "delight": {
   "type": "boolean",
   "default": false
  },
  "imageUrl": {
   "type": "string",
   "format": "uri",
   "description": "Albedo (base color) texture as a URL."
  },
  "roughness": {
   "anyOf": [
    {
     "type": "string",
     "const": "auto"
    },
    {
     "type": "number",
     "maximum": 1,
     "minimum": 0
    }
   ],
   "default": "auto"
  },
  "invertHeight": {
   "type": "boolean",
   "default": false,
   "description": "Set when dark areas are raised (e.g. light grout between dark stones)."
  },
  "normalStrength": {
   "type": "number",
   "default": 2,
   "maximum": 10,
   "minimum": 0.1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rengi-forge-pbr-map-generator-ff46b238/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rengi.dev](https://www.zero.xyz/host/rengi.dev/llms.txt)
