# Rengi Forge > Pay-per-call tools for AI agents that build games. No account, no API key, no subscription: each paid call is paid on the spot with x402 in USDC. ## How to pay 1. Send the request as documented below. 2. A paid route answers HTTP 402. The `PAYMENT-REQUIRED` response header (base64 JSON) lists the accepted payment options. 3. Pick one (accepted networks: Base `eip155:8453`, Solana `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`; asset USDC, scheme `exact`), sign it with an x402 client such as @x402/fetch, and resend the same request with the `PAYMENT-SIGNATURE` header. 4. You are charged only when the call succeeds. If the service fails or times out, the payment is not settled. Machine-readable: https://rengi.dev/openapi.json ## Quickstart TypeScript (`npm i @x402/fetch @x402/evm viem`), PRIVATE_KEY = a wallet with a little USDC on Base: ```ts import { wrapFetchWithPaymentFromConfig } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`); const pay = wrapFetchWithPaymentFromConfig(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }] }); const res = await pay("https://rengi.dev/v1/sprite-tools/remove-bg", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ imageUrl: "https://rengi.dev/samples/prop-on-white.png" }), }); console.log(await res.json()); // { image: , mode, ... } ``` Python (`pip install "x402[httpx,evm]"`): ```python import asyncio, os from eth_account import Account from x402 import SchemeRegistration, x402ClientConfig from x402.http.clients import wrapHttpxWithPaymentFromConfig from x402.mechanisms.evm.exact import ExactEvmScheme signer = Account.from_key(os.environ["PRIVATE_KEY"]) config = x402ClientConfig(schemes=[SchemeRegistration(network="eip155:8453", client=ExactEvmScheme(signer=signer))]) async def main(): async with wrapHttpxWithPaymentFromConfig(config, timeout=180) as http: r = await http.post("https://rengi.dev/v1/sprite-tools/remove-bg", json={"imageUrl": "https://rengi.dev/samples/prop-on-white.png"}) print(r.json()) asyncio.run(main()) ``` ## Use via MCP Remote MCP server (streamable HTTP): https://rengi.dev/mcp - every paid route below is a tool named _ (for example level_design_place), paid per call with x402 inside MCP. Tool forge_help is free. ## Level design (`level-design`) Level dressing for 3D games. Send a layout (zones as polygons, or a color-legend sketch), your prop catalog (GLBs or bounds) and a brief; get back exact placements (asset id, position, rotation, scale) for Unity or three.js plus preview renders. A model plans like a level designer, a seeded solver places: no overlaps, nothing on roads or water, required points stay walkable on a navmesh, same seed gives the same result. Schemas: ### POST /v1/level-design/catalog Ingest your prop catalog: footprint, height, pivot and category computed from each GLB. Returns a catalogId for place. Price: $0.50 USDC. Time limit: 90 s. Example request: ```json { "assets": [ { "id": "house_small", "glbUrl": "https://rengi.dev/samples/house_small.glb" }, { "id": "pine", "bounds": { "min": [ -1.5, 0, -1.5 ], "max": [ 1.5, 6, 1.5 ] }, "category": "tree" } ] } ``` Example response: ```json { "catalogId": "cat_0123456789abcdef0123", "cached": false, "assets": [ { "id": "house_small", "category": "house", "footprint": [ [ -2.3, -2.8 ], [ 2.3, -2.8 ], [ 2.3, 2.8 ], [ -2.3, 2.8 ] ], "footprintRadius": 3.62, "height": 5, "pivotOffset": { "x": 0, "y": 0, "z": 0 }, "hasMesh": true, "tags": [] } ] } ``` ### POST /v1/level-design/place Dress a level: placements for every zone, previews and a 3D viewer link. Price: $1.00 USDC. Time limit: 120 s. Example request: ```json { "catalogId": "cat_0123456789abcdef0123", "layout": { "kind": "zones", "width": 100, "depth": 100, "zones": [ { "id": "road-ew", "kind": "road", "polyline": [ [ 0, 50 ], [ 100, 50 ] ], "width": 6 }, { "id": "market", "kind": "plaza", "polygon": [ [ 56, 30 ], [ 76, 30 ], [ 76, 46 ], [ 56, 46 ] ] }, { "id": "lot-1", "kind": "building-lot", "polygon": [ [ 80, 34 ], [ 92, 34 ], [ 92, 46 ], [ 80, 46 ] ] } ], "requiredPoints": [ { "id": "spawn", "x": 3, "z": 50 }, { "id": "market", "x": 66, "z": 38 } ] }, "brief": "Farming village, busy market square.", "seed": 7, "targetEngine": "unity" } ``` Example response: ```json { "jobId": "job_ac27f34abec846dc9130", "engine": "unity", "coordinates": "Unity (left-handed, Y up). Map spans x 0..width, z 0..-depth: the top-down map's z axis is flipped so north stays +Z. Rotation is yaw about Y; asset forward = local +Z.", "planner": "preset", "zones": [ { "id": "road-ew", "kind": "road", "polygon": [ [ 0, 53 ], [ 100, 53 ], [ 100, 47 ], [ 0, 47 ] ], "area": 564 }, { "id": "road-ns", "kind": "road", "polygon": [ [ 47, 0 ], [ 47, 100 ], [ 53, 100 ], [ 53, 0 ] ], "area": 600 }, { "id": "market", "kind": "plaza", "polygon": [ [ 56, 30 ], [ 76, 30 ], [ 76, 46 ], [ 56, 46 ] ], "area": 320 }, { "id": "forest-nw", "kind": "forest", "polygon": [ [ 2, 2 ], [ 44, 2 ], [ 44, 26 ], [ 30, 40 ], [ 2, 44 ] ], "area": 1529.6 }, { "id": "field-se", "kind": "field", "polygon": [ [ 60, 62 ], [ 96, 62 ], [ 96, 94 ], [ 60, 94 ] ], "area": 1152 }, { "id": "field-sw", "kind": "field", "polygon": [ [ 8, 62 ], [ 40, 62 ], [ 40, 90 ], [ 8, 90 ] ], "area": 888 }, { "id": "lot-1", "kind": "building-lot", "polygon": [ [ 80, 34 ], [ 92, 34 ], [ 92, 46 ], [ 80, 46 ] ], "area": 144 }, { "id": "lot-2", "kind": "building-lot", "polygon": [ [ 56, 6 ], [ 68, 6 ], [ 68, 18 ], [ 56, 18 ] ], "area": 144 }, { "id": "lot-3", "kind": "building-lot", "polygon": [ [ 36, 54 ], [ 46, 54 ], [ 46, 64 ], [ 36, 64 ] ], "area": 100 }, { "id": "lot-4", "kind": "building-lot", "polygon": [ [ 54, 54 ], [ 64, 54 ], [ 64, 60 ], [ 54, 60 ] ], "area": 60 }, { "id": "lot-5", "kind": "building-lot", "polygon": [ [ 22, 38 ], [ 34, 38 ], [ 34, 46 ], [ 22, 46 ] ], "area": 96 }, { "id": "spawn-w", "kind": "spawn", "polygon": [ [ 0, 44 ], [ 8, 44 ], [ 8, 56 ], [ 0, 56 ] ], "area": 48 } ], "plan": { "zones": [ { "zoneId": "market", "rules": [ { "kind": "anchor", "asset": "well", "at": "centroid" }, { "kind": "ring", "assets": [ "market_stall" ], "center": "centroid", "radius": 4.4, "count": 5, "facing": "inward" }, { "kind": "along", "assets": [ "lamp_post" ], "offset": [ 0.6, 1.2 ], "spacing": [ 9, 12 ], "facing": "toward" } ] }, { "zoneId": "forest-nw", "rules": [ { "kind": "scatter", "assets": [ "oak", "pine" ], "density": 0.6, "falloff": { "from": "edge", "strength": 0.5 } }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.12 }, { "kind": "cluster", "assets": [ "rock" ], "clusters": 2, "count": 3, "radius": 3, "center": "random" } ] }, { "zoneId": "field-se", "rules": [ { "kind": "along", "assets": [ "fence" ], "offset": [ 0.35, 0.35 ], "spacing": [ 2.08, 2.08 ], "facing": "toward" }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.04 } ] }, { "zoneId": "field-sw", "rules": [ { "kind": "along", "assets": [ "fence" ], "offset": [ 0.35, 0.35 ], "spacing": [ 2.08, 2.08 ], "facing": "toward" }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.04 } ] }, { "zoneId": "lot-1", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-2", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-3", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-4", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-5", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "spawn-w", "rules": [ { "kind": "ring", "assets": [ "lamp_post" ], "center": "centroid", "radius": 2, "count": 2, "facing": "inward" } ] }, { "zoneId": "open", "rules": [ { "kind": "scatter", "assets": [ "oak", "pine" ], "density": 0.1 }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.07 }, { "kind": "scatter", "assets": [ "rock" ], "density": 0.03 } ] } ], "notes": "preset plan: fantasy-village" }, "placements": [ { "assetId": "well", "zoneId": "market", "position": { "x": 66.4794, "y": 0, "z": -40.7875 }, "rotation": { "quaternion": [ 0, 0, 0, 1 ], "eulerDeg": { "x": 0, "y": 0, "z": 0 } }, "scale": 1 }, { "assetId": "house_small", "zoneId": "lot-1", "position": { "x": 86, "y": 0, "z": -40 }, "rotation": { "quaternion": [ 0, 0, 0, 1 ], "eulerDeg": { "x": 0, "y": 0, "z": 0 } }, "scale": 1 }, { "assetId": "house_large", "zoneId": "lot-2", "position": { "x": 62, "y": 0, "z": -12 }, "rotation": { "quaternion": [ 0, 0.707107, 0, 0.707107 ], "eulerDeg": { "x": 0, "y": 90, "z": 0 } }, "scale": 1 }, { "assetId": "tavern", "zoneId": "lot-3", "position": { "x": 41, "y": 0, "z": -59 }, "rotation": { "quaternion": [ 0, -0.707107, 0, 0.707107 ], "eulerDeg": { "x": 0, "y": -90, "z": 0 } }, "scale": 1 }, { "assetId": "house_small", "zoneId": "lot-4", "position": { "x": 59, "y": 0, "z": -57 }, "rotation": { "quaternion": [ 0, 0.707107, 0, 0.707107 ], "eulerDeg": { "x": 0, "y": 90, "z": 0 } }, "scale": 1 } ], "stats": { "total": 295, "byCategory": { "prop": 5, "house": 5, "light": 7, "fence": 116, "rock": 10, "tree": 43, "bush": 109 }, "overlaps": 0, "reachable": true, "removedForReachability": [] }, "previews": { "topDown": "https://rengi.dev/files/example/top-down.png", "perspective": "https://rengi.dev/files/example/perspective.png", "ground": "https://rengi.dev/files/example/ground.png" }, "viewer": "https://rengi.dev/files/example/viewer.html", "sceneJson": "https://rengi.dev/files/example/scene.json", "note": "placements trimmed to 5 of 295 for the example" } ``` ### POST /v1/level-design/revise Change a placed level by instruction or structured zone edits: denser or sparser, other assets, remove a kind of prop; untouched zones keep their exact transforms. It cannot cut an empty area inside a zone or move one object: for that, add a keep-clear zone to the layout and place again. Price: $0.50 USDC. Time limit: 60 s. Example request: ```json { "jobId": "job_0123456789abcdef0123", "instruction": "make the market denser" } ``` Example response: ```json { "jobId": "job_fedcba9876543210fedc", "engine": "unity", "coordinates": "Unity (left-handed, Y up). Map spans x 0..width, z 0..-depth: the top-down map's z axis is flipped so north stays +Z. Rotation is yaw about Y; asset forward = local +Z.", "planner": "preset", "zones": [ { "id": "road-ew", "kind": "road", "polygon": [ [ 0, 53 ], [ 100, 53 ], [ 100, 47 ], [ 0, 47 ] ], "area": 564 }, { "id": "road-ns", "kind": "road", "polygon": [ [ 47, 0 ], [ 47, 100 ], [ 53, 100 ], [ 53, 0 ] ], "area": 600 }, { "id": "market", "kind": "plaza", "polygon": [ [ 56, 30 ], [ 76, 30 ], [ 76, 46 ], [ 56, 46 ] ], "area": 320 }, { "id": "forest-nw", "kind": "forest", "polygon": [ [ 2, 2 ], [ 44, 2 ], [ 44, 26 ], [ 30, 40 ], [ 2, 44 ] ], "area": 1529.6 }, { "id": "field-se", "kind": "field", "polygon": [ [ 60, 62 ], [ 96, 62 ], [ 96, 94 ], [ 60, 94 ] ], "area": 1152 }, { "id": "field-sw", "kind": "field", "polygon": [ [ 8, 62 ], [ 40, 62 ], [ 40, 90 ], [ 8, 90 ] ], "area": 888 }, { "id": "lot-1", "kind": "building-lot", "polygon": [ [ 80, 34 ], [ 92, 34 ], [ 92, 46 ], [ 80, 46 ] ], "area": 144 }, { "id": "lot-2", "kind": "building-lot", "polygon": [ [ 56, 6 ], [ 68, 6 ], [ 68, 18 ], [ 56, 18 ] ], "area": 144 }, { "id": "lot-3", "kind": "building-lot", "polygon": [ [ 36, 54 ], [ 46, 54 ], [ 46, 64 ], [ 36, 64 ] ], "area": 100 }, { "id": "lot-4", "kind": "building-lot", "polygon": [ [ 54, 54 ], [ 64, 54 ], [ 64, 60 ], [ 54, 60 ] ], "area": 60 }, { "id": "lot-5", "kind": "building-lot", "polygon": [ [ 22, 38 ], [ 34, 38 ], [ 34, 46 ], [ 22, 46 ] ], "area": 96 }, { "id": "spawn-w", "kind": "spawn", "polygon": [ [ 0, 44 ], [ 8, 44 ], [ 8, 56 ], [ 0, 56 ] ], "area": 48 } ], "plan": { "zones": [ { "zoneId": "market", "rules": [ { "kind": "anchor", "asset": "well", "at": "centroid" }, { "kind": "ring", "assets": [ "market_stall" ], "center": "centroid", "radius": 4.4, "count": 5, "facing": "inward" }, { "kind": "along", "assets": [ "lamp_post" ], "offset": [ 0.6, 1.2 ], "spacing": [ 9, 12 ], "facing": "toward" } ] }, { "zoneId": "forest-nw", "rules": [ { "kind": "scatter", "assets": [ "oak", "pine" ], "density": 0.6, "falloff": { "from": "edge", "strength": 0.5 } }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.12 }, { "kind": "cluster", "assets": [ "rock" ], "clusters": 2, "count": 3, "radius": 3, "center": "random" } ] }, { "zoneId": "field-se", "rules": [ { "kind": "along", "assets": [ "fence" ], "offset": [ 0.35, 0.35 ], "spacing": [ 2.08, 2.08 ], "facing": "toward" }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.04 } ] }, { "zoneId": "field-sw", "rules": [ { "kind": "along", "assets": [ "fence" ], "offset": [ 0.35, 0.35 ], "spacing": [ 2.08, 2.08 ], "facing": "toward" }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.04 } ] }, { "zoneId": "lot-1", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-2", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-3", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-4", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "lot-5", "rules": [ { "kind": "lot", "assets": [ "house_large", "house_small", "tavern" ] } ] }, { "zoneId": "spawn-w", "rules": [ { "kind": "ring", "assets": [ "lamp_post" ], "center": "centroid", "radius": 2, "count": 2, "facing": "inward" } ] }, { "zoneId": "open", "rules": [ { "kind": "scatter", "assets": [ "oak", "pine" ], "density": 0.1 }, { "kind": "scatter", "assets": [ "bush" ], "density": 0.07 }, { "kind": "scatter", "assets": [ "rock" ], "density": 0.03 } ] } ], "notes": "preset plan: fantasy-village" }, "placements": [ { "assetId": "well", "zoneId": "market", "position": { "x": 66.4794, "y": 0, "z": -40.7875 }, "rotation": { "quaternion": [ 0, 0, 0, 1 ], "eulerDeg": { "x": 0, "y": 0, "z": 0 } }, "scale": 1 }, { "assetId": "house_small", "zoneId": "lot-1", "position": { "x": 86, "y": 0, "z": -40 }, "rotation": { "quaternion": [ 0, 0, 0, 1 ], "eulerDeg": { "x": 0, "y": 0, "z": 0 } }, "scale": 1 }, { "assetId": "house_large", "zoneId": "lot-2", "position": { "x": 62, "y": 0, "z": -12 }, "rotation": { "quaternion": [ 0, 0.707107, 0, 0.707107 ], "eulerDeg": { "x": 0, "y": 90, "z": 0 } }, "scale": 1 }, { "assetId": "tavern", "zoneId": "lot-3", "position": { "x": 41, "y": 0, "z": -59 }, "rotation": { "quaternion": [ 0, -0.707107, 0, 0.707107 ], "eulerDeg": { "x": 0, "y": -90, "z": 0 } }, "scale": 1 }, { "assetId": "house_small", "zoneId": "lot-4", "position": { "x": 59, "y": 0, "z": -57 }, "rotation": { "quaternion": [ 0, 0.707107, 0, 0.707107 ], "eulerDeg": { "x": 0, "y": 90, "z": 0 } }, "scale": 1 } ], "stats": { "total": 295, "byCategory": { "prop": 5, "house": 5, "light": 7, "fence": 116, "rock": 10, "tree": 43, "bush": 109 }, "overlaps": 0, "reachable": true, "removedForReachability": [] }, "previews": { "topDown": "https://rengi.dev/files/example/top-down.png", "perspective": "https://rengi.dev/files/example/perspective.png", "ground": "https://rengi.dev/files/example/ground.png" }, "viewer": "https://rengi.dev/files/example/viewer.html", "sceneJson": "https://rengi.dev/files/example/scene.json", "note": "placements trimmed to 5 of 295 for the example", "diff": { "added": 14, "removed": 3, "moved": 0, "kept": 120 } } ``` ### POST /v1/level-design/place-2d Fill a 2D tilemap: terrain with proper corner transitions, decorations, obstacles and multi-tile stamps; Tiled .tmj, Unity Tilemap JSON and a preview. Price: $1.00 USDC. Time limit: 90 s. Example request: ```json { "tileset": { "imageUrl": "https://rengi.dev/samples/tileset.png", "tileWidth": 16, "tileHeight": 16 }, "tileRoles": { "terrains": [ { "name": "grass", "tiles": [ { "id": 0, "weight": 4 }, { "id": 1, "weight": 1 } ] }, { "name": "dirt", "tiles": [ { "id": 2 } ] } ], "sets": [ { "kind": "corner16", "over": "dirt", "under": "grass", "firstTile": 8 } ], "decorations": [ { "id": 59, "name": "tree", "layer": "obstacle", "tags": [ "tree" ] } ], "stamps": [ { "name": "house", "width": 2, "height": 2, "tiles": [ 62, 63, 70, 71 ], "tags": [ "house" ] } ], "terrainFor": { "road": "dirt", "default": "grass" } }, "layout": { "kind": "zones", "width": 48, "height": 32, "zones": [ { "id": "road", "kind": "road", "polyline": [ [ 0, 16 ], [ 48, 16 ] ], "width": 3 }, { "id": "woods", "kind": "forest", "polygon": [ [ 0, 0 ], [ 20, 0 ], [ 20, 12 ], [ 0, 12 ] ] } ], "requiredPoints": [] }, "seed": 1 } ``` Example response: ```json { "jobId": "job2d_0123456789abcdef0123", "width": 48, "height": 32, "tiled": "https://rengi.dev/files//map.tmj", "unity": "https://rengi.dev/files//map.unity.json", "preview": "https://rengi.dev/files//preview.png" } ``` ### POST /v1/level-design/revise-2d Change a 2D map by instruction or zone edits; untouched zones keep their tiles. Price: $0.30 USDC. Time limit: 60 s. Example request: ```json { "jobId": "job2d_0123456789abcdef0123", "instruction": "denser forest" } ``` Example response: ```json { "jobId": "job2d_fedcba9876543210fedc", "diff": { "changedCells": 41 } } ``` ### GET /v1/level-design/example A full worked request and response from the bundled fixtures, free. Price: free. Time limit: 5 s. Example request: ``` GET https://rengi.dev/v1/level-design/example ``` Example response: ```json { "request": "...", "response": "..." } ``` ### POST /v1/level-design/navmesh Bake a navmesh for your agent size from a level GLB and find unreachable areas, passages that barely fit, and walkable area per region; top-view map and the navmesh as OBJ. Price: $0.05 USDC. Time limit: 90 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/nav-level.glb", "agentRadius": 0.4 } ``` Example response: ```json { "walkableArea": 312.4, "regions": [ { "id": 0, "area": 305.2, "centre": [ 0.1, 0, 0.4 ], "reachable": true }, { "id": 1, "area": 7.2, "centre": [ 6, 1.5, -6 ], "reachable": false } ], "islands": 1, "tightPassages": [ { "at": [ 4.5, 0, 0 ], "gap": 0.31 } ], "map": "https://rengi.dev/files//navmap.png", "obj": "https://rengi.dev/files//navmesh.obj", "findings": [ "1 walkable area cannot be reached from the main region (7.2 m² around 6, 1.5, -6): add a ramp, stairs or a jump, or make it unwalkable on purpose.", "1 passage fits this agent with less than 10 cm to spare (around 4.5, 0, 0): widen it if the player or enemies use it." ] } ``` ## Asset render (`asset-render`) Pictures of a 3D model for agents that cannot see: catalog views, a turntable GIF, and isometric sprite sheets for 2.5D games. Send a GLB; the model is auto-framed from its real bounds, and every answer includes mesh stats (triangles, materials, bounds, up axis). Schemas: ### POST /v1/asset-render/views Render a GLB model to four PNG views (three-quarter, front, side, top) for thumbnails and previews, plus mesh stats and size. Price: $0.10 USDC. Time limit: 60 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/house.glb", "size": 512 } ``` Example response: ```json { "views": { "threeQuarter": "https://rengi.dev/files//three-quarter.png", "front": "...", "side": "...", "top": "..." }, "stats": { "triangles": 172, "vertices": 516, "primitives": 3, "materials": 3, "bounds": { "min": [ -2.6, 0, -3.1 ], "max": [ 2.6, 5, 3.1 ] }, "height": 5, "footprintRadius": 3.62, "upAxis": "y", "upAxisGuessed": true } } ``` ### POST /v1/asset-render/turntable Render a GLB model as a looping turntable GIF, one full revolution, plus mesh stats. Price: $0.25 USDC. Time limit: 90 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/house.glb", "frames": 36 } ``` Example response: ```json { "gif": "https://rengi.dev/files//turntable.gif", "frames": 36, "stats": { "triangles": 172, "vertices": 516, "primitives": 3, "materials": 3, "bounds": { "min": [ -2.6, 0, -3.1 ], "max": [ 2.6, 5, 3.1 ] }, "height": 5, "footprintRadius": 3.62, "upAxis": "y", "upAxisGuessed": true } } ``` ### POST /v1/asset-render/sprites Transparent isometric sprite sheet, 4 or 8 directions in one row (south first, clockwise), with frame JSON. Price: $0.40 USDC. Time limit: 60 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/knight.glb", "directions": 8, "cellSize": 128 } ``` Example response: ```json { "sheet": "https://rengi.dev/files//sprites.png", "json": "https://rengi.dev/files//sprites.json", "cellSize": 128, "frames": [ { "direction": "south", "x": 0, "y": 0, "w": 128, "h": 128 } ], "stats": { "triangles": 172, "vertices": 516, "primitives": 3, "materials": 3, "bounds": { "min": [ -2.6, 0, -3.1 ], "max": [ 2.6, 5, 3.1 ] }, "height": 5, "footprintRadius": 3.62, "upAxis": "y", "upAxisGuessed": true } } ``` ## Sprite tools (`sprite-tools`) 2D sprite jobs for games: cut sprites out of their background (exact for one-color backgrounds, AI for busy ones), turn animation videos into aligned sprite sheets, make normal maps for 2D lights, build 47-tile autotile sets with Tiled, Godot and Unity rules, slice a sheet into frames, pack frames into an atlas with TexturePacker and Unity metadata, and turn upscaled or AI-generated pixel art into real pixel art on its true grid with a limited palette. Schemas: ### POST /v1/sprite-tools/slice Cut a sprite sheet into frames by grid or by transparent gaps; frame PNGs plus a ZIP. Price: $0.05 USDC. Time limit: 45 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/sheet.png", "mode": "grid", "cols": 8, "rows": 4 } ``` Example response: ```json { "frames": [ { "name": "frame_000", "rect": { "x": 0, "y": 0, "w": 64, "h": 64 }, "trim": { "x": 0, "y": 0, "sourceW": 64, "sourceH": 64 }, "url": "https://rengi.dev/files//frames/frame_000.png" } ], "zip": "https://rengi.dev/files//frames.zip" } ``` ### POST /v1/sprite-tools/pack Pack frames into one atlas (MaxRects) with padding and edge extrusion; TexturePacker JSON and Unity JSON. Price: $0.05 USDC. Time limit: 45 s. Example request: ```json { "frames": [ { "name": "run_0", "imageUrl": "https://rengi.dev/samples/run_0.png" }, { "name": "run_1", "imageUrl": "https://rengi.dev/samples/run_1.png" } ], "padding": 2, "extrude": 1 } ``` Example response: ```json { "atlas": "https://rengi.dev/files//atlas.png", "width": 136, "height": 68, "texturepacker": "https://rengi.dev/files//atlas.json", "unity": "https://rengi.dev/files//atlas.unity.json", "rects": [ { "name": "run_0", "x": 2, "y": 2, "w": 64, "h": 64, "trim": { "x": 0, "y": 0, "sourceW": 64, "sourceH": 64 } } ] } ``` ### POST /v1/sprite-tools/pixelate Clean pixel art: find the true pixel grid, downscale to it, snap to a palette, hard alpha. Price: $0.10 USDC. Time limit: 45 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/ai-knight.png", "colors": 16 } ``` Example response: ```json { "image": "https://rengi.dev/files//pixel.png", "preview": "https://rengi.dev/files//preview.png", "width": 32, "height": 32, "scale": 8, "scaleDetected": true, "offset": { "x": 0, "y": 0 }, "palette": [ "#1a1c2c", "#5d275d" ] } ``` ### POST /v1/sprite-tools/remove-bg Cut a sprite, prop or character out of its background: exact keying for one-color backgrounds (text and holes too), AI segmentation for busy ones; clean edges with no halo, trimmed, with a pivot. AI mode handles one main subject, not text on photos. Price: $0.05 USDC. Time limit: 90 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/prop-on-white.png" } ``` Example response: ```json { "image": "https://rengi.dev/files//sprite.png", "mask": "https://rengi.dev/files//mask.png", "preview": "https://rengi.dev/files//preview.png", "mode": "flat", "backgroundColor": "#ffffff", "width": 420, "height": 610, "box": { "x": 302, "y": 140, "w": 416, "h": 606 }, "pivot": { "x": 0.5, "y": 0.0033 }, "pivotPx": { "x": 210, "y": 608 }, "warnings": [] } ``` ### POST /v1/sprite-tools/video-to-sheet Turn an animation video or GIF (from Kling, Veo, Sora or a capture) into a sprite sheet: frames at your fps, background removed, every frame aligned to one box and pivot so it does not jitter, the best loop point, TexturePacker JSON, Godot SpriteFrames and a GIF preview. Price: $0.15 USDC. Time limit: 170 s. Example request: ```json { "videoUrl": "https://rengi.dev/samples/slime-jump.mp4", "fps": 12 } ``` Example response: ```json { "sheet": "https://rengi.dev/files//sheet.png", "frames": "https://rengi.dev/files//frames.zip", "texturepacker": "https://rengi.dev/files//sheet.json", "godot": "https://rengi.dev/files//sheet.tres", "preview": "https://rengi.dev/files//preview.gif", "frameCount": 12, "frameWidth": 192, "frameHeight": 160, "columns": 4, "fps": 12, "background": "flat", "pivot": { "x": 0.5, "y": 0.0125 }, "loop": { "frames": 12, "difference": 0.012 }, "warnings": [] } ``` ### POST /v1/sprite-tools/normal-map Normal map for a sprite or sprite sheet, for 2D lights in Unity URP 2D and Godot: a rounded bevel from the silhouette plus surface detail, alpha kept, OpenGL or DirectX; a height map and a preview lit by a moving light. Price: $0.05 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/orb.png", "strength": 1 } ``` Example response: ```json { "normal": "https://rengi.dev/files//normal.png", "height": "https://rengi.dev/files//height.png", "preview": "https://rengi.dev/files//lit.gif", "width": 128, "height_px": 128, "bevel": 28, "convention": "opengl" } ``` ### POST /v1/sprite-tools/autotile 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. Price: $0.15 USDC. Time limit: 60 s. Example request: ```json { "baseUrl": "https://rengi.dev/samples/dirt.png", "topUrl": "https://rengi.dev/samples/grass.png", "tileSize": 32 } ``` Example response: ```json { "tileset": "https://rengi.dev/files//tileset.png", "preview": "https://rengi.dev/files//preview.png", "zip": "https://rengi.dev/files//autotile.zip", "json": "https://rengi.dev/files//autotile.json", "tiled": "https://rengi.dev/files//tileset.tsx", "godot": "https://rengi.dev/files//tileset.tres", "unityMeta": "https://rengi.dev/files//tileset.png.meta", "unityScript": "https://rengi.dev/files//RengiAutotile.cs", "tiles": 48, "tileSize": 32, "columns": 8, "madeSeamless": [], "howTo": { "tiled": "Add tileset.tsx to a map and paint with the Terrain brush (wang set 'terrain')." } } ``` ### POST /v1/sprite-tools/inbetween Smoother sprite animation: in-between frames from motion between your frames (4 frames to 8 or 12), pixel art stays crisp with no new colours, holds stay holds, loop seam included; sheet, JSON and a before/after GIF. Price: $0.05 USDC. Time limit: 120 s. Example request: ```json { "sheet": { "imageUrl": "https://rengi.dev/samples/walk-sheet.png" }, "cols": 4, "rows": 1, "factor": 2 } ``` Example response: ```json { "frames": [ "https://rengi.dev/files//frame_01.png" ], "sheet": "https://rengi.dev/files//sheet.png", "json": "https://rengi.dev/files//sheet.json", "preview": "https://rengi.dev/files//compare.gif", "zip": "https://rengi.dev/files//inbetween.zip", "mode": "pixel", "fps": 24, "frameCount": 8, "warnings": [] } ``` ### POST /v1/sprite-tools/outline Outline or glow around a sprite or every cell of a sprite sheet: pixel-perfect hard outlines for pixel art, antialiased ones for painted art, soft glows for pickups and selection. Cells grow so nothing is cut off. Price: $0.02 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/walk-sheet.png", "cols": 4, "rows": 1, "thickness": 1, "color": "#ffffff", "style": "pixel" } ``` Example response: ```json { "image": "https://rengi.dev/files//outlined.png", "preview": "https://rengi.dev/files//preview.png", "width": 136, "height": 34, "cellWidth": 34, "cellHeight": 34, "padding": 1 } ``` ### POST /v1/sprite-tools/recolor Recolour a sprite or sheet without touching its pixels' shapes: remap to a classic palette (PICO-8, Game Boy, Sweetie 16, Endesga 32, C64), shift hue for team colours and enemy tiers (only the uniform if you say which colour), swap exact colours, several versions in one call. Price: $0.02 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/walk-sheet.png", "variants": 4 } ``` Example response: ```json { "images": [ { "url": "https://rengi.dev/files//recolor-1.png", "hueShift": 0, "colors": 6 } ], "preview": "https://rengi.dev/files//preview.png", "width": 128, "height": 32, "palette": [] } ``` ### POST /v1/sprite-tools/animate Play a sprite sheet as a GIF or animated WebP: choose the grid, frame order, speed, ping-pong and a crisp whole-number upscale. For checking a walk cycle with your eyes, and for store pages, devlogs and READMEs. Price: $0.02 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/walk-sheet.png", "cols": 4, "rows": 1, "fps": 8, "scale": 6 } ``` Example response: ```json { "file": "https://rengi.dev/files//animation.gif", "format": "gif", "frames": 4, "width": 192, "height": 192, "durationMs": 500, "bytes": 2130 } ``` ## GLB optimizer (`glb-optimizer`) Make a GLB small and fast for the web or mobile: dedup, instance, join, weld, simplify, resize and re-encode textures, meshopt or draco compression. Returns the new file plus before/after numbers, a validator pass and a visual difference score from renders of both files. Animations, skins and morph targets are kept. Schemas: ### POST /v1/glb-optimizer/optimize 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. Price: $0.20 USDC. Time limit: 90 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/castle.glb", "preset": "web" } ``` Example response: ```json { "glb": "https://rengi.dev/files//optimized.glb", "before": { "fileBytes": 18400000, "triangles": 420000, "vertices": 260000, "primitives": 84, "drawCalls": 84, "meshes": 84, "materials": 12, "textures": 9, "textureMemoryBytes": 600000000, "animations": 0, "skins": 0, "morphTargets": 0 }, "after": { "fileBytes": 2100000, "triangles": 180000, "vertices": 260000, "primitives": 84, "drawCalls": 14, "meshes": 14, "materials": 12, "textures": 9, "textureMemoryBytes": 150000000, "animations": 0, "skins": 0, "morphTargets": 0 }, "savedPercent": 88.6, "steps": { "applied": [ "dedup", "prune", "instance", "join", "weld", "simplify (error 0.001)", "textures (max 2048, webp)", "meshopt compression" ], "skipped": [] }, "visual": { "difference": 0.012, "ok": true, "beforeUrl": "https://rengi.dev/files//before.png", "afterUrl": "https://rengi.dev/files//after.png" }, "validation": { "errors": 0, "warnings": 0, "messages": [] }, "loaderNote": "Uses EXT_meshopt_compression: ..." } ``` ### POST /v1/glb-optimizer/optimize-large Shrink a large GLB (up to 50 MB) for web or mobile, same pipeline as optimize: dedup, join, simplify, WebP textures, meshopt or Draco. Price: $0.50 USDC. Time limit: 120 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/castle.glb", "preset": "web" } ``` Example response: ```json { "glb": "https://rengi.dev/files//optimized.glb", "before": { "fileBytes": 18400000, "triangles": 420000, "vertices": 260000, "primitives": 84, "drawCalls": 84, "meshes": 84, "materials": 12, "textures": 9, "textureMemoryBytes": 600000000, "animations": 0, "skins": 0, "morphTargets": 0 }, "after": { "fileBytes": 2100000, "triangles": 180000, "vertices": 260000, "primitives": 84, "drawCalls": 14, "meshes": 14, "materials": 12, "textures": 9, "textureMemoryBytes": 150000000, "animations": 0, "skins": 0, "morphTargets": 0 }, "savedPercent": 88.6, "steps": { "applied": [ "dedup", "prune", "instance", "join", "weld", "simplify (error 0.001)", "textures (max 2048, webp)", "meshopt compression" ], "skipped": [] }, "visual": { "difference": 0.012, "ok": true, "beforeUrl": "https://rengi.dev/files//before.png", "afterUrl": "https://rengi.dev/files//after.png" }, "validation": { "errors": 0, "warnings": 0, "messages": [] }, "loaderNote": "Uses EXT_meshopt_compression: ..." } ``` ### POST /v1/glb-optimizer/inspect Inspect a GLB without changing it: triangles, draw calls, materials, texture memory, animations, glTF validator errors, and concrete suggestions to make it lighter. Price: $0.05 USDC. Time limit: 45 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/castle.glb" } ``` Example response: ```json { "report": { "fileBytes": 18400000, "triangles": 420000, "vertices": 260000, "primitives": 84, "drawCalls": 84, "meshes": 84, "materials": 12, "textures": 9, "textureMemoryBytes": 600000000, "animations": 0, "skins": 0, "morphTargets": 0 }, "suggestions": [ "Textures take about 572 MB of GPU memory; resize to 2048 or less (1024 on mobile).", "420,000 triangles is heavy for the web; simplify or add LODs.", "84 draw calls; join meshes that share a material or instance repeated ones.", "Many separate meshes; check for repeated geometry that could be instanced.", "No mesh compression; meshopt usually cuts geometry size by 3-10x." ], "validation": { "errors": 0, "warnings": 3, "messages": [] } } ``` ### POST /v1/glb-optimizer/convert Convert FBX, OBJ (zip with .mtl and textures), glTF (zip), STL, PLY, DAE or 3DS to one GLB: Y-up, in meters, materials and FBX animations kept. Returns the GLB, a report, a validator pass and a preview render. Price: $0.15 USDC. Time limit: 120 s. Example request: ```json { "fileUrl": "https://rengi.dev/samples/crate.fbx" } ``` Example response: ```json { "glb": "https://rengi.dev/files//model.glb", "preview": "https://rengi.dev/files//preview.png", "format": "fbx", "upAxis": "y", "unitScale": 1, "sizeMeters": [ 1, 2, 0.5 ], "report": { "fileBytes": 18400000, "triangles": 420000, "vertices": 260000, "primitives": 84, "drawCalls": 84, "meshes": 84, "materials": 12, "textures": 9, "textureMemoryBytes": 600000000, "animations": 0, "skins": 0, "morphTargets": 0 }, "validation": { "errors": 0, "warnings": 0, "messages": [] }, "warnings": [] } ``` ### POST /v1/glb-optimizer/lod Generate a LOD chain from a GLB (default 100/50/25/10% of triangles) with locked borders so UV seams and silhouettes hold; one GLB per level, a side-by-side render and Unity LODGroup transition heights. Price: $0.20 USDC. Time limit: 120 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/castle.glb" } ``` Example response: ```json { "lods": [ { "level": 0, "ratio": 1, "triangles": 96000, "glb": "https://rengi.dev/files//lod0.glb" }, { "level": 1, "ratio": 0.5, "triangles": 48010, "glb": "https://rengi.dev/files//lod1.glb" } ], "sourceTriangles": 96000, "sheet": "https://rengi.dev/files//lods.png", "unityTransitions": [ 0.6, 0.3, 0.15, 0.02 ], "warnings": [] } ``` ### POST /v1/glb-optimizer/colliders Collision for a model: a set of convex hulls that hug the shape (V-HACD), ready for Godot (-convcolonly nodes), Unreal (UCX_ names) and Unity (convex MeshColliders via an editor script), plus hulls.json for any engine and a see-through overlay to check. Price: $0.15 USDC. Time limit: 150 s. Example request: ```json { "glbUrl": "https://rengi.dev/samples/table.glb", "maxHulls": 16 } ``` Example response: ```json { "overlay": "https://rengi.dev/files//overlay.glb", "godot": "https://rengi.dev/files//godot.glb", "unreal": "https://rengi.dev/files//unreal.glb", "unity": "https://rengi.dev/files//unity.glb", "unityScript": "https://rengi.dev/files//RengiColliders.cs", "hullsJson": "https://rengi.dev/files//hulls.json", "preview": "https://rengi.dev/files//preview.png", "hulls": 5, "hullTriangles": 60, "volumeRatio": 1.04, "simple": { "box": { "center": [ 0, 0.4, 0 ], "size": [ 1.2, 0.8, 0.7 ] } }, "howTo": { "godot": "Import godot.glb: nodes ending in -convcolonly become StaticBody3D convex shapes." } } ``` ## Texture tools (`texture-tools`) Turn a picture into a game-ready material: seamless tiling without visible seams or light bands, PBR maps (normal for Unity and Unreal, height, roughness, AO) from one image, channel packing for Unreal ORM and Unity masks, and texture atlases with mip-safe gutters. Works on generated or photographed textures; it does not generate images. Schemas: ### POST /v1/texture-tools/seamless Make a texture tile without visible seams: removes baked lighting, hides the seam along the path where the image already matches. Returns the tile and a 2x2 preview. Price: $0.10 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/stone.png", "delight": true } ``` Example response: ```json { "tile": "https://rengi.dev/files//tile.png", "preview": "https://rengi.dev/files//preview-2x2.png", "width": 450, "height": 450, "seamScore": 1.02 } ``` ### POST /v1/texture-tools/pbr PBR maps from one albedo image: normal (OpenGL for Unity/three.js and DirectX for Unreal), 16-bit height, roughness and ambient occlusion, plus a lit preview. Price: $0.15 USDC. Time limit: 90 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/stone-tile.png", "normalStrength": 2 } ``` Example response: ```json { "maps": { "albedo": "https://rengi.dev/files//albedo.png", "normal": "https://rengi.dev/files//normal-gl.png", "normalDx": "https://rengi.dev/files//normal-dx.png", "height": "https://rengi.dev/files//height.png", "roughness": "https://rengi.dev/files//roughness.png", "ao": "https://rengi.dev/files//ao.png" }, "preview": "https://rengi.dev/files//lit-preview.png", "width": 512, "height": 512, "notes": "normal is OpenGL (green up) for Unity and three.js; normalDx is for Unreal." } ``` ### POST /v1/texture-tools/pack Pack grayscale maps into one texture for an engine preset: Unreal ORM, Unity URP metallic/smoothness, Unity HDRP mask map. Missing maps get sensible constants. Price: $0.05 USDC. Time limit: 60 s. Example request: ```json { "preset": "unreal-orm", "roughness": { "imageUrl": "https://rengi.dev/samples/stone.png" } } ``` Example response: ```json { "image": "https://rengi.dev/files//packed-unreal-orm.png", "width": 512, "height": 512, "channels": { "r": "ao (constant 1)", "g": "roughness", "b": "metallic (constant 0)", "a": "unused" }, "notes": "Unreal ORM: R ambient occlusion, G roughness, B metallic." } ``` ### POST /v1/texture-tools/atlas Pack textures into one atlas with edge-filled gutters so mipmaps do not bleed; UV rects for bottom-left (Unity, OpenGL) and top-left (DirectX, Unreal) origins. Price: $0.05 USDC. Time limit: 90 s. Example request: ```json { "textures": [ { "name": "stone", "imageUrl": "https://rengi.dev/samples/stone-tile.png" }, { "name": "crate", "imageUrl": "https://rengi.dev/samples/crate.png" } ], "padding": 8 } ``` Example response: ```json { "atlas": "https://rengi.dev/files//atlas.png", "width": 1024, "height": 512, "rects": [ { "name": "stone", "x": 8, "y": 8, "w": 450, "h": 450, "uv": { "u0": 0.0078, "v0": 0.1094, "u1": 0.4473, "v1": 0.9844 }, "uvTopLeft": { "u0": 0.0078, "v0": 0.0156, "u1": 0.4473, "v1": 0.8906 } } ], "json": "https://rengi.dev/files//atlas.json" } ``` ## Audio tools (`audio-tools`) Make generated or recorded sounds game-ready: trim silence and match loudness (LUFS with a true-peak ceiling), seamless loops for music and ambience with loop points, and SFX variations. Outputs ogg, wav or mp3 with a waveform. It does not generate audio. Schemas: ### POST /v1/audio-tools/clean Trim silence, normalize loudness to a LUFS target with a -1 dBTP ceiling, add anti-click fades and convert (ogg, wav, mp3; mono for SFX). Returns the file, a waveform and measured stats. Price: $0.05 USDC. Time limit: 120 s. Example request: ```json { "audioUrl": "https://rengi.dev/samples/hit.wav", "kind": "sfx", "format": "ogg" } ``` Example response: ```json { "file": "https://rengi.dev/files//clean.ogg", "waveform": "https://rengi.dev/files//waveform.png", "stats": { "durationSec": 0.42, "sampleRate": 44100, "channels": 1, "integratedLufs": -16.1, "truePeakDb": -1.2 }, "before": { "durationSec": 1.5, "integratedLufs": -27.3 }, "limitedByPeak": false } ``` ### POST /v1/audio-tools/loop Turn music or ambience into a seamless loop: cuts at zero crossings and crossfades the end into the start with an equal-power curve. Returns the loop, a 3x preview and loop points in samples. Price: $0.10 USDC. Time limit: 120 s. Example request: ```json { "audioUrl": "https://rengi.dev/samples/ambience.wav", "crossfadeMs": 250 } ``` Example response: ```json { "file": "https://rengi.dev/files//loop.ogg", "preview": "https://rengi.dev/files//loop-x3.ogg", "waveform": "https://rengi.dev/files//waveform.png", "loopStartSample": 0, "loopEndSample": 211500, "sampleRate": 44100, "durationSec": 4.8 } ``` ### POST /v1/audio-tools/variations Make 2-12 variations of one sound effect with small pitch and volume changes, so repeated footsteps or hits do not sound copy-pasted. Returns each file and a ZIP. Price: $0.10 USDC. Time limit: 120 s. Example request: ```json { "audioUrl": "https://rengi.dev/samples/hit.wav", "count": 5 } ``` Example response: ```json { "variations": [ { "name": "hit_01", "file": "https://rengi.dev/files//hit_01.ogg", "semitones": -1.2, "gainDb": 0.8, "durationSec": 0.48 } ], "zip": "https://rengi.dev/files//variations.zip", "waveform": "https://rengi.dev/files//waveform.png" } ``` ### POST /v1/audio-tools/voice Make a voice recording or TTS take game-ready: rumble high-passed, noise reduced against the measured floor, sibilance tamed, dialogue loudness (-18 LUFS) with a -1 dBTP ceiling, and a long take split into one file per phrase with a CSV cue sheet. Price: $0.10 USDC. Time limit: 150 s. Example request: ```json { "audioUrl": "https://rengi.dev/samples/voice-take.wav" } ``` Example response: ```json { "file": "https://rengi.dev/files//voice.ogg", "lines": [ { "file": "https://rengi.dev/files//lines/line_001.ogg", "start": 0.54, "end": 1.76, "durationSec": 1.22 } ], "csv": "https://rengi.dev/files//lines.csv", "zip": "https://rengi.dev/files//voice.zip", "waveformBefore": "https://rengi.dev/files//waveform-before.png", "waveform": "https://rengi.dev/files//waveform.png", "stats": { "durationSec": 7, "sampleRate": 48000, "channels": 1, "integratedLufs": -18, "truePeakDb": -2.1 }, "noiseFloor": { "beforeDb": -52.3, "afterDb": -71.8 }, "limitedByPeak": false, "warnings": [] } ``` ### POST /v1/audio-tools/beats Beat map of a song for rhythm games and music-synced effects: BPM and tempo changes, beats, bar lines, kick / snare / hat hits, and easy, normal and hard note charts on the grid, as JSON. Price: $0.05 USDC. Time limit: 90 s. Example request: ```json { "audioUrl": "https://rengi.dev/samples/drums.ogg" } ``` Example response: ```json { "bpm": 140, "tempoMap": [ { "start": 0, "bpm": 120 }, { "start": 19.55, "bpm": 140 } ], "beats": [ 0.023, 0.523, 1.023 ], "downbeats": [ 0.023, 2.023 ], "onsets": { "kick": [ 0.023, 1.023 ], "snare": [ 0.523, 1.523 ], "hats": [ 0.023, 0.273, 0.523 ] }, "charts": { "easy": [ { "t": 0.023, "lane": 0 } ], "normal": [ { "t": 0.023, "lane": 0 }, { "t": 0.523, "lane": 1 } ], "hard": [ { "t": 0.023, "lane": 0 }, { "t": 0.023, "lane": 2 } ] }, "beatmap": "https://rengi.dev/files//beatmap.json", "preview": "https://rengi.dev/files//beats.png", "durationSec": 40 } ``` ### POST /v1/audio-tools/sfx Make 8-bit style sound effects from nothing: coin, laser, explosion, power-up, hit, jump, menu blip, click. Several takes or a family of variations per call, repeatable by seed, peak-normalized and trimmed, as WAV, OGG or MP3. Yours to use anywhere. Price: $0.02 USDC. Time limit: 60 s. Example request: ```json { "kind": "coin", "seed": 7, "count": 3 } ``` Example response: ```json { "sounds": [ { "file": "https://rengi.dev/files//coin-1.wav", "seed": 7, "durationMs": 412, "waveform": "https://rengi.dev/files//coin-1.png", "params": { "wave_type": 0, "p_base_freq": 0.62 } } ], "zip": "https://rengi.dev/files//coin.zip", "seed": 7, "license": "Generated for you; use it in any project, commercial included, no credit needed." } ``` ## Store assets (`store-assets`) Release art from one key art: every Steam store and library capsule at the exact required size with your logo placed per Steam's rules (never on the Library Hero), and full icon sets for iOS, Android adaptive icons, Google Play and the web. Schemas: ### POST /v1/store-assets/steam Every Steam store and library capsule from one key art at the exact required sizes: logo composited per Steam rules, Library Hero without logo, separate transparent Library Logo, page background, a contact sheet and a ZIP. Price: $0.20 USDC. Time limit: 120 s. Example request: ```json { "keyArt": { "imageUrl": "https://rengi.dev/samples/key-art.png" }, "logo": { "imageUrl": "https://rengi.dev/samples/logo.png" } } ``` Example response: ```json { "files": { "header": "https://rengi.dev/files//header_capsule.png", "small": "https://rengi.dev/files//small_capsule.png", "main": "https://rengi.dev/files//main_capsule.png", "vertical": "https://rengi.dev/files//vertical_capsule.png", "libraryCapsule": "https://rengi.dev/files//library_capsule.png", "libraryHeader": "https://rengi.dev/files//library_header.png", "libraryHero": "https://rengi.dev/files//library_hero.png", "pageBackground": "https://rengi.dev/files//page_background.png", "libraryLogo": "https://rengi.dev/files//library_logo.png" }, "contactSheet": "https://rengi.dev/files//contact_sheet.png", "zip": "https://rengi.dev/files//steam_assets.zip", "warnings": [] } ``` ### POST /v1/store-assets/icons App icons from one square art: iOS 1024 with Contents.json, Android adaptive icon layers at every density plus legacy and Play Store 512, and web favicons with a manifest snippet. Preview with the masks launchers apply. Price: $0.10 USDC. Time limit: 120 s. Example request: ```json { "art": { "imageUrl": "https://rengi.dev/samples/icon-art.png" }, "name": "My Game" } ``` Example response: ```json { "ios": { "icon": "https://rengi.dev/files//ios/AppIcon-1024.png", "contentsJson": "https://rengi.dev/files//ios/Contents.json" }, "android": { "playStore": "https://rengi.dev/files//android/play_store_512.png", "foreground": "https://rengi.dev/files//android/mipmap-xxxhdpi/ic_launcher_foreground.png", "background": "https://rengi.dev/files//android/mipmap-xxxhdpi/ic_launcher_background.png", "adaptiveXml": "https://rengi.dev/files//android/mipmap-anydpi-v26/ic_launcher.xml" }, "web": { "favicon32": "https://rengi.dev/files//web/favicon-32.png", "appleTouch": "https://rengi.dev/files//web/apple-touch-icon.png", "icon512": "https://rengi.dev/files//web/icon-512.png", "manifest": "https://rengi.dev/files//web/site.webmanifest" }, "preview": "https://rengi.dev/files//preview.png", "zip": "https://rengi.dev/files//icons.zip", "warnings": [] } ``` ### POST /v1/store-assets/stores One key art and logo to the store images beyond Steam: itch.io cover 630x500, Google Play feature graphic 1024x500, Epic landscape 2560x1440 and portrait 1200x1600; gameplay screenshots fitted to Google Play 1920x1080 and App Store iPhone 6.9", 6.3" and iPad 13" sizes without stretching, no alpha where stores reject it. Price: $0.20 USDC. Time limit: 120 s. Example request: ```json { "keyArt": { "imageUrl": "https://rengi.dev/samples/key-art.png" }, "logo": { "imageUrl": "https://rengi.dev/samples/logo.png" } } ``` Example response: ```json { "files": { "itch/cover.png": "https://rengi.dev/files//itch/cover.png", "googlePlay/feature_graphic.png": "https://rengi.dev/files//googlePlay/feature_graphic.png" }, "contactSheet": "https://rengi.dev/files//contact_sheet.png", "zip": "https://rengi.dev/files//stores.zip", "warnings": [] } ``` ### POST /v1/store-assets/trailer A raw gameplay recording (up to 10 min) to a 16:9 Steam trailer, a 9:16 short and a store GIF: picks the action by motion and sound, skips menus and loading, hook first, cuts on the music's beat, vertical crop follows the action, -14 LUFS, optional end card; plus the edit list. Price: $0.40 USDC. Time limit: 170 s. Example request: ```json { "videoUrl": "https://rengi.dev/samples/gameplay.mp4", "endText": "Wishlist on Steam", "trailerSeconds": 30, "shortSeconds": 15 } ``` Example response: ```json { "trailer": "https://rengi.dev/files//trailer.mp4", "short": "https://rengi.dev/files//short.mp4", "gif": "https://rengi.dev/files//preview.gif", "contactSheet": "https://rengi.dev/files//contact-sheet.jpg", "edit": "https://rengi.dev/files//edit.json", "zip": "https://rengi.dev/files//trailer.zip", "trailerShots": [ { "start": 41.3, "end": 43.3, "score": 0.91 }, { "start": 6.2, "end": 8.2, "score": 0.64 }, { "start": 77.9, "end": 79.9, "score": 0.88 } ], "shortShots": [ { "start": 41.3, "end": 42.9, "score": 0.9 } ], "trailerSeconds": 32.5, "shortSeconds": 18.5, "bpm": null, "warnings": [] } ``` ### POST /v1/store-assets/steam-audit Check a Steam store page against what Steam rewards: screenshots, trailer, short and long description, GIFs, languages, controller support, achievements, reviews, website; a score out of 100 and a fix for each gap. Price: $0.05 USDC. Time limit: 40 s. Example request: ```json { "appId": 2625680 } ``` Example response: ```json { "score": 71, "checks": [ { "id": "description_media", "status": "warn", "message": "No images or GIFs in the long description.", "fix": "Add 3-6 short animated GIFs of gameplay between the sections; they sell the game to people who scroll past the trailer." }, { "id": "trailer", "status": "pass", "message": "1 video." } ], "facts": { "name": "Godly Survivors", "appId": 2625680, "url": "https://store.steampowered.com/app/2625680/", "releaseDate": "2024", "comingSoon": false, "price": "$4.99", "genres": [ "Action" ], "screenshots": 9, "trailers": 1, "languages": 1, "reviews": { "total": 12, "positivePct": 83, "summary": "Positive" }, "platforms": [ "windows" ] } } ``` ## Font tools (`font-tools`) Turn a TTF/OTF font into a bitmap font for games: crisp pixel-perfect glyphs for pixel art or smooth antialiased ones, Latin and Cyrillic, optional outline, atlas PNG plus AngelCode BMFont .fnt with kerning (Unity, Godot, Phaser, LibGDX) and JSON. Schemas: ### POST /v1/font-tools/bitmap Bitmap font from a TTF/OTF: atlas PNG, BMFont .fnt with kerning, JSON and a preview of a sample line. Pixel mode snaps glyphs to whole pixels with no antialiasing. Price: $0.10 USDC. Time limit: 90 s. Example request: ```json { "fontUrl": "https://rengi.dev/samples/DejaVuSans.ttf", "size": 16, "mode": "pixel", "charset": "cyrillic" } ``` Example response: ```json { "atlas": "https://rengi.dev/files//font.png", "fnt": "https://rengi.dev/files//font.fnt", "json": "https://rengi.dev/files//font.json", "preview": "https://rengi.dev/files//preview.png", "width": 256, "height": 128, "glyphs": 191, "missing": [], "lineHeight": 19, "base": 15 } ``` ## Playtest (`playtest`) Plays a web game in a real browser, as on a PC and as on a weak phone, and reports what an agent needs to fix: errors, missing files, a black or frozen screen, load time, draw calls, texture memory, shader stalls, memory leaks and build weight, with a video and screenshots of each pass. Takes a public URL or a ZIP of a static build (Unity WebGL included). Schemas: ### POST /v1/playtest/run Play a web game (URL or ZIP build) as on a PC and as on a weak phone: errors, missing files, black or frozen screen, load time, draw calls, textures, shader stalls, memory leaks, build weight, video and screenshots. Price: $0.25 USDC. Time limit: 170 s. Example request: ```json { "zipUrl": "https://rengi.dev/samples/playtest-demo.zip", "steps": [ { "do": "wait", "ms": 1500 }, { "do": "key", "key": "Enter", "holdMs": 100 }, { "do": "key", "key": "ArrowRight", "holdMs": 1200 } ], "seconds": 30 } ``` Example response: ```json { "findings": [ { "severity": "error", "code": "js_error", "profile": "both", "message": "3 uncaught JavaScript error(s).", "evidence": "3x TypeError: Cannot read properties of undefined (reading 'hp')" }, { "severity": "error", "code": "missing_files", "profile": "both", "message": "1 file(s) not found (404).", "evidence": "/assets/sfx/jump.ogg" }, { "severity": "warning", "code": "memory_growth", "profile": "desktop", "message": "JS memory kept growing: 38 MB to 71 MB, about 66 MB per minute. Likely a leak (objects created every frame and kept)." }, { "severity": "warning", "code": "huge_texture", "profile": "both", "message": "A 4096x4096 texture (about 64 MB of GPU memory). Phones often cap at 4096 and run out of memory; use 2048 or compressed textures (KTX2)." } ], "profiles": { "desktop": { "viewport": { "width": 1280, "height": 720 }, "cpuSlowdown": 1, "load": { "domContentLoadedMs": 410, "loadMs": 1180, "firstDrawMs": 1420 }, "frames": { "count": 1620, "softwareFps": 54, "p50Ms": 16.7, "p95Ms": 33.4, "p99Ms": 50.1, "worstMs": 212, "hitches": 9 }, "webgl": { "contexts": 1, "drawCallsMedian": 142, "drawCallsMax": 188, "trianglesMedian": 96000, "trianglesMax": 131000, "textures": 38, "textureMemoryMb": 212, "biggestTexture": "4096x4096", "programs": 24, "slowestLinkMs": 240, "contextLost": false }, "memory": { "startMb": 38, "endMb": 71, "slopeMbPerMin": 66 }, "longTasks": { "count": 4, "worstMs": 380 }, "errors": [ { "message": "TypeError: Cannot read properties of undefined (reading 'hp')", "count": 3 } ], "consoleErrors": [], "failedRequests": [ { "url": "/assets/sfx/jump.ogg", "status": 404 } ], "blockedRequests": 0, "network": { "requests": 61, "totalMb": 18.4, "byTypeMb": { "script": 9.1, "image": 6.2, "fetch": 3.1 }, "biggest": [ { "url": "/Build/game.wasm", "mb": 8.7 } ] }, "screen": { "black": false, "frozen": false, "crashed": false }, "video": "https://rengi.dev/files//desktop/desktop.mp4", "screenshots": [ "https://rengi.dev/files//desktop/shot-01.jpg" ] } }, "contactSheet": "https://rengi.dev/files//contact-sheet.jpg", "report": "https://rengi.dev/files//report.json", "zip": "https://rengi.dev/files//playtest.zip", "softwareRender": true } ``` ## VFX review (`vfx`) Reviews a game effect the way a lead VFX artist would: a numbered frame strip and a greyscale strip, the energy curve, measured timing (arrival, hold, dissipation), white burn-out, value contrast and flicker, and scores with frame-tied notes on the six qualities of rng-vfx. Optional style, brief and a reference clip to compare against. Schemas: ### POST /v1/vfx/review Review one VFX clip (video or GIF) like a lead artist: frame strip, greyscale strip, energy curve, timing, white burn-out, contrast, flicker, loop seam, and scores with frame-tied fixes on rng-vfx's six qualities; optional reference to compare. Price: $0.20 USDC. Time limit: 120 s. Example request: ```json { "clipUrl": "https://rengi.dev/samples/slash-weak.mp4", "style": "stylized", "brief": "heavy sword slash on an enemy" } ``` Example response: ```json { "findings": [ { "severity": "warning", "code": "even_fade", "quality": 4, "frames": "14-31", "message": "The fade is a straight line, like an alpha ramp. Make it uneven: a fast drop after the hold, then a long tail, with parts leaving at different times." }, { "severity": "warning", "code": "white_body", "quality": 5, "frames": "14", "message": "48% of the effect is pure white at its peak. Keep white to a small hot core; the body should stay saturated (lower intensity, or colour that does not burn out under bloom)." } ], "review": { "scores": [ { "quality": 1, "name": "Reads from the gameplay camera", "score": 3, "note": "The arc reads in one frame." }, { "quality": 2, "name": "Weight in proportion to the event", "score": 2, "note": "Too thin for a heavy hit." }, { "quality": 3, "name": "The world reacts", "score": 1, "note": "Nothing happens on the target or the ground." }, { "quality": 4, "name": "Timing has contrast", "score": 2, "note": "Swells over 10 frames, then an even fade." }, { "quality": 5, "name": "Each material behaves like itself", "score": 2, "note": "The arc burns to white; no colour ramp." }, { "quality": 6, "name": "The motion is polished", "score": 3, "note": "Smooth, slight shimmer on the tail." } ], "notes": [ { "frames": "4-14", "issue": "The slash takes 10 frames to appear.", "fix": "Bring it in over 2-3 frames with an anticipation smear on frame 3." } ], "verdict": "Would not ship next to MOBA slashes yet: the hit has no weight and the target does not react.", "weakest": 3 }, "timing": { "fps": 60, "frames": 90, "peakFrame": 14, "startFrame": 4, "endFrame": 31, "attackFrames": 10, "holdFrames": 1, "decayFrames": 17, "attackMs": 167, "holdMs": 17, "decayMs": 283, "fadeLinearity": 0.98, "vanishFrame": null, "flickers": [], "endsAt": 0.02 }, "metrics": { "peakArea": 6.4, "peakWhiteShare": 48, "peakSaturation": 22, "peakGreyContrast": 61, "peakBrightness": 255 }, "strip": "https://rengi.dev/files//strip.png", "greyStrip": "https://rengi.dev/files//strip-grey.png", "curve": "https://rengi.dev/files//curve.png", "reference": null, "comparison": [], "warnings": [] } ``` ## Web tools (`web-tools`) A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel. Schemas: ### POST /v1/web-tools/screenshot Screenshot of a live page in a real browser: desktop, laptop, tablet or phone, first screen, full page or one element, light or dark theme. Loads lazy content first, hides what you name, reports the HTTP status and load time. Price: $0.02 USDC. Time limit: 90 s. Example request: ```json { "url": "https://rengi.dev/samples/page.html", "device": "phone", "fullPage": true } ``` Example response: ```json { "image": "https://rengi.dev/files//screenshot.png", "width": 780, "height": 2410, "bytes": 182340, "title": "Harbour Coffee Roasters", "finalUrl": "https://rengi.dev/samples/page.html", "status": 200, "loadMs": 412, "notes": [] } ``` ### POST /v1/web-tools/extract Open a page in a real browser, run its JavaScript, and return the main content as clean Markdown with title, author, date and description, plus the links and images it holds. Navigation, ads, cookie banners and footers are left out. Price: $0.02 USDC. Time limit: 90 s. Example request: ```json { "url": "https://rengi.dev/samples/page.html" } ``` Example response: ```json { "title": "Harbour Coffee Roasters", "byline": "Mara Lind", "siteName": "Harbour Coffee", "published": "2026-03-02", "lang": "en", "description": "Small-batch coffee roasted by the harbour.", "canonical": "https://harbour.example/", "markdown": "# Harbour Coffee Roasters\n\nWe roast in small batches...", "truncated": false, "words": 310, "chars": 1890, "file": "https://rengi.dev/files//page.md", "links": [ { "text": "Brewing guide", "href": "https://harbour.example/guide" } ], "images": [], "finalUrl": "https://rengi.dev/samples/page.html", "status": 200, "mode": "article", "notes": [] } ``` ### POST /v1/web-tools/pdf PDF from a live URL or from your own HTML, printed by a real browser: paper size, margins, landscape, backgrounds, page numbers. For invoices, reports, resumes and saving articles. Price: $0.03 USDC. Time limit: 90 s. Example request: ```json { "url": "https://rengi.dev/samples/page.html", "format": "A4", "pageNumbers": true } ``` Example response: ```json { "pdf": "https://rengi.dev/files//page.pdf", "pages": 2, "bytes": 48211, "title": "Harbour Coffee Roasters", "notes": [] } ``` ### POST /v1/web-tools/markdown-pdf A clean, printable PDF from Markdown: headings, lists, tables, code blocks, quotes and images, set in a readable typeface with page numbers. For reports, specs, invoices and notes an agent has written. Also returns the standalone HTML. Price: $0.03 USDC. Time limit: 90 s. Example request: ```json { "markdown": "# Weekly report\n\nBuilds are **12% faster** this week.\n\n| Suite | Time |\n| --- | --- |\n| unit | 41 s |\n| e2e | 3 min |\n\n- [x] caching\n- [ ] flaky test 14" } ``` Example response: ```json { "pdf": "https://rengi.dev/files//document.pdf", "html": "https://rengi.dev/files//document.html", "pages": 1, "bytes": 31240, "title": "Weekly report", "notes": [] } ``` ### POST /v1/web-tools/render-html Turn HTML and CSS into a PNG, JPEG or WebP with a real browser engine: cards, banners, charts, email previews, code snippets, diagrams. Fixed size or as tall as the content, up to 3x density, transparent background. Price: $0.02 USDC. Time limit: 60 s. Example request: ```json { "html": "
Shipped: v2.4
", "width": 800 } ``` Example response: ```json { "image": "https://rengi.dev/files//render.png", "width": 800, "height": 154, "bytes": 9120, "notes": [] } ``` ### POST /v1/web-tools/og-image Open Graph card from a title: 1200x630 for link previews (also Twitter, square and story sizes), three layouts, your colours, logo and photo. Long titles shrink to fit and are never cut off. Returns the image and the meta tags. Price: $0.02 USDC. Time limit: 60 s. Example request: ```json { "title": "How we cut our build time from 14 minutes to 90 seconds", "subtitle": "Caching, parallel tests and one flag nobody had read about.", "eyebrow": "Engineering blog", "footer": "forge.rengi.dev", "template": "classic", "theme": "dark", "accent": "#d9480f" } ``` Example response: ```json { "image": "https://rengi.dev/files//og.png", "width": 1200, "height": 630, "bytes": 61234, "titleFontPx": 76, "meta": "/og.png\">\n\n\n", "notes": [] } ``` ### POST /v1/web-tools/page-audit Load a page in a real browser on desktop and phone and report what to fix, most serious first: SEO and social tags, speed (LCP, CLS, page weight, heavy files), accessibility basics, mobile layout, broken links, console errors and security headers. With screenshots. Price: $0.05 USDC. Time limit: 150 s. Example request: ```json { "url": "https://rengi.dev/samples/page.html" } ``` Example response: ```json { "finalUrl": "https://rengi.dev/samples/page.html", "status": 200, "summary": { "errors": 1, "warnings": 3, "info": 2 }, "findings": [ { "severity": "error", "area": "seo", "message": "The page has no meta description.", "fix": "Add with 70 to 160 characters that say what the page offers." } ], "meta": { "title": "Harbour Coffee Roasters", "description": null, "canonical": null, "lang": "en", "robots": null, "viewport": "width=device-width, initial-scale=1", "h1": [ "Harbour Coffee Roasters" ], "og": { "title": "Harbour Coffee Roasters" }, "twitter": {}, "favicon": null, "structuredData": [], "words": 310 }, "performance": { "ttfbMs": 12, "fcpMs": 180, "lcpMs": 240, "domContentLoadedMs": 150, "loadMs": 300, "cls": 0, "requests": 4, "transferBytes": 48211, "byType": { "document": { "requests": 1, "bytes": 5211 } }, "largest": [ { "url": "https://rengi.dev/samples/hero.jpg", "type": "image", "bytes": 39000 } ], "domNodes": 86, "compressed": true }, "links": { "internal": 4, "external": 2, "checked": 6, "broken": [] }, "mobile": { "overflowPx": 0, "smallTapTargets": 0, "tapTargets": 9 }, "robotsTxt": true, "sitemap": false, "screenshots": { "desktop": "https://rengi.dev/files//desktop.jpg", "phone": "https://rengi.dev/files//phone.jpg" } } ``` ### POST /v1/web-tools/visual-diff Visual regression check: screenshot a page and compare it with another URL (preview against production) or with an earlier screenshot. Returns the share of changed pixels, a same/different verdict, boxes around the changes and a diff image. Price: $0.04 USDC. Time limit: 150 s. Example request: ```json { "url": "https://rengi.dev/samples/page-v2.html", "baselineUrl": "https://rengi.dev/samples/page.html", "device": "desktop", "fullPage": true } ``` Example response: ```json { "same": false, "changedPercent": 2.31, "changedPixels": 48120, "sizeMismatch": false, "regions": [ { "x": 96, "y": 410, "width": 380, "height": 64, "pixels": 9120 } ], "current": "https://rengi.dev/files//current.png", "baseline": "https://rengi.dev/files//baseline.png", "diff": "https://rengi.dev/files//diff.png", "sideBySide": "https://rengi.dev/files//side-by-side.png", "currentSize": { "width": 1280, "height": 1640 }, "baselineSize": { "width": 1280, "height": 1640 }, "notes": [] } ``` ## Site checks (`net-tools`) Fast checks on any site without a browser: HTTP headers with a security grade and the redirect chain, TLS certificate and expiry, DNS records with mail setup (SPF, DMARC), what a site is built with and its contacts, robots.txt and AI crawler access, and a crawl that finds broken links and builds a sitemap. Schemas: ### POST /v1/net-tools/headers Request a URL and report what comes back: every redirect hop with timing, the response headers, cookies and their flags, caching and compression, and a security grade with the missing headers and how to add them. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "url": "https://rengi.dev" } ``` Example response: ```json { "finalUrl": "https://example.org/", "status": 200, "httpVersion": "1.1", "redirects": [ { "url": "https://example.org/", "status": 200, "ms": 84 } ], "totalMs": 84, "headers": { "content-type": "text/html; charset=UTF-8", "cache-control": "max-age=604800" }, "cookies": [], "security": { "grade": "D", "https": true, "hsts": false, "csp": false, "noSniff": false, "frameProtection": false, "referrerPolicy": false, "permissionsPolicy": false }, "caching": { "cacheControl": "max-age=604800", "etag": true, "lastModified": true, "compressed": null }, "findings": [ { "severity": "warning", "message": "No Strict-Transport-Security header.", "fix": "Send Strict-Transport-Security: max-age=31536000; includeSubDomains so browsers never use plain http for this site." } ] } ``` ### POST /v1/net-tools/ssl Connect to a host and read its TLS certificate: whether browsers accept it, who issued it, the names it covers, days until it expires, protocol and cipher, and the chain. Warns before an expiry takes the site down. Price: $0.01 USDC. Time limit: 30 s. Example request: ```json { "host": "rengi.dev" } ``` Example response: ```json { "host": "example.org", "port": 443, "valid": true, "error": null, "subject": "example.org", "issuer": "DigiCert Global G3 TLS ECC SHA384 2020 CA1", "validFrom": "2026-01-15T00:00:00.000Z", "validTo": "2027-01-15T23:59:59.000Z", "daysLeft": 61, "altNames": [ "example.org", "www.example.org" ], "matchesHost": true, "selfSigned": false, "protocol": "TLSv1.3", "cipher": "TLS_AES_256_GCM_SHA384", "keyBits": 256, "chain": [ { "subject": "example.org", "issuer": "DigiCert Global G3 TLS ECC SHA384 2020 CA1", "validTo": "2027-01-15T23:59:59.000Z" } ], "findings": [] } ``` ### POST /v1/net-tools/dns DNS records of a domain (A, AAAA, CNAME, MX, TXT, NS, CAA, SOA) and a check of its mail setup: whether it can receive mail and whether SPF and DMARC stop others from sending as it, with the exact records to add. Price: $0.01 USDC. Time limit: 30 s. Example request: ```json { "domain": "rengi.dev" } ``` Example response: ```json { "domain": "example.org", "records": { "A": [ "93.184.215.14" ], "NS": [ "a.iana-servers.net", "b.iana-servers.net" ], "TXT": [ "v=spf1 -all" ] }, "email": { "mx": [], "spf": "v=spf1 -all", "dmarc": "v=DMARC1; p=reject", "dmarcPolicy": "reject", "canReceive": false, "spoofProtected": true }, "findings": [ { "severity": "info", "message": "No MX records: the domain does not receive mail.", "fix": "Add MX records if you want mail on this domain. If not, publish a null MX and a strict SPF and DMARC so nobody can send as you." } ] } ``` ### POST /v1/net-tools/site-info What a website is and what it runs on, from one request: name, description, language, share image, social profiles, contact emails and phones, feeds, and the technologies detected (CMS, framework, analytics, payments, hosting, CDN). Price: $0.02 USDC. Time limit: 45 s. Example request: ```json { "url": "https://rengi.dev" } ``` Example response: ```json { "finalUrl": "https://example.org/", "status": 200, "name": "Example", "title": "Example Domain", "description": null, "language": "en", "image": null, "favicon": "https://example.org/favicon.ico", "socials": { "github": "https://github.com/example" }, "emails": [ "hello@example.org" ], "phones": [], "feeds": [], "technologies": [ { "name": "nginx", "category": "web server" } ], "structuredData": [ "Organization" ], "address": null, "words": 28, "needsJavascript": false } ``` ### POST /v1/net-tools/robots Read a site's robots.txt and say whether a crawler may fetch a URL and by which rule, which AI crawlers (GPTBot, ClaudeBot, PerplexityBot and others) are let in or shut out, and what the sitemap holds. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "url": "https://rengi.dev/forge", "userAgent": "GPTBot" } ``` Example response: ```json { "robotsUrl": "https://example.org/robots.txt", "exists": true, "allowed": false, "matchedRule": "Disallow: /", "crawlDelay": null, "aiCrawlers": { "GPTBot": false, "ClaudeBot": true }, "sitemaps": [ "https://example.org/sitemap.xml" ], "sitemap": { "url": "https://example.org/sitemap.xml", "pages": 42, "nested": 0, "sample": [ "https://example.org/" ], "lastModified": "2026-11-01" }, "findings": [] } ``` ### POST /v1/net-tools/crawl Follow the links of a site from a start page, up to 60 pages: status, title, description, h1, word count and speed of every page, each broken link with the pages that carry it, duplicate and missing titles, and a ready sitemap.xml. Price: $0.05 USDC. Time limit: 150 s. Example request: ```json { "url": "https://rengi.dev", "maxPages": 10 } ``` Example response: ```json { "pages": [ { "url": "https://example.org/", "status": 200, "depth": 0, "title": "Example Domain", "description": null, "h1": "Example Domain", "words": 28, "ms": 84, "bytes": 1256, "links": 1, "noindex": false, "redirectedTo": null } ], "broken": [ { "url": "https://example.org/old", "status": 404, "reason": "HTTP 404", "linkedFrom": [ "https://example.org/" ] } ], "summary": { "crawled": 1, "found": 2, "ok": 1, "redirects": 0, "errors": 1, "averageMs": 84, "stoppedAtLimit": false }, "findings": [ { "severity": "error", "message": "1 broken link.", "fix": "Fix or remove the links listed in broken." } ], "sitemap": "https://rengi.dev/files//sitemap.xml" } ``` ### POST /v1/net-tools/unfurl What a link looks like when shared: title, description, site name, preview image with its real size, favicon, author and date, read from Open Graph, Twitter and plain HTML tags. Says whether it will show as a large card, a small one or bare text. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "url": "https://rengi.dev" } ``` Example response: ```json { "url": "https://example.org/", "finalUrl": "https://example.org/", "status": 200, "title": "Example Domain", "description": "A page used in examples.", "siteName": "Example", "type": "website", "image": { "url": "https://example.org/og.jpg", "width": 1200, "height": 630, "bytes": 48211, "loads": true, "alt": null }, "favicon": "https://example.org/favicon.ico", "author": null, "published": null, "language": "en", "themeColor": "#1d3557", "video": null, "card": "large", "notes": [] } ``` ### POST /v1/net-tools/feed Read an RSS, Atom or JSON feed as clean JSON: title, link, date, author, plain-text summary, image and podcast audio per item. Give a site's home page and the feed is found for you; give a date to get only what is new. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "url": "https://github.com/nodejs/node/releases.atom", "limit": 5 } ``` Example response: ```json { "feedUrl": "https://example.org/feed.xml", "format": "atom", "title": "Release notes", "description": null, "link": "https://example.org/releases", "updated": "2026-11-01T09:00:00.000Z", "total": 12, "items": [ { "id": "tag:example.org,2026:v2.4", "title": "v2.4", "link": "https://example.org/releases/v2.4", "published": "2026-11-01T09:00:00.000Z", "author": "Mara Lind", "summary": "Faster builds and a new exporter.", "image": null, "categories": [], "audio": null } ] } ``` ## Image tools (`image-tools`) Everyday image work for sites and apps: convert and compress to WebP/AVIF/JPEG/PNG, responsive srcset sets with ready markup, colour palettes, pixel diffs for visual regression, SVG to PNG, QR codes, blur placeholders, and an inspection that says what to fix before shipping an image. Schemas: ### POST /v1/image-tools/convert Convert an image to WebP, AVIF, JPEG or PNG, resize it and compress it. Strips EXIF by default, applies EXIF rotation, keeps animation for GIF/WebP sources. Returns the file with before/after sizes. Price: $0.01 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/photo.jpg", "format": "webp", "width": 800, "quality": 78 } ``` Example response: ```json { "file": "https://rengi.dev/files//image.webp", "format": "webp", "width": 800, "height": 533, "bytes": 41234, "originalBytes": 212345, "savedPercent": 80.6, "animated": false } ``` ### POST /v1/image-tools/responsive One image in, a responsive set out: every width in AVIF, WebP and a fallback, a ZIP of the files and a ready element with srcset, sizes, width and height. Never upscales. Price: $0.02 USDC. Time limit: 120 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/photo.jpg", "widths": [ 480, 800, 1200 ], "formats": [ "avif", "webp", "jpeg" ], "alt": "Harbour at dusk" } ``` Example response: ```json { "files": [ { "name": "image-480.avif", "url": "https://rengi.dev/files//image-480.avif", "format": "avif", "width": 480, "height": 320, "bytes": 9120 } ], "html": "\n \n \"Harbour\n", "zip": "https://rengi.dev/files//image-set.zip", "originalBytes": 212345, "smallestBytes": 9120, "largestBytes": 98211 } ``` ### POST /v1/image-tools/palette Pull the main colours out of an image: hex and RGB with each colour's share, the dominant and average colour, whether the image is dark, a swatch PNG, a .gpl palette file and CSS variables. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/photo.jpg", "colors": 5 } ``` Example response: ```json { "colors": [ { "hex": "#1d3557", "rgb": [ 29, 53, 87 ], "share": 0.41 } ], "dominant": "#1d3557", "average": "#56677f", "isDark": true, "swatch": "https://rengi.dev/files//palette.png", "gpl": "https://rengi.dev/files//palette.gpl", "css": ":root {\n --color-1: #1d3557;\n}" } ``` ### POST /v1/image-tools/diff Pixel diff of two images for visual regression: share of changed pixels, a same/different verdict, boxes around what changed, a diff overlay and a side-by-side sheet. Tolerant of antialiasing noise. Price: $0.01 USDC. Time limit: 60 s. Example request: ```json { "aUrl": "https://rengi.dev/samples/photo.jpg", "bUrl": "https://rengi.dev/samples/photo-edited.jpg" } ``` Example response: ```json { "same": false, "changedPixels": 5120, "changedPercent": 1.42, "sizeMismatch": false, "a": { "width": 600, "height": 400 }, "b": { "width": 600, "height": 400 }, "regions": [ { "x": 372, "y": 96, "width": 120, "height": 84, "pixels": 5120 } ], "diff": "https://rengi.dev/files//diff.png", "sideBySide": "https://rengi.dev/files//side-by-side.png" } ``` ### POST /v1/image-tools/svg-to-png Rasterize an SVG to crisp PNG or WebP at any set of sizes, with optional background and padding. For favicons, app icons, social images and engines that do not read SVG. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "svgUrl": "https://rengi.dev/samples/logo.svg", "sizes": [ 64, 256, 1024 ] } ``` Example response: ```json { "files": [ { "url": "https://rengi.dev/files//image-64.png", "width": 64, "height": 64, "bytes": 1830 } ], "viewBox": { "width": 120, "height": 120 } } ``` ### POST /v1/image-tools/qr QR code as PNG and SVG from a URL or any text, with custom colours, quiet zone and error correction. Warns when the colours are too close for scanners. Price: $0.01 USDC. Time limit: 20 s. Example request: ```json { "text": "https://forge.rengi.dev", "size": 512, "errorCorrection": "M" } ``` Example response: ```json { "png": "https://rengi.dev/files//qr.png", "svg": "https://rengi.dev/files//qr.svg", "modules": 25, "version": 2, "contrast": 21, "warnings": [] } ``` ### POST /v1/image-tools/qr-read Decode the QR code in a photo or screenshot: its text, what kind of code it is (link, Wi-Fi, contact, plain text) and where it sits in the image. Handles small, dark-background and low-contrast codes. Price: $0.01 USDC. Time limit: 45 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/qr-sample.png" } ``` Example response: ```json { "found": true, "text": "https://forge.rengi.dev", "kind": "url", "version": 2, "corners": [ { "x": 40, "y": 40 }, { "x": 290, "y": 40 }, { "x": 290, "y": 290 }, { "x": 40, "y": 290 } ], "notes": [] } ``` ### POST /v1/image-tools/inspect What an image really is: format, size, alpha actually used, animation, colour space, EXIF/ICC weight, the box around its content, how small it would be as WebP/AVIF, and plain notes on what to fix before shipping it. Price: $0.01 USDC. Time limit: 60 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/photo.jpg" } ``` Example response: ```json { "format": "jpeg", "width": 600, "height": 400, "bytes": 48211, "megapixels": 0.24, "aspectRatio": "3:2", "channels": 3, "hasAlpha": false, "usesAlpha": false, "animated": false, "frames": 1, "colorSpace": "srgb", "bitDepth": "uchar", "dpi": 72, "orientation": 1, "metadata": { "exif": false, "icc": false, "xmp": false, "bytes": 0 }, "content": { "x": 0, "y": 0, "width": 600, "height": 400 }, "estimates": { "webpBytes": 30112, "avifBytes": 21870 }, "findings": [ "WebP at quality 80 would be about 38% smaller." ] } ``` ### POST /v1/image-tools/placeholder Low-quality image placeholder: a tiny blurred WebP data URI of a few hundred bytes, a BlurHash string, the average colour and a ready CSS rule, so pages show something while the real image loads. Price: $0.01 USDC. Time limit: 30 s. Example request: ```json { "imageUrl": "https://rengi.dev/samples/photo.jpg", "size": 24 } ``` Example response: ```json { "dataUri": "data:image/webp;base64,UklGRo4AAABXRUJQ...", "bytes": 214, "blurhash": "LEHV6nWB2yk8pyo0adR*.7kCMdnj", "color": "#56677f", "width": 600, "height": 400, "aspectRatio": 1.5, "css": "background: #56677f url(data:image/webp;base64,UklGRo4AAABXRUJQ...) center / cover no-repeat; aspect-ratio: 600 / 400;" } ``` ## Media tools (`media-tools`) Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers. Schemas: ### POST /v1/media-tools/probe What a media file really is: container, codecs, size, frame rate, bitrate, rotation, whether it can start playing before it finishes downloading, whether browsers will play it, and plain notes on what to fix. Price: $0.01 USDC. Time limit: 60 s. Example request: ```json { "fileUrl": "https://rengi.dev/samples/clip.mp4" } ``` Example response: ```json { "container": "mp4", "bytes": 81234, "duration": 4, "bitrateKbps": 162, "video": { "codec": "h264", "profile": "High", "width": 320, "height": 240, "displayWidth": 320, "displayHeight": 240, "fps": 25, "pixelFormat": "yuv420p", "bitrateKbps": 92, "rotation": 0, "frames": 100, "alpha": false }, "audio": { "codec": "aac", "sampleRate": 44100, "channels": 1, "bitrateKbps": 64 }, "faststart": true, "playsInBrowsers": "yes", "findings": [] } ``` ### POST /v1/media-tools/video-to-gif Video to a good-looking GIF or animated WebP: a palette built from the clip itself, your choice of part, frame rate and width, and an optional size cap the tool hits by itself (for Discord, GitHub READMEs, Slack). Price: $0.03 USDC. Time limit: 180 s. Example request: ```json { "videoUrl": "https://rengi.dev/samples/clip.mp4", "start": 0.5, "duration": 2, "fps": 10, "width": 240 } ``` Example response: ```json { "file": "https://rengi.dev/files//clip.gif", "format": "gif", "width": 240, "height": 180, "fps": 10, "frames": 20, "duration": 2, "bytes": 61234, "originalBytes": 81234, "notes": [] } ``` ### POST /v1/media-tools/video-compress Make a video web-ready: H.264 MP4 that plays everywhere (or VP9 WebM), scaled, faststart, by quality level or to a target file size. Also turns a GIF into a video a tenth of the size. Returns the file, a poster frame and a