{"slug":"agents-withzero-xyz-api-v1-pixelart-canvas-3cd292","title":"Create a new pixel art canvas","host":"agents.withzero.xyz","method":"POST","resource":"https://agents.withzero.xyz/api/v1/pixelart/canvas","category":"other","description":"Create a new pixel art canvas. Returns editing, manifest, full-spec, guide, and interactive-view URLs. Optionally pre-load base64 RGBA pixels. Full agent guide: https://pixelart.withzero.xyz/llms.txt","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":354,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"loop":true},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"fps":{"description":"Playback rate for animation consumers.","maximum":60,"minimum":1,"type":"integer"},"game":{"additionalProperties":false,"description":"Optional engine metadata: pivots, facing, root motion, clips, sockets, boxes, and events.","properties":{"clips":{"description":"Named animation ranges within this canvas.","items":{"additionalProperties":false,"properties":{"fps":{"maximum":60,"minimum":1,"type":"integer"},"fromFrame":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"loop":{"type":"boolean"},"name":{"maxLength":64,"minLength":1,"type":"string"},"toFrame":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["name","fromFrame","toFrame"],"type":"object"},"maxItems":64,"type":"array"},"defaultPivot":{"additionalProperties":false,"description":"Default render pivot shared by frames without an override.","properties":{"x":{"description":"Horizontal pixel coordinate from the left edge of the frame.","type":"number"},"y":{"description":"Vertical pixel coordinate from the top edge of the frame.","type":"number"}},"required":["x","y"],"type":"object"},"facing":{"description":"Native facing direction of the authored art.","enum":["left","right","none"],"type":"string"},"frames":{"additionalProperties":{"additionalProperties":false,"properties":{"boxes":{"description":"Gameplay geometry associated with this frame.","items":{"additionalProperties":false,"properties":{"height":{"exclusiveMinimum":0,"type":"number"},"kind":{"enum":["hit","hurt","collision","interaction"],"type":"string"},"name":{"maxLength":64,"minLength":1,"type":"string"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["kind","x","y","width","height"],"type":"object"},"maxItems":64,"type":"array"},"durationMs":{"description":"Per-frame duration override. Omit to use the clip or canvas FPS.","maximum":60000,"minimum":1,"type":"integer"},"events":{"description":"Events emitted when playback enters this frame.","items":{"additionalProperties":false,"properties":{"name":{"maxLength":64,"minLength":1,"type":"string"},"payload":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"propertyNames":{"type":"string"},"type":"object"}},"required":["name"],"type":"object"},"maxItems":64,"type":"array"},"pivot":{"additionalProperties":false,"description":"Per-frame pivot override. Omit to use defaultPivot.","properties":{"x":{"description":"Horizontal pixel coordinate from the left edge of the frame.","type":"number"},"y":{"description":"Vertical pixel coordinate from the top edge of the frame.","type":"number"}},"required":["x","y"],"type":"object"},"sockets":{"additionalProperties":{"additionalProperties":false,"properties":{"x":{"description":"Horizontal pixel coordinate from the left edge of the frame.","type":"number"},"y":{"description":"Vertical pixel coordinate from the top edge of the frame.","type":"number"}},"required":["x","y"],"type":"object"},"description":"Named attachment points such as feet, muzzle, hand, or weapon.","propertyNames":{"maxLength":64,"minLength":1,"type":"string"},"type":"object"}},"type":"object"},"description":"Metadata keyed by canonical zero-based frame index.","propertyNames":{"pattern":"^(0|[1-9]\\d*)$","type":"string"},"type":"object"},"rootMotion":{"anyOf":[{"const":"none","type":"string"},{"additionalProperties":false,"properties":{"socket":{"description":"Socket whose movement represents root motion.","maxLength":64,"minLength":1,"type":"string"}},"type":"object"}],"description":"Whether movement is in-place or derived from a named socket."}},"type":"object"},"height":{"default":64,"description":"Canvas height in pixels (8–256). Default: 64.","maximum":256,"minimum":8,"type":"integer"},"initData":{"description":"Base64-encoded RGBA pixel data to initialise the canvas. Must be exactly width × height × 4 bytes after decoding. Omit to start with a transparent (empty) canvas.","maxLength":349528,"minLength":1,"type":"string"},"loop":{"default":true,"description":"Whether playback loops (false = play once).","type":"boolean"},"name":{"description":"Human-readable label for this canvas.","maxLength":100,"type":"string"},"width":{"default":64,"description":"Canvas width in pixels (8–256). Default: 64.","maximum":256,"minimum":8,"type":"integer"}},"required":["loop"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":354,"error":null}],"description_full":"Create a new pixel art canvas. Returns editing, manifest, full-spec, guide, and interactive-view URLs. Optionally pre-load base64 RGBA pixels. Full agent guide: https://pixelart.withzero.xyz/llms.txt","last_updated":"2026-09-14T19:57:10.154Z","schemes":["exact"]}