Upscale up to 4K, Progress updates


Create

generation = client.generations.create(
    prompt="A teddy bear in sunglasses playing electric guitar and dancing",
    model="ray-2",
    resolution="4k",
    duration="5s"
)

possible values for resolution: 540p, 720p, 1080p, 4k


Upscale (new)

generation = client.generations.upscale(
  id="uuid_here",
  resolution="4k"
)

you already have a video that you made with luma apis (the 540p and 720p ones), now you can now upscale them up to 4K

possible upscales

  • from 540p
    • to 720p
    • to 1080p
    • to 4k
  • from 720p
    • to 1080p
    • to 4k
  • from 1080p
    • to 4k

Upscale cost

Create (extra cost, on top of current 720p)

TargetCost (USD)
1080p0.15
4k0.25

Upscale

FromToCost (USD)
540p720p0.31
540p1080p0.46
540p4k0.56
720p1080p0.15
720p4k0.25
1080p4k0.10

Note: cost for upscale is a flat rate irrespective of aspect ratio or pixels in video.


Progress updates

for ray 2 requests, now a progress video is present when the generation state is dreaming

print(generation.assets.progress_video)