Documentation Index
Fetch the complete documentation index at: https://mayatech.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Why idempotency keys?
Network failures and timeouts can leave you uncertain whether aPOST succeeded. If you retry a generation request and the original call had actually completed, you’d be charged twice. Idempotency keys let you safely retry: the same key + same body returns the original response, never a second one.
How to use
Pass anIdempotency-Key header on POST /v1/images and POST /v1/videos. Use any opaque value, 1 to 256 characters. UUID v4 is recommended.
Rules
| Scenario | Behavior |
|---|---|
| Same key, same body | Replay cached response with Aurous-Idempotent-Replayed: true |
| Same key, different body | 409 idempotency_key_in_use |
| New key | Process normally, cache for 24 hours |
| Header omitted | Process normally; never replays |
Caveats
- Keys are scoped per team — collisions across teams are impossible.
- Keys expire after 24 hours. After that, the same key starts fresh.
- Body comparison uses canonical JSON (lexicographic key order).
{"a":1,"b":2}and{"b":2,"a":1}are treated as identical. - The header is optional; absent header behaves like a fresh non-idempotent request every time.