Model IDDocumentation Index
Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
Use this file to discover all available pages before exploring further.
Luma-Ray2 API Usage Guide
Overview
Luma-Ray2 is Luma’s flagship video generation model, offering state-of-the-art AI video creation capabilities. With support for text-to-video, image-to-video, video extension, and advanced features like camera motions and concepts, Ray 2 empowers creators to bring their visions to life with stunning visual quality.Key Features:
- Multiple Generation Modes: Text-to-video, image-to-video, video extension, and interpolation
- High Quality Output: Support for resolutions up to 4K with crisp, detailed videos
- Flexible Duration: Generate videos of 5 or 9 seconds
- Multiple Aspect Ratios: Support for various formats including 16:9, 9:16, 1:1, and more
- Advanced Features: Camera motions, concepts, loop generation, and keyframe control
- Professional Quality: Suitable for commercial and creative applications
Authentication
All API requests require authentication using an API key. Include your API key in the Authorization header:Submit Video Generation Request
Endpoint
Request Format
Request Parameters
| Parameter | Type | Required | Description | Default | Constraints |
|---|---|---|---|---|---|
prompt | string | Yes | Text prompt describing the desired video | - | Required |
resolution | string | No | Video resolution quality | ”720p” | Options: “540p”, “720p”, “1080p”, “4k” |
duration | string | No | Video length | ”5s” | Options: “5s”, “9s” |
aspect_ratio | string | No | Video aspect ratio | ”16:9” | Options: “16:9”, “9:16”, “1:1”, “4:3”, “3:4”, “21:9”, “9:21” |
loop | boolean | No | Whether video should loop seamlessly | false | true/false |
frame0_image | string | No | Start frame image URL for image-to-video | "" | Publicly accessible image URL |
frame1_image | string | No | End frame image URL for image-to-video | "" | Publicly accessible image URL |
Response
Check Request Status
Endpoint
Example
Response
Request Status Values
| Status | Description |
|---|---|
queued | Request is waiting to be processed |
processing | Video generation is in progress |
success | Video generation completed successfully |
failed | Video generation failed |
cancelled | Request was cancelled |
List Your Requests
Endpoint
Example
Get Model Information
Endpoint
Example
List Available Models
Endpoint
Example
Response
Video Specifications
- Duration: 5, 9 seconds
- Resolutions:
- 540p (economical)
- 720p (recommended)
- 1080p (high quality)
- 4K (ultra high quality)
- Aspect Ratios:
- Landscape: 16:9, 21:9
- Portrait: 9:16, 3:4, 9:21
- Square: 1:1
- Standard: 4:3
Tips for Better Results
- Clear, Descriptive Prompts: Use specific, detailed descriptions for better video quality
- Resolution Selection:
- Use 720p for most use cases (best balance of quality and speed)
- Use 1080p for professional content
- Use 4K for premium projects (longer generation time)
- Aspect Ratio Selection:
- Use 16:9 for landscape content, YouTube, and widescreen displays
- Use 9:16 for mobile-first content, TikTok, and Instagram Stories
- Use 1:1 for social media posts and square formats
- Use 21:9 for cinematic content and ultrawide displays
- Duration Considerations:
- 5 seconds: Quick content, social media
- 9 seconds: More complex scenes, detailed storytelling
- Loop Generation: Enable for continuous animations, backgrounds, or seamless loops