> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nsfw-api.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Idempotency

> Protect one generation operation from accidental retries.

The optional `Idempotency-Key` header protects a generation operation from accidental duplicate requests, including retries after a client timeout.

```http theme={null}
Idempotency-Key: your-operation-id
```

| Request                           | Result                               |
| --------------------------------- | ------------------------------------ |
| Same key and same normalized body | Returns the original operation       |
| Same key and different body       | `409 idempotency_conflict`           |
| No idempotency key                | Always creates a new independent job |

Use a unique, stable value for one logical operation. Do not reuse a key for unrelated generations.
