# Rengi Forge GLB Optimizer

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

Optimizes GLB 3D model files for web or mobile by deduplicating geometry, merging draw calls, simplifying meshes, converting textures to WebP, and applying meshopt or Draco compression, with before/after renders and a size report.

## Facts

- Endpoint: POST https://rengi.dev/v1/glb-optimizer/optimize?utm_source=zero.xyz
- Price: $0.2/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-glb-optimizer-43a32892
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h_cm8GYaHrylihc3wRNkA

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-glb-optimizer-43a32892 -d '<json body>'
```

Example prompt: Can you optimize this GLB model for web using the 'web' preset with meshopt compression, convert textures to WebP at a max size of 1024, and keep 80% of the triangles? Here's the URL: https://cdn.example.com/model.glb

## When to prefer this

Choose this endpoint when you need to reduce the file size of an existing GLB asset for web or mobile delivery, especially when you want automatic texture conversion to WebP, mesh simplification, and draw call merging in a single pipeline with visual validation renders. Prefer it over generic mesh tools when you need three.js or Unity loader guidance alongside the optimized output.

## Known failure modes

- GLB exceeds 10 MB size limit — request rejected
- Invalid or unreachable glbUrl — download fails
- Malformed base64 GLB data — parse error
- simplifyRatio causes unacceptable mesh degradation — may produce visual artifacts
- Unsupported GLB features (e.g. morph targets with aggressive simplify) — partial optimization
- Network timeout fetching remote GLB URL

## How this service works

GLB optimizer: Shrink a GLB (up to 10 MB) for web or mobile: dedup, join draw calls, gentle simplify, textures to WebP at a max size, meshopt or Draco compression; before/after renders, size report and loader notes for three.js and Unity. Full schema: https://rengi.dev/v1/glb-optimizer/schema

## Output

Returns an optimized GLB file, before/after render images showing the visual difference, a size report detailing the reduction achieved, and integration notes for loading the result in three.js and Unity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "glb": {
   "type": "string",
   "description": "Base64 GLB."
  },
  "glbUrl": {
   "type": "string",
   "format": "uri"
  },
  "preset": {
   "enum": [
    "web",
    "mobile",
    "preview"
   ],
   "type": "string",
   "default": "web"
  },
  "compression": {
   "enum": [
    "meshopt",
    "draco",
    "none"
   ],
   "type": "string",
   "default": "meshopt"
  },
  "simplifyRatio": {
   "type": "number",
   "maximum": 1,
   "minimum": 0,
   "description": "Target share of triangles to keep (0 = only the error bound decides)."
  },
  "textureFormat": {
   "enum": [
    "webp",
    "png",
    "keep"
   ],
   "type": "string",
   "default": "webp"
  },
  "maxTextureSize": {
   "type": "integer",
   "maximum": 8192,
   "minimum": 64
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rengi-forge-glb-optimizer-43a32892/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)
