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

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
headerX-Api-Key<token>

Path Parameters

id*string

Query Parameters

wait?|

Seconds to hold the answer while it is processing, up to 60.

Range0 <= value <= 60

Response Body

Response for status 200

application/json
  1. response
id*string
kind*string
Default"image"
Value in"image""video""speech""music""audio""avatar""model3d""tool""videoedit""story"
status*string

processing until it ends ready or failed; a failed one gives the credits back.

Default"processing"
Value in"processing""ready""failed"
model*string
model_name*string
mode*|

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, style, voice or sound from the images and audios, or edits the images (image). edit: redraws a video as the prompt asks, swaps a person or object for the one in the images, or upscales it (video only). control: moves the one image with the motion of a video (video only). A voice takes text only.

Default"text"
Value in"text""image""frames""references""edit""control"null
resolution*string|null
seconds*number|null
aspect_ratio*|

Null for a voice.

Default"21:9"
Value in"21:9""16:9""3:2""4:3""5:4""1:1""4:5""3:4""2:3""9:16"null
voice*|

The voice a speech generation was read in.

prompt*|

What was asked, or the text a voice read.

audio*|

Whether a video was drawn with sound; null for an image or a voice.

voice_name*|

The name of voice, for showing.

image_ids*array<string>
audio_ids*array<string>

The sounds a references video borrowed a voice or a beat from.

video_id*|

The video an edit redrew or a control took the motion of.

seed*|

Send it back as seed with the same request for the closest result again.

credits_charged*number
error_code*|
Default"MEDIA_REJECTED"
Value in"MEDIA_REJECTED""COPYRIGHT_BLOCKED""REAL_FACES_BLOCKED""SAFETY_BLOCKED""MEDIA_FAILED""MEDIA_UNAVAILABLE""INSUFFICIENT_CREDITS""TIMEOUT""OUTPUT_CHECK_FAILED""TARGET_NOT_A_PERSON"null
edit_id*|

Set once a ready video was opened to edit (POST /generations/{id}/edit): pass it to POST /posts to publish or schedule it.

output*|

The first file, set once ready, unless it was deleted from the library. outputs lists every file.

outputs*array<>

Every file the model made, once ready: a 3D model with its textures, several images, a song.

text*|

What the model wrote, for a model that answers text (lyrics, a description).

options*|

The model's own fields as the request ran them, for a model that runs from its parameters.

expected_seconds*|

How long this model usually takes, while processing.

feedback*|
Default"up"
Value in"up""down"null
feedback_reason*|

Set with a down vote.

refund_status*|

Set once the credits were asked back: requested until the team decides, then approved or denied.

Default"requested"
Value in"requested""approved""denied"null
downloaded*boolean

true once the file was taken with GET /generations/{id}/download: its credits can no longer be asked back.

removed*boolean

true when the result was deleted from the library.

created_at*string
GET
/generations/{id}
Example Request
curl -X GET 'https://api.cut.pro/api/v1/generations/string'
Example Response
{  "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.