Browse ModelsLumaLuma Ray 2 T2V

Luma Ray 2 T2V

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

ParameterRequiredDescription
promptYesText description of the video you want to generate.
sizeNoOutput resolution: 1280×720 or 720×1280 (default: 1280×720).
durationNoVideo length: 5 or 10 seconds (default: 5).

How to Use

  1. Write a prompt describing the scene, action, and style you want. Use the Prompt Enhancer for AI-assisted optimization.
  2. Select size — choose landscape (1280×720) or portrait (720×1280).
  3. Set duration — choose 5 or 10 seconds.
  4. Click Run and wait for your video to generate.
  5. 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

DurationPrice
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

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
sizestringNo1280*7201280*720, 720*1280The size of the generated media in pixels (width*height).
durationintegerNo55, 10The duration of the generated media in seconds.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.