将文本训练为视频
开发环境
开发环境
POST
https://stablediffusionapi.com/api/v4/dreambooth/text2video
POST
向https://stablediffusionapi.com/api/v4/dreambooth/text2video端点发出请求,并将所需参数作为请求正文传递。请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/v4/dreambooth/text2video?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"key": "",
"model_id": "your_model_id",
"prompt": "a cat sitting on a bench",
"negative_prompt": null,
"width": "512",
"height": "512",
"scheduler": null,
"num_inference_steps": "30",
"enhance_prompt": "yes",
"guidance_scale": 7.5,
"strength": 0.7,
"seed": null,
"webhook": null,
"track_id": null
}'
响应示例响应示例
{
"status": "processing",
"tip": "for faster speed, keep resolution upto 512x512",
"eta": 21.880000000000003,
"messege": "Try to fetch request after given estimated time",
"fetch_result": "https://stablediffusionapi.com/api/v3/dreambooth/fetch/13801718",
"id": 13801718,
"output": [],
"meta": {
"prompt": "mdjrny-v4 style a cat sitting on a bench DSLR photography, sharp focus, Unreal Engine 5, Octane Render, Redshift, ((cinematic lighting)), f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame",
"model_id": "midjourney",
"scheduler": "UniPCMultistepScheduler",
"safetychecker": "no",
"negative_prompt": " ((out of frame)), ((extra fingers)), mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), (((tiling))), ((naked)), ((tile)), ((fleshpile)), ((ugly)), (((abstract))), blurry, ((bad anatomy)), ((bad proportions)), ((extra limbs)), cloned face, glitchy, ((extra breasts)), ((double torso)), ((extra arms)), ((extra hands)), ((mangled fingers)), ((missing breasts)), (missing lips), ((ugly face)), ((fat)), ((extra legs))",
"W": 512,
"H": 512,
"guidance_scale": 7.5,
"steps": 20,
"strength": 0.55,
"full_url": "no",
"seconds": 5,
"multi_lingual": "no",
"seed": 3532512439,
"outdir": "out",
"file_prefix": "d06b5499-eb10-4292-8256-9c269c36199f",
"num_frames": 40
}
}
请求参数
Body 参数application/json
返回响应
修改于 2023-10-30 05:42:57