# Rengi Forge Sprite Sheet Slicer

> Rengi Forge Sprite Sheet Slicer 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).

Cuts a sprite sheet image into individual frame PNGs by either a fixed grid layout or by detecting transparent gaps between sprites, returning individual frames plus a ZIP archive.

## Facts

- Endpoint: POST https://rengi.dev/v1/sprite-tools/slice?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-sheet-slicer-9506d637
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dF8M5_VAuAvMBImhZh-mF

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-sheet-slicer-9506d637 -d '<json body>'
```

Example prompt: Slice this sprite sheet into individual frames — it's arranged in a 6-column by 4-row grid with 2px spacing between cells. Use the URL https://example.com/hero_sheet.png and trim whitespace from each frame.

## When to prefer this

Use this endpoint when you need to decompose an existing sprite sheet into its constituent frame images, either knowing the grid layout in advance (grid mode with rows/cols/cellWidth/cellHeight) or relying on transparency gaps for automatic detection (auto mode). Prefer this over manual cropping pipelines or client-side canvas slicing when you need a reliable server-side solution that also outputs a convenient ZIP. Pair with the Rengi Forge sprite packer endpoint if you need to re-atlas the frames afterward.

## Known failure modes

- Image too large or exceeds processing limits
- Invalid base64 image data or unreachable imageUrl
- cols/rows specified but image dimensions not evenly divisible
- auto mode finds no sprites (all transparent or no gaps detected)
- minArea or mergeDistance settings cause all sprites to be filtered out
- Unsupported image format provided
- Network timeout fetching remote imageUrl

## How this service works

Sprite tools: Cut a sprite sheet into frames by grid or by transparent gaps; frame PNGs plus a ZIP. Full schema: https://rengi.dev/v1/sprite-tools/schema

## Output

Returns individual frame PNG images extracted from the sprite sheet plus a ZIP archive containing all frames. Each frame is cropped to the detected or specified cell boundaries, optionally trimmed of transparent edges.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cols": {
   "type": "integer",
   "maximum": 256,
   "minimum": 1
  },
  "mode": {
   "enum": [
    "grid",
    "auto"
   ],
   "type": "string",
   "default": "auto"
  },
  "rows": {
   "type": "integer",
   "maximum": 256,
   "minimum": 1
  },
  "trim": {
   "type": "boolean",
   "default": false
  },
  "image": {
   "type": "string",
   "description": "Base64 PNG, JPEG or WebP."
  },
  "margin": {
   "type": "integer",
   "default": 0,
   "maximum": 512,
   "minimum": 0
  },
  "minArea": {
   "type": "integer",
   "default": 4,
   "minimum": 1,
   "description": "auto mode: ignore islands smaller than this many pixels"
  },
  "spacing": {
   "type": "integer",
   "default": 0,
   "maximum": 512,
   "minimum": 0
  },
  "imageUrl": {
   "type": "string",
   "format": "uri"
  },
  "cellWidth": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1
  },
  "cellHeight": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1
  },
  "mergeDistance": {
   "type": "integer",
   "default": 1,
   "maximum": 64,
   "minimum": 0,
   "description": "auto mode: islands closer than this merge into one sprite"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rengi-forge-sprite-sheet-slicer-9506d637/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)
