Generations

List generations

Changed on

Retrieve a list of generations with optional filtering and sorting

get/generations

Request

  • Base URL
    https://api.lumalabs.ai/dream-machine/v1
  • Auth
    HTTP bearer

Query parameters

limit, integer
offset, integer

Response

Generations found

ListGenerationResponse required

The generations response object

has_more, boolean

Whether there are more generations

count, integer

The number of generations returned

limit, integer

The limit of the generations requested

offset, integer

The offset of the generations requested

generations, Generation[] required

The generations requested

Example response

{
  "has_more": false,
  "count": 1,
  "limit": 100,
  "offset": 0,
  "generations": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "state": "completed",
      "failure_reason": null,
      "created_at": "2023-06-01T12:00:00Z",
      "assets": {
        "video": "https://example.com/video.mp4"
      },
      "version": "v1.6",
      "request": {
        "prompt": "A serene lake surrounded by mountains at sunset",
        "aspect_ratio": "16:9",
        "loop": true,
        "keyframes": {
          "frame0": {
            "type": "image",
            "url": "https://example.com/image.jpg"
          },
          "frame1": {
            "type": "generation",
            "id": "123e4567-e89b-12d3-a456-426614174000"
          }
        }
      }
    }
  ]
}

Changes