remagicaDocs home
API referenceSprites

Estimate takes

POST
/sprites/characters/{characterId}/takes/estimate

Needs a key withsprites:read

What making takes would usually cost now, in credits (credits), and what they would set aside (holdCredits). A sheet take sets aside its sheet and a background removal; a clip take its clip by the second and a background removal per frame, used only when the clip's ground won't key, and what isn't used goes back. Send items, or leave them out to price every missing take (as generateMissing would make them). 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.

Path Parameters

characterId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
model?string

An image model for sheet takes (google/nano-banana-pro, openai/gpt-image-2, google/nano-banana-2.1) or a video model for clip takes (kling/v4, bytedance/seedance-2.5, xai/grok-imagine-video-1.5), or its capability model id (sprite_take/…, sprite_clip_take/…). Takes of the other kind, and all when left out, use the game's (else Nano Banana Pro and the plan's video model).

Length1 <= length <= 200
outfitId?|

Left out or null: the base outfit.

source?string

Make every missing take this way; left out: clips, unless model is an image model.

Value in"sheet""clip"
items?array<>

The takes to price; left out: every missing one.

Items1 <= items <= 64

Response Body

What the takes would cost and set aside.

application/json
  1. response
credits*integer

What the takes usually cost: a clip's frames key for free.

model*string
priceVersion*|

The price revision it's priced at.

count*integer

How many takes it draws.

holdCredits*integer

What starting them sets aside: every take's worst case. What isn't used goes back.

Example Request
curl -X POST 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/takes/estimate' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "credits": 12,  "model": "google/nano-banana-pro",  "priceVersion": 3,  "count": 1,  "holdCredits": 12}