Stable Diffusion
  1. Dreambooth 沙盒
Stable Diffusion
  • Stable Diffusion API 文档
  • A1111 调度程序
  • Stable Diffusion API
    • 概述
    • 文本到图像
      POST
    • 图像到图像
      POST
    • 修复
      POST
    • 获取排队图像
      POST
    • 系统负载
      POST
  • 训练模型
    • 概述
    • Lora 模型
      POST
    • Dreambooth 模型 (V2)
      POST
    • Dreambooth 模型
      POST
    • 训练状态
      POST
    • 获取模型列表
      POST
    • 删除训练
      POST
    • 取消训练
      POST
    • 裁剪 Base64 图像
      POST
  • 文字转视频
    • 概述
    • 创建视频
      POST
    • 将文本训练为视频
      POST
  • 社区模型 API V4
    • 概述
    • 文本转图像
      POST
    • LoRA
      POST
    • LoRA 多功能设备
      POST
    • 图像到图像
      POST
    • 修复
      POST
    • 获取排队图像接口
      POST
    • 重新加载模型接口
      POST
  • 管理信息系统
    • 概述
    • 裁剪 Base64 图像
    • 删除图像
    • 获取训练过的模型列表
    • 获取公共型号列表
    • 清除用户缓存
    • 购买 Dreambooth 模型
    • 购买订阅计划
    • 取消订阅计划
    • NSFW 图像检查
    • 上传模型
    • 创建房间内部接口
  • 控制网
    • 概述
    • ControlNet 主要终端
    • ControlNet 多功能终端
  • 企业计划
    • 概述
    • 系统详情
    • 重新启动服务器终端
    • 更新服务器
    • 更新 S3 详细信息
    • 清楚缓存
    • 列表调度程序
    • 负载模型
    • 验证模型
    • 获取所有模型
    • 删除模型
    • Controlnet
    • 文字转图像
    • 文字转视频
    • 图像到图像
    • 修复
    • 超分辨率
    • 上传图片
    • 同步模型
    • 负载 Vae
    • NSFW 图像检查
    • 获取排队图像
  • Dreambooth 沙盒
    • 概述
    • 创建 Dreambooth 请求(沙盒)
      POST
    • 获取训练状态(沙盒)
      POST
  • 图像编辑
    • 概述
    • 外部绘画
    • Blip 扩散
    • 魔术混合接口
    • 图像深度
    • 图像混合器
    • 图像引导编辑
    • 删除背景
    • 超分辨率
    • 混合画布
  • 文本转 3D
    • 概述
    • 文本转 3D
    • 图像转 3D
  • 未经审查的聊天
    POST
  1. Dreambooth 沙盒

创建 Dreambooth 请求(沙盒)

开发环境
https://stablediffusionapi.com/v1
开发环境
https://stablediffusionapi.com/v1
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' \
--header 'Content-Type: application/json' \
--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
key
string 
必需
您的 API 密钥用于请求授权。
instance_prompt
string 
必需
文本提示您如何称呼受过训练的人/物体。
class_prompt
string 
必需
对受训人员/物体进行分类。
images
array[string]
必需
传递可访问的图像直接链接,裁剪为 512 x 512 像素。一个好的数字是 7-8 张图像。
seed
string 
必需
种子用于重现结果,相同的种子将再次为您提供相同的图像。为随机数传递null 。
training_type
string 
必需
您正在训练的对象的类型。
max_train_steps
string 
必需
将其设置为图像数量的 2 倍(Ni * 2;最大值 2000)。
webhook
string 
必需
培训完成后接到电话。
示例

返回响应

🟢200成功
application/json
Body
status
string 
必需
messege
string 
必需
data
string 
必需
training_id
string 
必需
上一页
概述
下一页
获取训练状态(沙盒)
Built with