Skip to content

Generate

Generations

GET /v1/generations: every generation and clip edit of the workspace, a page at a time, and their files with your key.

GET/v1/generationsThe workspace's generations and clip edits, newest first, a page at a time.
GET/v1/generations/{id}One generation of any type, moved forward if it is still running.
GET/v1/generations/{id}/contentThe bytes of its first output, streamed with your key. Range is supported.
GET/v1/generations/{id}/content/{index}The bytes of output index, from 0: the images of a batch.

List

Newest first, from the API and the Studio alike. Each item is the generation as its own endpoint shows it.

QueryTypeNotes
limitinteger1 to 100, default 20.
cursorstringThe next_cursor of the page before.
statusstringqueued, running, succeeded or failed.
typestringimage or video (clip edits are videos).
modelstringA model id.
sourcestringapi (a key) or playground (the Studio).
created_afterstringMade at or after this time, ISO 8601.
created_beforestringMade before this time, ISO 8601.
curl https://frameport.ai/v1/generations?status=succeeded&type=video&limit=50 \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"
200 OK
{
  "object": "list",
  "data": [
    {
      "id": "gen_4kQ8vT2nLm9Xr7Wd1sYcPa",
      "object": "generation",
      "type": "image",
      "model": "fp-image-1",
      "status": "succeeded",
      "input": {
        "prompt": "A lighthouse on a cliff at dawn",
        "n": 1,
        "aspect_ratio": "16:9"
      },
      "reserved_usd": 0.025,
      "cost_usd": 0.025,
      "outputs": [
        {
          "id": "file_8Hc2RkQw5ZpT1mVb7nXe3L",
          "status": "succeeded",
          "url": "https://frameport.ai/v1/files/file_8Hc2RkQw5ZpT1mVb7nXe3L?expires=1795779600&signature=Qm9yZW1fZXhhbXBsZV9zaWduYXR1cmU",
          "url_expires_at": "2026-11-27T11:10:00.000Z",
          "content_type": "image/png",
          "cost_usd": 0.025
        }
      ],
      "error": null,
      "created_at": "2026-11-27T10:00:00.000Z",
      "completed_at": "2026-11-27T10:01:12.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "MTc5NTc3NjQwMDAwMC5nZW5fNGtROHZUMm5MbTlYcjdXZDFzWWNQYQ"
}

When has_more is true, send next_cursor as cursor for the next page, with the same filters. 20 a page unless you ask for up to 100. A list does not move running generations forward: read one by id, or let webhooks tell you.

Read one

GET /v1/generations/{id} reads any generation by its id, image, video or clip edit: the same answer as GET /v1/images/generations/{id} and the others, moved forward if it still runs.

Download

GET /v1/generations/{id}/content streams the first output's file with your key, no file id or signed link needed; /content/{index} the output at that position, from 0 (the images of a batch). Range is supported. While it runs, the answer is 409 not_ready; a file no longer stored is 410 file_expired.

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