Generations

Upscale a generation

Changed on

Upscale a generation by its ID

post/generations/{id}/upscale

Request

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

Path parameters

id, string required

The ID of the generation

Request body

UpscaleVideoGenerationRequest required

The upscale generation request object

generation_type, 'upscale_video'
resolution, union

The resolution of the upscale

callback_url, string uri

The callback URL for the upscale

Response

Generation upscaled

Generation required

The generation response object

id, string uuid

The ID of the generation

generation_type, 'video' | 'image'

The type of the generation

state, 'queued' | 'dreaming' | 'completed' | 'failed'

The state of the generation

failure_reason, string

The reason for the state of the generation

created_at, string date-time

The date and time when the generation was created

assets, Assets

The assets of the generation

model, string

The model used for the generation

request, union

The request of the generation

Example response

{
  "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"
  },
  "model": "ray-2",
  "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