Upload a reference image
Sends one image as multipart/form-data, to animate it, use it as a first or last frame, or borrow a person, product or style from it. It goes to the workspace library and counts toward its storage. Pass the returned id in image_ids of POST /generations. An image CutPro generated needs no upload: its output.image_id works the same.
apiKeyX-Api-Key<token>multipart/form-data- body
image*unknownThe image file.
Response for status 201
application/json- response
id*stringImage id, for image_ids.
curl -X POST 'https://api.cut.pro/api/v1/generations/images'{ "id": "string"}Get the secret that signs generation webhooks GET
The secret that signs the webhooks of the generations created with this API key. Check each delivery: compute the HMAC-SHA256 of `<t>.<raw body>` with it and compare with `v1` of the `CutPro-Signature` header, and refuse a `t` older than 5 minutes. A new API key has a new secret.
Upload an image, video or sound to generate from POST
Takes one file as `multipart/form-data` (`file`), or a public link to an image or a sound as JSON (`url`), reads whether it is an image, a video or a sound and keeps it in the workspace library, where it counts toward storage. A file goes up to 100 MB; a video is taken as a file only, never by link. Pass the `id` in `image_ids`, `audio_ids` or `video_id` of `POST /generations`. An image or sound link can also go straight into `image_urls` or `audio_urls` there.