Generations
Create a generation
Changed onInitiate a new generation with the provided prompt
post/generations/video
Request
- Base URL: https://api.lumalabs.ai/dream-machine/v1
- URL: https://api.lumalabs.ai/dream-machine/v1/generations/video
- Auth: HTTP bearer
Request body
Example request
{
"summary": "Text to video",
"value": {
"prompt": "A serene lake surrounded by mountains at sunset",
"aspect_ratio": "16:9",
"loop": true
}
}Response
Generation created
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"state": "completed",
"failure_reason": null,
"created_at": "2023-06-01T12:00:00Z",
"assets": {
"video": "https://example.com/video.mp4"
},
"model": "ray-2",
"request": {
"prompt": "A serene lake surrounded by mountains at sunset",
"aspect_ratio": "16:9",
"loop": true,
"keyframes": {
"frame0": {
"type": "image",
"url": "https://example.com/image.jpg"
},
"frame1": {
"type": "generation",
"id": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}Changes
- breaking
removed the enum value
ray-1-6of the request property - info
the
request property default valueray-1-6was removed - info
the
response's property default valueray-1-6was removed for the status - info
removed the
ray-1-6enum value from the/////response property for the response status
- breaking
- warning
added the new
ray-flash-2enum value to the/////response property for the response status
- warning