Skip to main content

Endpoint

Use this when you have a local file instead of a public URL. Upload it here first, then pass the returned url into the image, last_image, or video field of Create Video or Image Edits (POST /v1/images/edits). If your image or video is already hosted somewhere public, you can skip this endpoint and pass that URL directly instead.

Request

string
required
Bearer <your-token>
string
required
multipart/form-data

Body

file
required
The image or video file to upload. Max 50MB.

Example

Response 200

Uploaded URLs are for temporary use with generation requests only — do not rely on them for long-term storage. Use the URL within the same session as the upload.