Skip to content

Generate

Uploads

POST /v1/uploads: send a picture or a clip once, then name it by its id in any request.

POST/v1/uploadsStores a file sent as the raw body and answers 201 with its id (upl_…), which any media field takes for 24 hours.
GET/v1/uploads/{id}One of the workspace's uploads: ready, expired or deleted.
DELETE/v1/uploads/{id}Stops the id from working at once and deletes the file.

Send the file itself as the body, with its Content-Type: image/png, image/jpeg, image/webp, video/mp4, video/quicktime. A picture is 10 MB at most, a clip 100 MB. The file streams through as it arrives, and its first bytes must be what it says it is.

curl https://frameport.ai/v1/uploads?filename=dance.mp4 \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: video/mp4" \
  --data-binary @dance.mp4
201 Created
{
  "id": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe",
  "object": "upload",
  "type": "video",
  "status": "ready",
  "content_type": "video/mp4",
  "bytes": 18327441,
  "filename": "dance.mp4",
  "created_at": "2026-11-27T10:00:00.000Z",
  "expires_at": "2026-11-28T10:00:00.000Z"
}

Use it

An upload id goes wherever a picture or a clip goes: video and faces of a clip edit, reference_images and end_image of an image or video generation. A clip for video, a picture everywhere else.

{
  "model": "fp-replace-1",
  "video": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe",
  "faces": [
    "upl_3Tn8Lc1BdZeR7Rk2PqV9wX"
  ]
}

How long it lasts

  • An upload works for 24 hours (expires_at). A request that uses it keeps it at least 3 hours more, while the job reads it.
  • DELETE /v1/uploads/{id} stops it at once and deletes the file; a generation still reading it may fail.
  • A workspace holds 100 uploads at once and sends 10 a minute.
  • An expired or deleted upload named in a request is refused with 400 file_expired, before anything is held.
  • Your own outputs need no upload: name them by their file id (file_…).