# Rengi Forge Sprite Atlas Packer

> Rengi Forge Sprite Atlas Packer is a paid API for AI agents from rengi.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-22).

Packs multiple sprite frames into a single texture atlas using MaxRects bin packing, with configurable padding, edge extrusion, and export in TexturePacker JSON or Unity JSON format.

## Facts

- Endpoint: POST https://rengi.dev/v1/sprite-tools/pack?utm_source=zero.xyz
- Price: $0.05/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-sprite-atlas-packer-04c6245a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x2EQwVCC-ARVSZZV47u6o

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-sprite-atlas-packer-04c6245a -d '<json body>'
```

Example prompt: Pack these 48 sprite frames into a single texture atlas with 2px padding and 1px edge extrusion, max size 2048, and give me the TexturePacker JSON — here are the image URLs: [list].

## When to prefer this

Choose this endpoint when you need to combine multiple sprite frames into a single GPU-friendly texture atlas for use in Unity, Godot, or any engine that supports TexturePacker JSON. It is specifically suited for game asset pipelines requiring MaxRects packing, configurable padding/extrusion to prevent bleeding, and direct engine-compatible JSON output. Prefer it over generic image stitching tools when you need game-engine metadata alongside the atlas image.

## Known failure modes

- Frame count exceeds 2048 limit — request rejected
- Individual image URL unreachable or returns non-image content — packing fails
- Requested maxSize too small to fit all frames — packing error returned
- Invalid frame name (empty or over 120 characters) — validation error
- extrude value out of 0–8 range or padding over 32 — schema validation failure
- Mixed image formats or corrupt image data — processing error

## How this service works

Sprite tools: Pack frames into one atlas (MaxRects) with padding and edge extrusion; TexturePacker JSON and Unity JSON. Full schema: https://rengi.dev/v1/sprite-tools/schema

## Output

Returns a packed texture atlas image (PNG) alongside a structured JSON metadata file (TexturePacker JSON or Unity JSON) describing each frame's name, position, size, rotation, and trim data within the atlas. The atlas is generated using MaxRects bin packing to minimize wasted space.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "trim": {
   "type": "boolean",
   "default": true
  },
  "frames": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "image": {
      "type": "string"
     },
     "imageUrl": {
      "type": "string",
      "format": "uri"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 2048,
   "minItems": 1
  },
  "extrude": {
   "type": "integer",
   "default": 1,
   "maximum": 8,
   "minimum": 0
  },
  "maxSize": {
   "type": "integer",
   "default": 2048,
   "maximum": 8192,
   "minimum": 64
  },
  "padding": {
   "type": "integer",
   "default": 2,
   "maximum": 32,
   "minimum": 0
  },
  "powerOfTwo": {
   "type": "boolean",
   "default": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rengi-forge-sprite-atlas-packer-04c6245a/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)
