---
title: "Regenerate portrait and token for an NPC (costs 1 credit)"
method: POST
path: "/v1/ttrpg/{id}/npcs/{index}/regenerate-art"
tags: ["AI Tabletop"]
---

# Regenerate portrait and token for an NPC (costs 1 credit)

`POST /v1/ttrpg/{id}/npcs/{index}/regenerate-art`

## Request

- Base URL: `https://api.sprixen.com`
- URL: `https://api.sprixen.com/v1/ttrpg/{id}/npcs/{index}/regenerate-art`
- Auth: `bearer` (a scheme the document does not define)

## Path parameters

- `id` string, required
- `index` number, required

## Response `200`

Updated adventure with new NPC art

## Other responses

- `400`: Adventure not completed yet
- `402`: Insufficient credits

---

[API](https://skmtc.dev/sprixen/apis/sprixen-api.md) · [All operations](https://skmtc.dev/sprixen/apis/sprixen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sprixen/apis/sprixen-api/revisions/6c0c57f6da58?raw)
