---
title: "Cancel a restyle"
method: POST
path: "/api/restyles/{id}/cancel"
tags: ["Restyles"]
---

# Cancel a restyle

`POST /api/restyles/{id}/cancel`

## Request

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

Cancel a running restyle job and refund its tokens.

## Path parameters

- `id` string, uuid, required

## Response `200`

The job was cancelled.

- object

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key is revoked or expired.
- `404`: Not found, or not yours.
- `429`: Rate limited. Retry after the Retry-After header.

---

[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)
