Getimg.ai
  1. Latent Consistency
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. Latent Consistency

图像到图像

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v1/latent-consistency/image-to-image
根据给定的文本提示和源图像生成图像。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/latent-consistency/image-to-image' \
--header 'content-type: application/json' \
--data-raw '{
    "prompt": "string",
    "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 编码的图像将用作生成的起点 。 每个维度的最大尺寸为1024px。
示例

返回响应

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