# Rengi Forge GLB Large File Optimizer

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

Optimizes large GLB 3D model files (up to 50 MB) for web or mobile by deduplicating, joining draw calls, simplifying geometry, converting textures to WebP, and applying meshopt or Draco compression.

## Facts

- Endpoint: POST https://rengi.dev/v1/glb-optimizer/optimize-large?utm_source=zero.xyz
- Price: $0.5/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-large-file-optimizer-7fbd7f9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aYwWY_C_AX2T7KPpi-u8i

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-large-file-optimizer-7fbd7f9e -d '<json body>'
```

Example prompt: I have a large 40 MB GLB model at https://assets.example.com/character.glb — can you optimize it for mobile using Draco compression and WebP textures, keeping about 50% of the triangles, and cap textures at 2048?

## When to prefer this

Choose this endpoint over the standard GLB optimizer sibling when the input file is between 10 MB and 50 MB. It applies the same full optimization pipeline (dedup, draw call joining, simplification, WebP textures, meshopt/Draco) but handles the larger file size ceiling. Use it for production-quality game assets, high-detail architectural models, or complex scenes that exceed the 10 MB limit of the basic optimizer.

## Known failure modes

- File exceeds 50 MB limit — request rejected
- Invalid base64 encoding of GLB input
- URL for glbUrl is unreachable or returns non-GLB content
- simplifyRatio outside 0–1 range — validation error
- maxTextureSize outside 64–8192 range — validation error
- Draco or meshopt encoding failure for malformed geometry
- Payment failure via x402 protocol — endpoint returns 402

## How this service works

GLB optimizer: Shrink a large GLB (up to 50 MB) for web or mobile, same pipeline as optimize: dedup, join, simplify, WebP textures, meshopt or Draco. Full schema: https://rengi.dev/v1/glb-optimizer/schema

## Output

Returns an optimized GLB binary (or download URL) with deduplicated geometry, merged draw calls, simplified mesh, WebP-converted textures, and applied meshopt or Draco compression — significantly smaller than the original while preserving visual fidelity appropriate to the chosen preset.

## 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-large-file-optimizer-7fbd7f9e/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)
