---
title: "Restyle a sprite"
method: POST
path: "/api/restyles"
tags: ["Restyles"]
---

# Restyle a sprite

`POST /api/restyles`

## Request

- Base URL: `https://www.sprite-ai.art`
- URL: `https://www.sprite-ai.art/api/restyles`
- Auth: HTTP bearer

Change a sprite you own and keep the character: a new look, a new pose, or a swapped item. Asynchronous: returns an id, then poll GET /api/restyles/{id}. 2 tokens on the normal tier, 9 on pro.

## Request body

- object
  - `source_generation_id` string, uuid, required
  - `preset` 'fire' | 'ice' | 'gold' | 'zombie' | 'holy' | 'cursed' | 'poison' | 'royal' | 'shadow' | 'steampunk'
  - `custom_prompt` string
  - `mode` 'restyle' | 'pose' | 'item' | 'custom'
  - `tier` 'normal' | 'pro'
  - `palette_extras` integer
  - `framing_margin` integer
  - `framing_anchor` 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right'
  - `public` boolean

## Response `202`

The job was accepted.

- JobAccepted
  - `id` string, uuid, required
  - `status` 'processing', required

## Other responses

- `400`: The request failed validation.
- `401`: Missing or invalid API key.
- `402`: Not enough tokens.
- `403`: The API key is revoked or expired.
- `404`: Not found, or not yours.
- `429`: Rate limited. Retry after the Retry-After header.
- `500`: Generation failed. Tokens are refunded.

---

[API](https://skmtc.dev/sprite-ai/apis/sprite-ai-api.md) · [All operations](https://skmtc.dev/sprite-ai/apis/sprite-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sprite-ai/apis/sprite-ai-api/revisions/2c1231b72433?raw)
