Fix drifted frames
Needs a key withsprites:write
Redraws the character's frames scoring below the line (unlocked ones, worst first, at most 32) to match the master: up to triesPerFrame image edits each, cleaned up and scored again, one that clears the line replacing the frame (its old file kept for revert). One credit hold of at most creditCap covers the run, and it stops before a call would spend past the cap. Follow it on the studio's live feed (topic drift) or with GET /sprites/drift/{runId}.
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.
characterId*string1 <= length <= 128application/json- body
outfitId?stringThat outfit's takes; the base outfit's otherwise.
1 <= length <= 128takeId?stringThat take alone, its frames scored again first, whatever its outfit or whether it stands.
1 <= length <= 128threshold?numberFrames scoring below it are flagged, from 0.5 to 0.99. Default 0.9.
0.5 <= value <= 0.99creditCap*integerThe most the run may spend, in credits.
1 <= value <= 100000idempotencyKey?stringSending the same key again returns the same run.
1 <= length <= 255triesPerFrame*integerRedraws per frame before it's left for a touch-up.
1 <= value <= 3Accepted: the run is queued.
application/json- response
credits*integerWhat the run set aside: every try at its worst, at most the cap.
frames*integerFrames queued, worst first.
model*stringpriceVersion*integer|nullrunId*stringThe run. Follow it on the studio's live feed (topic drift) or with GET /sprites/drift/{runId}.
curl -X POST 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/drift/fix' \ -H 'Content-Type: application/json' \ -d '{ "creditCap": 20, "triesPerFrame": 2}'{ "credits": 12, "frames": 1, "model": "google/nano-banana-pro", "priceVersion": 3, "runId": "599e5591-5b3d-4f60-8e2a-1d9c6b4f7e05"}