---
agentTools:
  projectIndex: https://docs.lumalabs.ai/llms.txt
---

# Upscale up to 4K, Progress updates

<Embed url="https://www.youtube.com/shorts/tNAGqjd8L54" title="Upscale to 4K" favicon="https://www.youtube.com/favicon.ico" image="https://i.ytimg.com/vi/tNAGqjd8L54/hq2.jpg" provider="youtube.com" href="https://www.youtube.com/shorts/tNAGqjd8L54" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FtNAGqjd8L54%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fshorts%252FtNAGqjd8L54%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FtNAGqjd8L54%252Fhq2.jpg%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22640%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%3B%20encrypted-media%3B%20picture-in-picture%3B%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

<br />

**Create**

```python
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

<br />

**Upscale (new)**

```python
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

<br />

Create cost (for 5s Ray 2 video)

| Target | Cost (USD) |
| :----- | :--------- |
| 1080p  | 0.95       |
| 4k     | 1.05       |

Upscale cost

| 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.

<br />

**Progress updates**

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

```python
print(generation.assets.progress_video)
```