{"openapi":"3.1.0","info":{"title":"Animation Exposure Sheet","version":"1.0.0","description":"Build compact frame ranges for animation layers from cel changes, including initial gaps and explicit clears.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/animation-exposure-sheet/v1/check":{"post":{"operationId":"animation_exposure_sheet","summary":"Build compact frame ranges for animation layers from cel changes, including initial gaps and explicit clears.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"frame_count":{"type":"integer","minimum":1,"maximum":100000},"layers":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"changes":{"maxItems":120,"type":"array","items":{"type":"object","properties":{"frame":{"type":"integer","minimum":1,"maximum":100000},"cel":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]}},"required":["frame","cel"],"additionalProperties":false}}},"required":["id","changes"],"additionalProperties":false}}},"required":["frame_count","layers"],"additionalProperties":false},"example":{"frame_count":8,"layers":[{"id":"ink","changes":[{"frame":3,"cel":"a"},{"frame":5,"cel":"a"},{"frame":7,"cel":null}]},{"id":"bg","changes":[{"frame":1,"cel":"room"}]}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"layers":[{"id":"ink","exposures":[{"first_frame":1,"last_frame":2,"cel":null},{"first_frame":3,"last_frame":6,"cel":"a"},{"first_frame":7,"last_frame":8,"cel":null}]},{"id":"bg","exposures":[{"first_frame":1,"last_frame":8,"cel":"room"}]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}