remagicaDocs home
API referenceLibrary

Generate a character sheet

POST
/library/items/{itemId}/sheets

Needs a key withlibrary:write

AI Character: generates a turnaround sheet for an element (four views, full body over portrait) from its reference images and its description, as one image. It's a normal generation and costs its credits.

realistic and stylized are drawn with Nano Banana Pro, which keeps the reference face best across views; Seedance refuses those real-looking faces. seedance is drawn with Seedream 5.0 Pro on ModelArk, whose faces Seedance accepts. When the generation completes, reading the item adds the sheet as a new version (the sheet history).

Requires scope library: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

itemId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
style?string

The look: realistic for real people and stylized for illustrated and anime characters, both drawn with Nano Banana Pro (Seedance refuses those faces); seedance for real people drawn with Seedream 5.0 Pro on ModelArk, whose faces Seedance accepts.

Default"realistic"
Value in"realistic""stylized""seedance"

Response Body

Accepted: the sheet generation is queued.

application/json
  1. response

The sheet generation; when it completes, reading the item adds it as a new version.

generation*

One generation request and its results.

item*

A Library item.

Example Request
curl -X POST 'https://api.remagica.com/api/v1/library/items/3f0c7a52-2f47-4a51-9b3e-9d7c0a1e6b21/sheets' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "generation": {    "completedAt": "2026-10-21T12:00:00.000Z",    "createdAt": "2026-09-30T12:00:00.000Z",    "createdByUserId": "f3656abb-5b3d-4f60-8e2a-1d9c6b4f7e05",    "credits": 12,    "creditsRefunded": true,    "error": null,    "id": "7a1c9e42-5b3d-4f60-8e2a-1d9c6b4f7e05",    "input": {      "prompt": "A lighthouse on a cliff at dusk, cinematic"    },    "kind": "image",    "metadata": {      "seed": 42    },    "model": "google/nano-banana-pro",    "organizationId": "9a863583-5b3d-4f60-8e2a-1d9c6b4f7e05",    "outputs": [      {        "contentType": "image/png",        "durationSeconds": 5,        "exportOf": {          "format": "string",          "index": 1        },        "height": 1280,        "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "kind": "image",        "previews": [          {            "height": 1280,            "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",            "width": 1024          }        ],        "previewUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "role": "output",        "sizeBytes": 2457600,        "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "width": 1024      }    ],    "publishedAt": "2026-10-21T12:00:00.000Z",    "references": [      {        "fileIds": [          "string"        ],        "itemId": "59c47fe8-5b3d-4f60-8e2a-1d9c6b4f7e05",        "label": "string",        "version": 3,        "versionId": "772c657e-5b3d-4f60-8e2a-1d9c6b4f7e05"      }    ],    "status": "queued",    "stopRequested": true,    "updatedAt": "2026-10-21T12:00:00.000Z",    "visibility": "private"  },  "item": {    "createdAt": "2026-09-30T12:00:00.000Z",    "deleted": true,    "deletedAt": null,    "description": "Product shots for the autumn campaign.",    "faces": "trusted",    "favorite": true,    "fileCount": 1,    "folderId": "899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05",    "generationId": "241081c2-5b3d-4f60-8e2a-1d9c6b4f7e05",    "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",    "kind": "character",    "labels": [      {        "color": "gray",        "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",        "name": "Autumn campaign"      }    ],    "latestVersion": 3,    "mention": "string",    "model": "google/nano-banana-pro",    "name": "Autumn campaign",    "origin": "upload",    "ownerUserId": "ba132481-5b3d-4f60-8e2a-1d9c6b4f7e05",    "pendingSheets": 1,    "pinnedAt": "2026-10-21T12:00:00.000Z",    "reviewStatus": "todo",    "scope": "private",    "slug": "string",    "sprite": {      "characterId": "eb1fe45b-5b3d-4f60-8e2a-1d9c6b4f7e05",      "masterVersionId": "371019b7-5b3d-4f60-8e2a-1d9c6b4f7e05",      "sizeClass": "small"    },    "thumbnail": {      "contentType": "image/png",      "durationSeconds": 5,      "height": 1280,      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",      "kind": "image",      "position": 1,      "role": "sheet",      "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",      "width": 1024    },    "type": "asset",    "updatedAt": "2026-09-30T12:00:00.000Z",    "workflowId": "cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05"  }}