remagicaDocs home
API referenceSprites

Draw turnaround views

POST
/sprites/characters/{characterId}/masters/{versionId}/views

Needs a key withsprites:write

Draws a master version's turnaround views for the game's camera (top-down 4-way: right and back; 8-way: also front-right and back-right; isometric: back-right), each at the master's height and baseline, into a new version. A side-scroller has none (left is mirrored). Follow it with GET /sprites/events (sprites.watch), then read the rows.

Requires scope sprites:write.

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
versionId*string

The master version the views are drawn from.

Length1 <= length <= 128

Header Parameters

Idempotency-Key?string

Makes the request safe to retry: send a unique value (a UUID, say). The same request sent again with the same key within 24 hours gets the first one's response back, and nothing runs or is charged twice. Reusing a key for a different request, or while the first is still running, is 409 CONFLICT. A request that fails frees its key.

Length1 <= length <= 255

Request Body

application/json
  1. body
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

Accepted: the request is held and started.

application/json
  1. response
credits*integer

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

model*string

The capability model it runs.

priceVersion*|

The price revision it's priced at.

requestId*string

The request: the live feed (GET /sprites/events, topic master) names it and each of its candidates (<requestId>-<n>).

Length1 <= length <= 128
views*array<>

The views it draws, in camera order.

Example Request
curl -X POST 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/masters/772c657e-5b3d-4f60-8e2a-1d9c6b4f7e05/views' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "credits": 12,  "model": "google/nano-banana-pro",  "priceVersion": 3,  "requestId": "2163759e-5b3d-4f60-8e2a-1d9c6b4f7e05",  "views": [    "E"  ]}