Luma Ray 2 T2V
Playground
Try it on WavespeedAI!Luma Ray 2 is a Text-to-Video model that creates high-quality videos from text prompts, with advanced prompt optimization and support for various video sizes. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Luma Ray 2 — Text-to-Video
Luma Ray 2 Text-to-Video is Luma AI’s powerful text-to-video generation model that creates stunning, high-quality videos from text descriptions. Generate smooth, visually striking 720p videos with excellent motion coherence — perfect for creative content and professional projects.
Why It Stands Out
- High-quality generation: Produces detailed videos with smooth, natural motion.
- HD 720p output: Generate crisp videos in landscape (1280×720) or portrait (720×1280).
- Prompt Enhancer: Built-in AI-powered prompt optimization for better results.
- Style versatility: Handles various styles from 2D animation to photorealistic scenes.
- Flexible duration: Choose between 5 or 10 second video lengths.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the video you want to generate. |
| size | No | Output resolution: 1280×720 or 720×1280 (default: 1280×720). |
| duration | No | Video length: 5 or 10 seconds (default: 5). |
How to Use
- Write a prompt describing the scene, action, and style you want. Use the Prompt Enhancer for AI-assisted optimization.
- Select size — choose landscape (1280×720) or portrait (720×1280).
- Set duration — choose 5 or 10 seconds.
- Click Run and wait for your video to generate.
- Preview and download the result.
Best Use Cases
- 2D Animation — Create playful animated content with vibrant styles.
- Social Media Content — Generate platform-optimized videos for TikTok, Reels, and Shorts.
- Marketing & Advertising — Produce eye-catching promotional videos and ad creatives.
- Creative Projects — Bring imaginative concepts to life with unique visual styles.
- Music Videos — Generate dynamic visuals for songs and audio tracks.
Pricing
| Duration | Price |
|---|---|
| 5 seconds | $0.40 |
| 10 seconds | $0.80 |
Pro Tips for Best Quality
- Be detailed in your prompt — describe subject, action, environment, and style.
- Specify animation style if desired (e.g., “2D animation,” “3D render,” “photorealistic”).
- Include mood keywords like “playful,” “dramatic,” “whimsical,” or “cinematic.”
- Describe transitions and motion for more dynamic results.
- Choose portrait (720×1280) for mobile-first platforms like TikTok.
Notes
- Processing time varies based on duration and current queue load.
- Please ensure your prompts comply with content guidelines.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/luma/ray-2-t2v" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"size": "1280*720",
"duration": 5
}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The positive prompt for the generation. | |
| size | string | No | 1280*720 | 1280*720, 720*1280 | The size of the generated media in pixels (width*height). |
| duration | integer | No | 5 | 5, 10 | The duration of the generated media in seconds. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |