Cut.ProDocs
Generate with AI: images, videos, sound and 3D

List generations

The workspace's images, videos and voices generated with POST /generations, newest first, narrowed by kind, status, model and creation time.

Authorization

apiKey
X-Api-Key<token>

In: header

Query Parameters

kind?string

Value in

  • "image"
  • "video"
  • "speech"
status?string

Value in

  • "processing"
  • "ready"
  • "failed"
model?string
Lengthlength <= 64
created_after?string

ISO 8601; only generations created at or after it.

Formatdate-time
created_before?string

ISO 8601; only generations created before it.

Formatdate-time
page?number

Page number (default: 1)

Range1 <= value
limit?number

Items per page (default: 20, max: 100)

Range1 <= value <= 100

Response Body

application/json

GET
/generations
curl -X GET "https://example.com/generations"
{  "generations": [    {      "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"    }  ],  "pagination": {    "current_page": 0,    "total_pages": 0,    "total_count": 0,    "has_next_page": true,    "has_previous_page": true,    "limit": 0  }}

Price a generation without generating POST

Takes the same request as `POST /generations`, checks it against the model and answers with the exact total in credits and the model, mode and resolution it resolved to (from `preset` and the inputs sent, when left out). Free, charges nothing and keeps no file. Show the total to the user, then send it as `credits` in `POST /generations`. A field the model does not take answers `400` with what it takes in `extra.allowed`.

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.