Get a generation
Returns one generation; output.url is set once ready. With wait, the answer is held until the generation ends or the seconds run out, so one call replaces a polling loop: repeat it while status is still processing.
Authorization
apiKey In: header
Path Parameters
Query Parameters
Seconds to hold the answer while it is processing, up to 60.
0 <= value <= 60Response Body
application/json
application/json
curl -X GET "https://example.com/generations/string"{ "id": "string", "kind": "image", "status": "processing", "model": "string", "model_name": "string", "mode": "text", "resolution": "string", "seconds": 0, "aspect_ratio": "21:9", "voice": "string", "prompt": "string", "audio": true, "voice_name": "string", "image_ids": [ "string" ], "audio_ids": [ "string" ], "video_id": "string", "seed": 0, "credits_charged": 0, "error_code": "MEDIA_REJECTED", "edit_id": "string", "output": { "image_id": "string", "video_id": "string", "audio_id": "string", "url": "string", "thumbnail_url": "string" }, "outputs": [ { "kind": "image", "url": "string", "media_type": "string", "bytes": 0, "media_id": "string", "file_name": "string" } ], "text": "string", "options": { "property1": "string", "property2": "string" }, "expected_seconds": 0, "feedback": "up", "feedback_reason": "string", "refund_status": "requested", "downloaded": true, "removed": true, "created_at": "string"}Generate an image, a video, a sound or a 3D model POST
Generates an image, a video, a voice, music, a sound, a talking avatar, a 3D model or an edited image or video with a model from `GET /models`, or with `auto`, which picks the model that best draws the request for the price. Charges the credits at once; a generation that `failed` gives them back. `credits` is the total price the user agreed to: take it from `POST /generations/quote`. A different current price answers `PRICE_CHANGED` with the new total and charges nothing. Always tell the user the model and the price and wait for their yes before calling this. Answers the generation. To know when it ends, pass `?wait=60` (the answer is held until it ends or the seconds run out), `webhook_url` (CutPro posts the generation there, signed), or read `GET /generations/{id}?wait=60`. Send an `Idempotency-Key` header (any unique string, such as a UUID) to retry safely: the same key within 24 hours answers the first result and never charges twice. Images go in `image_ids` (from `POST /generations/media` or the `output.image_id` of a ready image) or as links in `image_urls`: none for `text`, one for `image` and `control`, two (first, last) for `frames`, and up to the model's `max_images` for `references` and `edit`. Sounds go in `audio_ids` or `audio_urls` on `references`, up to `max_audios`. `edit` (redraw, swap a person or object, upscale) and `control` (move the image with a video's motion) take a video in `video_id`; the result is as long as the source and is priced by its seconds. Links are brought into the workspace library before generating and count toward its storage. A voice (`kind: speech`) reads `prompt` word for word in one of the model's `voices`, passed as `voice`; the result is an MP3.
Delete a generation DELETE
Removes it from the list and its file from the library. One still `processing` cannot be deleted.