Redraw a frame
Needs a key withsprites:write
Redraws one frame to match the master, with the frames either side as references and your prompt's change; with region, only that box is replaced (feathered into the frame). The old file is kept for revert. Holds credits for the worst case and settles at what ran; the take is scored again and an approved take goes back to review. Locked frames and takes still running are refused. Follow it on the live feed (GET /sprites/events, topic take, by take id), then read the take.
Requires scope sprites:write.
apiKeyx-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
frameId*string1 <= length <= 128Idempotency-Key?stringMakes the request safe to retry: send a unique value (a UUID, say). The same request sent again with the same key within 24 hours gets the first one's response back, and nothing runs or is charged twice. Reusing a key for a different request, or while the first is still running, is 409 CONFLICT. A request that fails frees its key.
1 <= length <= 255application/json- body
model?stringA base image model (google/nano-banana-pro, openai/gpt-image-2, google/nano-banana-2.1) or its sprite_frame_fix/… id. Left out: the game's.
1 <= length <= 200prompt?stringWhat to change, in your words.
length <= 2000region?Only this box is redrawn, in frame pixels from the top left; the rest of the frame stays as it is.
Accepted: the redraw is held and started.
application/json- response
A frame edit, held and started.
credits*integerWhat the request sets aside: every frame at its worst.
model*stringThe capability model it runs.
priceVersion*integer|nullrequestId*stringThe request: its credit hold's subject.
1 <= length <= 128takeId*stringThe take it changes: follow it on the live feed (GET /sprites/events, topic take).
1 <= length <= 128curl -X POST 'https://api.remagica.com/api/v1/sprites/frames/f68c2bb4-5b3d-4f60-8e2a-1d9c6b4f7e05/fix' \ -H 'Content-Type: application/json' \ -d '{}'{ "credits": 12, "model": "google/nano-banana-pro", "priceVersion": 3, "requestId": "2163759e-5b3d-4f60-8e2a-1d9c6b4f7e05", "takeId": "2a6faac1-5b3d-4f60-8e2a-1d9c6b4f7e05"}