remagicaDocs home
API referenceSprites

Estimate a master request

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

Needs a key withsprites:read

What a master request would set aside now, in credits: every candidate drawn three times (the first try and two silent retries), each with 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.

Path Parameters

characterId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
aspectRatio?string

The shape it's drawn at, 1:1 by default. The figure is then fitted to the game's square canvas, so this only changes how the model frames it.

Value in"1:1""3:4""4:3""9:16""16:9"
greenScreen?boolean

true: drawn on a flat key colour (magenta, or green for a pink or purple character) and keyed out for free. false: drawn with the model's own transparent background where it has one; a model without one stays on the key colour. Left out: what the model does best.

quality?string

Rendering quality, for a model whose qualities list it (GPT Image); left out: its defaultQuality. Ignored by a model with none.

Value in"auto""low""medium""high""xhigh""max"
resolution?string

1K by default, or the model's lowest when it has no 1K.

Value in"1K""2K""4K"
seed?integer

A fixed seed, for a model with seed (Nano Banana): the first candidate draws with it, each next one with one more, so the same prompt and seed draw the same images again. Left out: a random one. Ignored by a model that takes none.

Range0 <= value <= 2147483647
count?integer

Candidates to draw, 1 to 4; four by default.

Range1 <= value <= 4
model?string

A base image model (google/nano-banana-pro, google/nano-banana-2.1, bytedance/seedream-5-lite, openai/gpt-image-2, openai/gpt-image-2.5-sunburst, openai/gpt-image-2.5-flare) or its capability model id. Left out: the game's.

Length1 <= length <= 200

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/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/masters/estimate' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "credits": 12,  "model": "google/nano-banana-pro",  "priceVersion": 3}