---
title: "Rotate a sprite to 8 directions"
method: POST
path: "/api/rotations"
tags: ["Edits"]
---

# Rotate a sprite to 8 directions

`POST /api/rotations`

## Request

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

Turn one still sprite you own into a strip of 8 facings (S, SE, E, NE, N, NW, W, SW) with the same character and palette. Synchronous, about a minute. Costs 12 tokens.

## Request body

- object
  - `source_generation_id` string, uuid, required
  - `public` boolean

## Response `201`

The 8-direction strip.

- object

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