Upscale up to 4K, Progress updates
about 22 hours ago by Karan Ganesan
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)
Target | Cost (USD) |
---|---|
1080p | 0.15 |
4k | 0.25 |
Upscale
From | To | Cost (USD) |
---|---|---|
540p | 720p | 0.31 |
540p | 1080p | 0.46 |
540p | 4k | 0.56 |
720p | 1080p | 0.15 |
720p | 4k | 0.25 |
1080p | 4k | 0.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)