Authorization: Bearer ********************
{
"model": "ray-flash-2",
"prompt": "cat",
"aspect_ratio": "21:9",
"generation_type": "video",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://cdn.pixabay.com/photo/2017/01/12/21/42/tiger-1975790_1280.jpg"
}
}
}
curl --location -g --request POST '/dream-machine/v1/generations/video' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "ray-flash-2",
"prompt": "cat",
"aspect_ratio": "21:9",
"generation_type": "video",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://cdn.pixabay.com/photo/2017/01/12/21/42/tiger-1975790_1280.jpg"
}
}
}'
{
"id": "7ca76429-99d1-46ab-bb2e-84baa4acdb04",
"state": "queued",
"failure_reason": null,
"created_at": "2024-11-27T13:50:56.313494Z",
"assets": null,
"version": null,
"request": {
"prompt": "A serene lake surrounded by mountains at sunset",
"aspect_ratio": "16:9",
"loop": true,
"keyframes": null,
"callback_url": "xxx"
}
}