API referenceSprites
Estimate a frame edit
POST
Needs a key withsprites:read
What a redraw (count 1) or count in-betweens of a take would set aside now, in credits: each frame an image edit and, at worst, background removal. Nothing is started or charged.
Requires scope sprites:read.
apiKeyheader
x-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.
application/json- body
count?integerFrames it draws: 1 for a redraw (the default), up to 3 in-betweens.
Range
1 <= value <= 3model?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.
Length
1 <= length <= 200takeId*stringLength
1 <= length <= 128What the request would set aside.
application/json- response
credits*integerWhat the request sets aside, in credits: its worst case.
model*stringpriceVersion*|The price revision it's priced at.
curl -X POST 'https://api.remagica.com/api/v1/sprites/frames/estimate' \ -H 'Content-Type: application/json' \ -d '{ "takeId": "6b7c8d9e-0f1a-4b2c-9d3e-4f5a6b7c8d9e"}'Example Response
{ "credits": 12, "model": "google/nano-banana-pro", "priceVersion": 3}