List generations
Your generations, newest first. For the next page, send the last page's next_cursor as cursor.
it is null on the last page.
apiKeyAuthorizationBearer <tf_...>Your API key from API keys, sent as Authorization: Bearer $TENSORFACTORY_API_KEY. Keep it on your server.
limit?integerHow many to return.
1 <= value <= 10020cursor?stringThe last page's next_cursor.
One page of generations.
application/json- response
items*array<>next_cursor*|Send as cursor for the next page, null on the last page.
curl -X GET 'https://tensorfactory.ai/v1/generations'{ "items": [ { "id": "0b8c6f0e-5d1a-4a3e-9c61-2f7d8e4b9a10", "status": "running", "model": "qwen-image/text-to-image", "prompt": "A brass microscope on a graph-paper notebook, warm window light", "aspect_ratio": "1:1", "seed": 402117736, "steps": 4, "mode": "fast", "image": null, "image_2": null, "image_3": null, "transparent_background": false, "price_usd": 0.003, "usage": null, "result": null, "error": null, "created_at": "2026-11-07T10:00:00.000Z", "started_at": "2026-11-07T10:00:01.200Z", "finished_at": null } ], "next_cursor": "WyIyMDI2LTExLTA3VDEwOjAwOjAwLjAwMFoiLCIwYjhjNmYwZSJd"}Create a generation POST
Starts an image and answers `202` with the generation, usually `status: "queued"`. Then get it with `GET /v1/generations/{id}?wait=10` until it is over. Send a new `Idempotency-Key` for each new image and the same key when you retry the same request: a retry answers with the generation the first request made. Fields not listed here are refused with `400`. A prompt that names a real, identifiable person is still accepted, then the run ends `failed` with `real_person`, charged nothing. When no GPU worker has room (the first image after a quiet spell, or every running worker's line full), the run is still accepted: it stays `queued`, oldest first, until a worker can take it (a fresh worker takes several minutes to start) and then runs. One that gets no worker within 20 minutes ends `failed` with `timed_out`, charged nothing. `503 unavailable` means the run couldn't be handed to a GPU worker at all. Nothing is charged, so retry with the same `Idempotency-Key`. The line has no length limit.
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.