# Rengi Forge Autotile Generator

> Rengi Forge Autotile 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).

Converts two terrain textures (top and base) into a complete 47-tile autotile set with edges, corners, and ready-to-use rulesets for Tiled, Godot 4, Unity, and JSON.

## Facts

- Endpoint: POST https://rengi.dev/v1/sprite-tools/autotile?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-autotile-generator-b296fd94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GSOPDGQf5XQj2cvO_6kzw

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-autotile-generator-b296fd94 -d '<json body>'
```

Example prompt: Take my grass texture and dirt texture and generate a full 47-tile autotile set with crisp pixel-art edges, a dark rim outline, 32px tiles, and export it with Godot 4 TileSet terrains and a Unity Rule Tile script.

## When to prefer this

Choose this endpoint when you need to generate a production-ready autotile set from exactly two terrain textures for use in Tiled, Godot 4, or Unity — especially when you want seamless 47-tile blob/wang coverage with inner corners, outer corners, and ready-to-import engine rulesets, rather than manually painting tiles or using a generic image processor.

## Known failure modes

- Invalid or undecodable base64 image data returns a 400 error
- Image URL unreachable or returning non-image content causes fetch failure
- Tile size outside 8–256 range is rejected with a validation error
- Edge width outside 0.1–0.45 range is rejected
- Seed value above 1,000,000 is rejected
- Unsupported image format (not PNG/JPEG/WebP) causes a processing error
- Top or base texture missing entirely results in a required-field error

## How this service works

Sprite tools: Two terrain textures (grass over dirt, sand over water) to a full 47-tile autotile set with natural, seamless edges, outer and inner corners, plus ready rules: Tiled wang set, Godot 4 TileSet terrains, Unity Rule Tile (editor script), JSON, and a painted preview map. Full schema: https://rengi.dev/v1/sprite-tools/schema

## Output

A complete 47-tile autotile spritesheet with natural, seamless edges, inner and outer corners, plus exported rule definitions for Tiled (wang set), Godot 4 (TileSet terrains), Unity (Rule Tile editor script), a JSON ruleset, and a painted preview map showing how the tiles compose together.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rim": {
   "type": "boolean",
   "default": false,
   "description": "crisp only: a dark 1 px outline on the top terrain's edge."
  },
  "top": {
   "type": "string",
   "description": "Top terrain texture (what you paint: grass, sand), base64."
  },
  "base": {
   "type": "string",
   "description": "Base terrain texture (what is underneath: dirt, water), base64 PNG/JPEG/WebP."
  },
  "edge": {
   "enum": [
    "soft",
    "crisp"
   ],
   "type": "string",
   "default": "soft",
   "description": "soft for painted styles, crisp for pixel art."
  },
  "seed": {
   "type": "integer",
   "default": 1,
   "maximum": 1000000,
   "minimum": 0
  },
  "topUrl": {
   "type": "string",
   "format": "uri"
  },
  "baseUrl": {
   "type": "string",
   "format": "uri"
  },
  "tileSize": {
   "type": "integer",
   "default": 32,
   "maximum": 256,
   "minimum": 8
  },
  "edgeWidth": {
   "type": "number",
   "default": 0.18,
   "maximum": 0.45,
   "minimum": 0.1,
   "description": "How deep the transition sits into a tile, as a fraction of the tile."
  },
  "roughness": {
   "type": "number",
   "default": 0.5,
   "maximum": 1,
   "minimum": 0,
   "description": "0 = straight edges, 1 = very irregular."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rengi-forge-autotile-generator-b296fd94/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)
