Luma Ray 2 Flash text-to-video generation model can create high-quality videos based on textual descriptions, supports multiple video dimensions, and features advanced prompt optimization capabilities.
Request
Header Params
Body Params application/json
Example
{"duration":5,"prompt":"A time-lapse of a sunrise over a bustling city, 16-bit pixel art style. Tiny pixel cars move along the streets, and lights in the buildings turn off as the sun rises. Retro gaming aesthetic, vibrant pixelated colors. -camera tilt up slowly -motion 1","size":"1280*720"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/ws/api/v3/luma/ray-2-flash-t2v' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"duration": 5,
"prompt": "A time-lapse of a sunrise over a bustling city, 16-bit pixel art style. Tiny pixel cars move along the streets, and lights in the buildings turn off as the sun rises. Retro gaming aesthetic, vibrant pixelated colors. -camera tilt up slowly -motion 1",
"size": "1280*720"
}'