创建 Dreambooth 请求(沙盒)
开发环境
开发环境
POST
https://stablediffusionapi.com/api/sandbox/v3/fine_tune
POST
向 https://stablediffusionapi.com/api/sandbox/v3/fine_tune 接口发出请求,并在请求正文中传递所需的参数。训练类型
training_type
参数的所有可能值。价值 | 描述 |
---|---|
男人 | 在男人的脸上进行训练。 |
女性 | 在女性脸上进行训练。 |
夫妻 | 对男女情侣进行训练;在图像数组中传递情侣的图像,而不是单个人的图像。 |
无效的 | 在物体或任何东西上进行训练。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/sandbox/v3/fine_tune?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"key": "",
"instance_prompt": "photo of adhik person",
"class_prompt" : "photo of person",
"images": [
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00001.png",
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00002.png",
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00003.png",
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00004.png",
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00005.png",
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00006.png",
"https://stablediffusionapi.com/storage/avatars/AdhikJoshi_00007.png"
],
"seed": "0",
"training_type": "men",
"max_train_steps": "2000",
"webhook": ""
}'
响应示例响应示例
{
"status": "string",
"messege": "string",
"data": "string",
"training_id": "string"
}
请求参数
Body 参数application/json
返回响应
修改于 2023-10-30 08:05:26