If you're looking for an API, you can choose from your desired programming language.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import requests
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/ray-flash-2-720p"
# Prepare data and files
data = {}
files = {}
data['loop'] = False
data['prompt'] = "a young boy riding a red bicycle in grand canyon valleys"
data['duration'] = "5"
data['aspect_ratio'] = "16:9"
data['start_image_url'] = None
data['end_image_url'] = None
headers = {'x-api-key': api_key}
# If no files, send as JSON
if files:
response = requests.post(url, data=data, files=files, headers=headers)
else:
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Whether the video should loop, with the last frame matching the first frame for smooth, continuous playback.
Text prompt for video generation
Duration of the output.
Allowed values:
Aspect ratio of the video.
Allowed values:
URL of an image to use as the starting frame
URL of an image to use as the ending frame
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.
The Luma ray-Flash-2-720p model is a cutting-edge text-to-video generation system from Luma. Built upon a multi-modal architecture, it empowers content creators and marketers to quickly and affordably produce realistic 720p video content with coherent motion and detailed visuals based on simple text prompts, offering a faster and cheaper alternative to Ray 2.
Realistic Video Generation - Creates videos with coherent motion and detailed visuals based on text input, enabling high-quality outputs.
Natural Motion Synthesis - Generates videos with lifelike movement of objects and characters, enhancing realism.
Photorealistic Detail Rendering - Produces videos with a high level of visual fidelity, including realistic textures, lighting, and shadows.
Physics-based Simulations - Capable of generating videos that incorporate realistic physical interactions, such as liquids and explosions.
Cinematic Scene Composition - Facilitates the creation of visually appealing and well-structured video scene
Social Media Content Creation - Ideal for generating engaging short-form video content for platforms like TikTok and Instagram Reels due to its fixed duration options and aspect ratio flexibility.
Digital Advertising - Enables the rapid creation of compelling video ads with realistic visuals to capture audience attention.
Background Visuals - The looping option allows for the creation of seamless background videos for websites or displays.
Concept Visualization - Useful for artists and designers to quickly visualize and present abstract or surrealist concepts in video form
Output Resolution: 720p
Video Durations: Generates videos of 5 seconds or 9 seconds in length.
Input: Text prompts & Start and end frames (images)
The Luma ray-Flash-2-720p model offers a powerful yet cost-effective solution for generating high-quality 720p video content from text prompts. Its speed, realistic output capabilities, and fixed duration options make it a valuable tool for content creators, marketers, and digital artists seeking engaging visual assets for various applications.
SDXL Img2Img is used for text-guided image-to-image translation. This model uses the weights from Stable Diffusion to generate new images from an input image using StableDiffusionImg2ImgPipeline from diffusers
The most versatile photorealistic model that blends various models to achieve the amazing realistic images.
This model corresponds to the Stable Diffusion Epic Realism checkpoint for detailed images at the cost of a super detailed prompt
Take a picture/gif and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training
We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept all", you consent to our use of cookies.