Skip to content

Generate

Files

Download outputs through signed links, or with your key.

GET/v1/files/{id}An output's bytes, streamed. Range is supported, so a video can seek.

Signed links

Each finished output carries url, a link of the form /v1/files/{id}?expires=…&signature=…, and url_expires_at. It opens without a key, so you can hand it to a browser or a download tool, for 60 to 70 minutes.

Every read of the generation signs a fresh link: when one has expired, GET the generation again. An invalid or expired link answers 403 forbidden.

With your key

Without a signature, GET /v1/files/{id} works with a key of the workspace that made the file. Any other key gets 404 not_found. GET /v1/generations/{id}/content does the same from the generation's id (Generations).

curl -L https://frameport.ai/v1/files/file_8Hc2RkQw5ZpT1mVb7nXe3L \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -o out.png

Keep what you need

Files are not stored forever. Copy the ones you keep to your own storage. A file that is no longer stored answers 410 file_expired, and its output shows url: null with that error.

Private mode

Send "private": true to a model whose options.private is true (our own engines) and nothing of the request is kept: not the prompt, not the negative prompt, not the media. The generation's input keeps its settings only, and private: true.

A private image comes back once, as b64_json on its output (url is null), in the read that completes it: GET the generation with the key that started it until it succeeds, and save the bytes then (a single image can also be read through its /content; a batch of several comes back whole, in the generation). Later reads, the webhooks and the list show the output with 410 file_expired. Only the key that started it moves a private image forward (another key of the workspace, a HEAD or the list read it without taking it), so poll it: a run nobody reads is closed after a few hours.

A private clip is served by its url like any other for about 30 minutes, then answers 410 file_expired. A video model renders privately at its options.private_resolutions only, when it lists them: a sharper tier is upscaled after the render, which keeps the clip for a moment. Elsewhere, and on clip edits, private: true is refused with 400 private_unavailable before anything is held.