Atmee.aiDocs
APIAPI referenceGeneration

Delete a generation

DELETE
/v1/generation/{requestId}

Deletes a generation's outputs: their files go at once, their links stop working, and GET /v1/generation shows the generation as deleted (its inputs and poster stay, so it can be made again). Any member of the account may delete any of its generations; an API key scoped to an avatar only those of its avatar. Deleting again answers 204 too. A generation still rendering cannot be deleted yet (409 generation_rendering). Requires generation:write or avatars:write. Nothing is refunded.

A request id is unique per operation. If the same id was used for two (say a clip and a voice), pass operation (the list's operation), or the delete answers 409 generation_ambiguous and deletes nothing.

Authorization

headerX-Api-Key<token>

Your secret API key (sk_atmee_...; older keys start sk_live_), sent as X-Api-Key. Keep it on your server and never send it to a browser.

Path Parameters

requestId*string

The Idempotency-Key the generation's POST was sent with (requestId in GET /v1/generation).

Formatuuid

Query Parameters

operation?string

The generation's operation, as GET /v1/generation lists it. Needed only when the request id was used for more than one operation.

Value in"clip""portrait_generation""portrait_enhancement""voice_design"

Response Body

The outputs are deleted.

Example Request
curl -X DELETE 'https://api.atmanity.us/v1/generation/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty