1const axios = require('axios');
2
3
4const api_key = "YOUR API-KEY";
5const url = "https://api.segmind.com/v1/luma-ray-txt-2-video";
6
7const data = {
8 "prompt": "Panda surfing on a wave",
9 "loop": false,
10 "resolution": "720p",
11 "aspect_ratio": "1:1"
12};
13
14(async function() {
15 try {
16 const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
17 console.log(response.data);
18 } catch (error) {
19 console.error('Error:', error.response.data);
20 }
21})();
Prompt to render the video
Whether to loop the video
An enumeration.
Allowed values:
An enumeration.
Allowed values:
List of camera concepts to apply
Allowed values:
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Luma Ray2 text-to-video is a large-scale video generative model that produces realistic visuals with natural, coherent motion using text descriptions. Ray2 is trained on Luma’s new multi-modal architecture and scaled to 10x compute of Ray1. Ray2 is capable of producing fast coherent motion, ultra-realistic details, and logical event sequences. This increases the success rate of usable generations and makes videos generated by Ray2 substantially more production-ready.
Realistic Visuals: Creates videos with text descriptions.
Coherent Motion: Generates natural and consistent movement within the video.
Advanced Capabilities: Exhibits advanced capabilities as a result of being trained on Luma’s new multi-modal architecture scaled to 10x compute of Ray1.
Production-Ready: Produces videos suitable for professional use due to increased success rates.
Text Instruction Understanding: Accurately interprets text instructions to generate relevant video content.
Fast Coherent Motion: Produces videos with fast and coherent motion.
Ultra-Realistic Details: Generates videos with ultra-realistic details.
Logical Event Sequences: Creates videos with logical event sequences