---
title: "Luma Ray 2 Text-to-Video API & Playground - Comfy"
description: "Luma Ray 2 Text-to-Video: Generates a 5 or 9 second video from text at 540p to 4K, in seven aspect ratios including 21:9, with an option to loop."
canonical: https://comfy.org/hub/models/luma-ray-2-text-to-video/
lang: en
index: https://comfy.org/llms.txt
---

[Back to all models](https://comfy.org/hub/models/)

Luma

[Generate videos](https://comfy.org/hub/models/?useCase=generate-videos)

# Luma Ray 2 Text-to-Video

Generates a 5 or 9 second video from text at 540p to 4K, in seven aspect ratios including 21:9, with an option to loop.

Cost depends on your settings.

- [text-to-video](https://comfy.org/hub/models/?q=text-to-video)

[Read docs](https://docs.comfy.org/development/comfy-router/models#luma)

Input

Prompt

First frame

Select or drop an image PNG, JPEG, WEBP ·  up to 25 MiB

Last frame

Select or drop an image PNG, JPEG, WEBP ·  up to 25 MiB

Aspect ratio

Duration

Output type

Resolution

Advanced settings

Loop video

Make the end of the video connect to its beginning.

Output

00:00

Example

## Sample outputs

-

## More from Luma

[Browse all Browse all models](https://comfy.org/hub/models/)

- [Luma

  ### Luma Ray 2](https://comfy.org/hub/models/luma-ray-2-image-to-video/)

  Image to video

  [Try model](https://comfy.org/hub/models/luma-ray-2-image-to-video/) [Use API](https://comfy.org/hub/models/luma-ray-2-image-to-video/#api)
- [Luma

  ### Luma Ray Flash 2](https://comfy.org/hub/models/luma-ray-flash-2-text-to-video/)

  Text to video

  [Try model](https://comfy.org/hub/models/luma-ray-flash-2-text-to-video/) [Use API](https://comfy.org/hub/models/luma-ray-flash-2-text-to-video/#api)
- [Luma

  ### Luma Photon 1](https://comfy.org/hub/models/luma-photon-1-text-to-image/)

  Text to image

  [Try model](https://comfy.org/hub/models/luma-photon-1-text-to-image/) [Use API](https://comfy.org/hub/models/luma-photon-1-text-to-image/#api)
- [Luma

  ### Luma Photon Flash 1](https://comfy.org/hub/models/luma-photon-flash-1-text-to-image/)

  Text to image

  [Try model](https://comfy.org/hub/models/luma-photon-flash-1-text-to-image/) [Use API](https://comfy.org/hub/models/luma-photon-flash-1-text-to-image/#api)
