remagicaDocs home
API referenceSprites

Estimate an outfit

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

Needs a key withsprites:read

What drawing an outfit would set aside now, in credits: one edit of the master and a 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
model?string

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

Length1 <= length <= 200

Response Body

What drawing the outfit 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/outfits/estimate' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "credits": 12,  "model": "google/nano-banana-pro",  "priceVersion": 3}