生成视频
测试中
POST
https://api.deerapi.com/dream-machine/v1/generations
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/dream-machine/v1/generations' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json;charset=utf-8' \
--data-raw '{
"prompt": "A tiger walking in snow",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://storage.cdn-luma.com/dream_machine/7e4fe07f-1dfd-4921-bc97-4bcf5adea39a/video_0_thumb.jpg"
}
}
}'
响应示例响应示例
{
"id": "fe6cd271-eec5-46dd-a753-b97c4d576616",
"state": "pending",
"created_at": "2025-03-09T05:09:24.137448Z",
"request": {
"prompt": "A tiger walking in snow",
"aspect_ratio": "16:9",
"enhance": true,
"request_type": "image_to_video"
},
"media_request": {
"end": null,
"loop": false,
"prompt_type": "keyframe",
"start": {
"id": "fd4643c2-27d1-4482-82fa-092c1f1f2839",
"media_type": null,
"thumbnail": null,
"type": "upload"
},
"text": "A tiger walking in snow"
}
}
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{api-key}}
Content-Type
string
可选
示例值:
application/json;charset=utf-8
Body 参数application/json
返回响应
修改于 2025-03-26 08:33:05