You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-references/video-models/luma-ai/luma-ray-2.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This documentation is valid for the following list of our models:
19
19
{% endcolumn %}
20
20
{% endcolumns %}
21
21
22
-
##
22
+
This model generates up to 9-second clips at 4K, compared to lower resolutions and shorter durations in [Ray 1.6](luma-ai-v2.md). Audio generation, looped videos are also supported.
23
23
24
24
## Setup your API Key
25
25
@@ -275,6 +275,8 @@ main();
275
275
276
276
**Low-res GIF preview**:
277
277
278
+
279
+
278
280
## API Schemas
279
281
280
282
### Create a video generation task and send it to the server
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `id`, obtained from the endpoint described above.\
61
+
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
## Full Example: Generating and Retrieving the Video From the Server
39
68
40
69
The code below creates a video generation task, then automatically polls the server every **10** seconds until it finally receives the video URL.
@@ -268,32 +297,3 @@ Processing complete:
268
297
**Low-res GIF preview**:
269
298
270
299
<divalign="left"><figure><imgsrc="../../../.gitbook/assets/ezgif-1f9deb6add98fd.gif"alt=""><figcaption><p><code>"She turns around and smiles, then slowly walks out of the frame."</code></p></figcaption></figure></div>
271
-
272
-
## API Schemas
273
-
274
-
### Create a video generation task and send it to the server
275
-
276
-
You can generate a video using this API. In the basic setup, you only need a reference image and a prompt. \
277
-
This endpoint creates and sends a video generation task to the server — and returns a generation ID.
278
-
279
-
\
280
-
<markstyle="background-color:$warning;">The provided image dimensions must match the selected video resolution and aspect ratio.</mark>
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `id`, obtained from the endpoint described above.\
295
-
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `id`, obtained from the endpoint described above.\
66
+
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
## Full Example: Generating and Retrieving the Video From the Server
39
73
40
74
The code below creates a video generation task, then automatically polls the server every **10** seconds until it finally receives the video URL.
@@ -268,37 +302,3 @@ Processing complete:
268
302
**Low-res GIF preview**:
269
303
270
304
<divalign="left"><figure><imgsrc="../../../.gitbook/assets/ezgif-1b397f75ecad63.gif"alt=""><figcaption><p><code>"She turns around and smiles, then slowly walks out of the frame."</code></p></figcaption></figure></div>
271
-
272
-
## API Schemas
273
-
274
-
### Create a video generation task and send it to the server
275
-
276
-
You can generate a video using this API. In the basic setup, you only need a reference image and a prompt. \
277
-
This endpoint creates and sends a video generation task to the server — and returns a generation ID.
278
-
279
-
\
280
-
<markstyle="background-color:$warning;">The provided image dimensions must match the selected video resolution and aspect ratio.</mark>
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `id`, obtained from the endpoint described above.\
300
-
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `generation_id`, obtained from the endpoint described above.\
52
+
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
## Full Example: Generating and Retrieving the Video From the Server
39
59
40
60
The code below creates a video generation task, then automatically polls the server every **10** seconds until it finally receives the video URL.
@@ -277,25 +297,3 @@ Processing complete:
277
297
**Low-res GIF preview**:
278
298
279
299
<divalign="left"><figure><imgsrc="../../../.gitbook/assets/ezgif-1d435852c8d639.gif"alt=""><figcaption><p><code>"A menacing evil dragon appears in a distance above the tallest mountain, then rushes</code> <br><code>toward the camera with its jaws open, revealing massive fangs. We see it's coming."</code></p></figcaption></figure></div>
280
-
281
-
## API Schemas
282
-
283
-
### Create a video generation task and send it to the server
284
-
285
-
You can generate a video using this API. In the basic setup, you only need a prompt. \
286
-
This endpoint creates and sends a video generation task to the server — and returns a generation ID.
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `generation_id`, obtained from the endpoint described above.\
297
-
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `generation_id`, obtained from the endpoint described above.\
52
+
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
## Full Example: Generating and Retrieving the Video From the Server
39
59
40
60
The code below creates a video generation task, then automatically polls the server every **10** seconds until it finally receives the video URL.
@@ -277,23 +297,3 @@ Processing complete:
277
297
**Low-res GIF preview**:
278
298
279
299
<divalign="left"><figure><imgsrc="../../../.gitbook/assets/ezgif-183506f2d702aa.gif"alt=""><figcaption><p><code>"A menacing evil dragon appears in a distance above the tallest mountain, then rushes</code> <br><code>toward the camera with its jaws open, revealing massive fangs. We see it's coming."</code></p></figcaption></figure></div>
280
-
281
-
## API Schemas
282
-
283
-
### Create a video generation task and send it to the server
284
-
285
-
You can generate a video using this API. In the basic setup, you only need a prompt. \
286
-
This endpoint creates and sends a video generation task to the server — and returns a generation ID.
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its `generation_id`, obtained from the endpoint described above.\
295
-
If the video generation task status is `complete`, the response will include the final result — with the generated video URL and additional metadata.
0 commit comments