remagicaDocs home
API referenceSprites

Estimate a frame edit

POST
/sprites/frames/estimate

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.

Authorization

apiKey
headerx-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.

Request Body

application/json
  1. body
count?integer

Frames it draws: 1 for a redraw (the default), up to 3 in-betweens.

Range1 <= value <= 3
model?string

A 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.

Length1 <= length <= 200
takeId*string
Length1 <= length <= 128

Response Body

What the request would set aside.

application/json
  1. response
credits*integer

What the request sets aside, in credits: its worst case.

model*string
priceVersion*|

The price revision it's priced at.

Example Request
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}