---
title: "Get a generation"
method: GET
path: "/generations/{id}"
tags: ["Generations"]
---

# Get a generation

`GET /generations/{id}`

## Request

- Base URL: `https://api.cut.pro/api/v1`
- URL: `https://api.cut.pro/api/v1/generations/{id}`
- Auth: API key in header `X-Api-Key`

Returns one generation. Poll it every 10 seconds while `status` is `processing`; `output.url` is set once `ready`.

## Path parameters

- `id` string, required

## Response `200`

Response for status 200

- object
  - `id` string, required
  - `kind` 'image' | 'video', required
  - `status` 'processing' | 'ready' | 'failed', required: `processing` until it ends `ready` or `failed`; a failed one gives the credits back.
  - `model` string, required
  - `model_name` string, required
  - `mode` 'text' | 'image' | 'frames' | 'references', required: `text`: from the prompt alone. `image`: animates one image, the first frame (video only). `frames`: goes from a first to a last image (video only). `references`: borrows a person, product or style from the images, or edits them (image).
  - `resolution` string, nullable, required
  - `seconds` number, nullable, required
  - `aspect_ratio` '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16', required
  - `prompt` string, nullable, required
  - `image_ids` string[], required
  - `credits_charged` number, required
  - `error_code` 'MEDIA_REJECTED' | 'COPYRIGHT_BLOCKED' | 'REAL_FACES_BLOCKED' | 'SAFETY_BLOCKED' | 'MEDIA_FAILED' | 'MEDIA_UNAVAILABLE' | 'INSUFFICIENT_CREDITS' | 'TIMEOUT' | 'OUTPUT_CHECK_FAILED', nullable, required
  - `edit_id` string, nullable, required: Set on a ready video: pass it to `POST /posts` to publish or schedule it.
  - `output` object, nullable, required: Set once `ready`, unless the file was deleted from the library.
    - `image_id` string, nullable, required: Set on an image: pass it in `image_ids` of `POST /generations` to animate or edit it.
    - `url` string, required: Signed preview link, valid for 6 hours.
    - `thumbnail_url` string, nullable, required
  - `expected_seconds` number, nullable, required: How long this model usually takes, while `processing`.
  - `created_at` string, required

## Other responses

- `404`: Response for status 404

---

[API](https://skmtc.dev/cut/apis/cutpro-api.md) · [All operations](https://skmtc.dev/cut/apis/cutpro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cut/apis/cutpro-api/revisions/89d0bafe529c?raw)
