Getimg.ai
  1. Stable Diffusion XL
Getimg.ai
  • 简介
  • 验证
  • 价钱
  • 错误
  • 速率限制
  • 请求 ID
  • models
    • 列出所有型号
      GET
    • 检索模型
      GET
  • Stable Diffusion
    • 文字转图像
      POST
    • 图像到图像
      POST
    • 控制网
      POST
    • 修复
      POST
    • 指导
      POST
  • Stable Diffusion XL
    • 文字转图像
      POST
    • 图像到图像
      POST
    • 修复
      POST
  • Latent Consistency
    • 文字转图像
      POST
    • 图像到图像
      POST
  • 增强功能
    • 图像放大
      POST
    • 修复图像
      POST
  • 账户
    • 检索余额
      GET
  1. Stable Diffusion XL

修复

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v1/stable-diffusion-xl/inpaint
根据文本提示、源图像和遮罩区域生成重绘图像。目前唯一可用的型号是.stable-diffusion-xl-v1-0
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/stable-diffusion-xl/inpaint' \
--header 'content-type: application/json' \
--data-raw '{
    "prompt": "string",
    "image": "string",
    "mask_image": "string"
}'
响应示例响应示例
200 - 成功示例
{
  "image": "...looooong base64 encoded image string...",
  "seed": 42,
  "cost": 0.00663552
}

请求参数

Header 参数
content-type
string 
必需
示例值:
application/json
Body 参数application/json
prompt
string 
必需
指导图像生成所需的文本输入。
image
string 
必需
将要修复的 Base64 编码图像。被 遮盖的图像部分mask_image将根据 重新绘制prompt。 每个维度的最大尺寸为1536px。
mask_image
string 
必需
Base64 编码的图像掩码。蒙版中的白色像素将被重新绘制,而黑色像素将被保留。 每个维度的最大尺寸为1536px。
示例

返回响应

🟢200成功
application/json
Body
image
string 
必需
seed
integer 
必需
cost
number 
必需
🟠400请求有误
🟠401没有权限
上一页
图像到图像
下一页
文字转图像
Built with