Delete a generation
Deletes one of your generations: its settings, the finished image, and the uploads no other generation uses. A queued or running one is cancelled first. The credit ledger keeps amounts and references only.
apiKeyAuthorizationBearer <tf_...>Your API key from API keys, sent as Authorization: Bearer $TENSORFACTORY_API_KEY. Keep it on your server.
id*stringThe generation's id.
uuidDeleted. No body.
curl -X DELETE 'https://tensorfactory.ai/v1/generations/0b8c6f0e-5d1a-4a3e-9c61-2f7d8e4b9a10'Get a generation GET
One of your generations. With `wait`, the answer comes as soon as the status changes (`queued` to `running`, or the run is over), or after that many seconds with no change. Download `result.image_url` when the run is done: it is deleted after the first download, or 10 minutes after the run if nobody downloads it. After that the generation keeps its details, with `result.expired` true and no link.
Cancel a generation POST
Stops a queued or running generation. It ends `cancelled` and costs nothing. A generation that is already over is answered as it is.