Img Open
  1. 绘图信息
Img Open
  • CV任务状态码信息附录
  • 绘图信息
    • sd 文生图-v2
      POST
    • sd 文生图-v3
      POST
    • sd 图生图-v2
      POST
    • sd 图生图-v3
      POST
    • sd 局部重绘-v1
      POST
    • sd controlnet 生图
      POST
    • 查询模型列表
      POST
    • 查询lora列表
      POST
    • 查询vae列表
      POST
    • 查询Embedding列表
      POST
  • 绘图任务
    • 查询归档任务详情
      POST
    • 查询任务实时状态 (百分比/进度条/中间图)
      POST
    • 绘图工具任务查询
      POST
  • 模型训练
    • 提交训练任务
      POST
    • 训练结果回调
      POST
  • 绘图工具
    • Flux文生图
      POST
    • 个性化写真
      POST
    • 高级换脸
      POST
    • 超级换脸 faceFusion
      POST
    • 面部检测(脸部提取) faceDetection
      POST
    • 换发型
      POST
    • 提示词扩写
      POST
    • sd prompts优化
      POST
    • 提示词扩写优化
      POST
    • 图转文
      POST
    • 超分辨
      POST
    • 换脸 roop
      POST
    • 面部修复
      POST
    • 智能擦除
      POST
    • 风格识别
      POST
    • 图片外扩
      POST
    • CNT预览
      POST
    • 背景去除
      POST
    • 图片扩大
      POST
    • 给图片加水印
      POST
    • 图片去水印
      POST
    • 图生视频
      POST
  • 图片检测
    • 异步图片检测
  • 视频工具
    • 视频加水印
    • 移除视频背景
    • 视频比例调整
    • 扩大视频图像
    • 视频补帧
    • 视频格式转换
  • 音频工具
    • 人声分离
    • 文生音乐
    • 文字配音
    • 生成歌词
  • 翻译
    • 翻译
  1. 绘图信息

sd 文生图-v3

开发中
POST
/AIGCImgOpenServ/saas/sd/v3/text2Image
文生图V3接口,支持controlnet、adetailer插件功能,请求体参数格式为Json数据结构、v2版本为string类型。

请求参数

Header 参数

Body 参数application/json

示例
{
    "prompt": "string",
    "negativePrompt": "string",
    "iterationCount": 1,
    "singleBatchImageCount": 1,
    "steps": 20,
    "seed": "-1",
    "subSeed": "string",
    "subSeedStrength": 0,
    "initialNoiseHeight": -1,
    "initialNoiseWeight": 128,
    "restoreFaces": false,
    "enableHighDefinitionRepair": false,
    "tilling": false,
    "width": 512,
    "height": 512,
    "promptGuidanceFactor": 7,
    "samplerName": "None",
    "samplerIndex": "Euler a",
    "deNoisingStrength": 0,
    "styles": [
        "string"
    ],
    "scriptName": "string",
    "scriptArgs": {},
    "callbackUrl": "string",
    "firstPhaseWidth": 0,
    "firstPhaseHeight": 0,
    "highDefinitionRepairScale": 1,
    "highDefinitionRepairEnlarger": "None",
    "highDefinitionRepairPostSteps": 0,
    "highDefinitionRepairImageWidth": 0,
    "highDefinitionRepairImageHeight": 0,
    "highDefinitionRepairSamplerName": "string",
    "highDefinitionRepairPrompt": "string",
    "highDefinitionRepairNegativePrompt": "string",
    "saasDrawingExternalBaseParameterBO": {
        "baseModelCode": "string",
        "vaeName": "string",
        "businessTaskId": "string",
        "targetImageFormat": "string",
        "saasDrawingOverrideSettingParameterBO": {
            "clipSkipLayers": 1
        },
        "saasDrawingADetailerPluginBO": {
            "saasDrawingADetailerPluginParameterBOS": [
                {
                    "enablePlugin": false,
                    "modelName": "string",
                    "prompt": "string",
                    "negativePrompt": "string",
                    "confidenceThreshold": 0.3,
                    "maskAreaMinRatio": 0,
                    "maskAreaMaxRatio": 0,
                    "imageExpansionPixel": 4,
                    "maskOffsetOfXAxis": 0,
                    "maskOffsetOfYAxis": 0,
                    "maskMergeMode": "None",
                    "maskFuzzyBoundaryPixel": 4,
                    "reductionNoiseStrength": 0.4,
                    "repairSourceImageMask": false,
                    "repairSourceImageMaskAreaPixel": 32,
                    "useRepairedImageScaleSwitch": false,
                    "repairedImageWidth": 512,
                    "repairedImageHeight": 512,
                    "usePluginGenerateStep": true,
                    "generateStep": 28,
                    "usePluginPromptGuidanceFactor": true,
                    "promptGuidanceFactor": 7,
                    "usePluginSampler": true,
                    "sampler": "string",
                    "usePluginNoiseMultiplier": true,
                    "noiseMultiplier": 1,
                    "userPluginClipSkipLayers": true,
                    "clipSkipLayers": 1,
                    "enablePluginRestoreFace": true,
                    "controlNetModel": "string",
                    "controlNetModule": "string",
                    "controlNetWeight": 1,
                    "startGuidanceStep": 0,
                    "endGuidanceStep": 1
                }
            ]
        },
        "saasDrawingControlPluginBO": {
            "saasDrawingControlPluginParameterBOS": [
                {
                    "controlImageUrl": "string",
                    "enabled": false,
                    "module": "string",
                    "model": "string",
                    "weight": 0.7,
                    "imageResize": "string",
                    "reduceVideoMemoryUsage": true,
                    "processorReSize": 512,
                    "thresholdA": 0,
                    "thresholdB": 0,
                    "guidanceStart": 0,
                    "guidanceEnd": 1,
                    "pixelPerfect": true,
                    "controlMode": "string",
                    "inputMode": "string",
                    "batchImages": "string",
                    "loopback": true
                }
            ]
        }
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/sd/v3/text2Image' \
--header 'X-Request-req-accessKeyId: openapi-ab0ve5ma5y0w0000' \
--header 'X-Request-req-accessKeySecret: om6qr46e9pxq2z5goxp2xyj92ma10086' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "string",
    "negativePrompt": "string",
    "iterationCount": 1,
    "singleBatchImageCount": 1,
    "steps": 20,
    "seed": "-1",
    "subSeed": "string",
    "subSeedStrength": 0,
    "initialNoiseHeight": -1,
    "initialNoiseWeight": 128,
    "restoreFaces": false,
    "enableHighDefinitionRepair": false,
    "tilling": false,
    "width": 512,
    "height": 512,
    "promptGuidanceFactor": 7,
    "samplerName": "None",
    "samplerIndex": "Euler a",
    "deNoisingStrength": 0,
    "styles": [
        "string"
    ],
    "scriptName": "string",
    "scriptArgs": {},
    "callbackUrl": "string",
    "firstPhaseWidth": 0,
    "firstPhaseHeight": 0,
    "highDefinitionRepairScale": 1,
    "highDefinitionRepairEnlarger": "None",
    "highDefinitionRepairPostSteps": 0,
    "highDefinitionRepairImageWidth": 0,
    "highDefinitionRepairImageHeight": 0,
    "highDefinitionRepairSamplerName": "string",
    "highDefinitionRepairPrompt": "string",
    "highDefinitionRepairNegativePrompt": "string",
    "saasDrawingExternalBaseParameterBO": {
        "baseModelCode": "string",
        "vaeName": "string",
        "businessTaskId": "string",
        "targetImageFormat": "string",
        "saasDrawingOverrideSettingParameterBO": {
            "clipSkipLayers": 1
        },
        "saasDrawingADetailerPluginBO": {
            "saasDrawingADetailerPluginParameterBOS": [
                {
                    "enablePlugin": false,
                    "modelName": "string",
                    "prompt": "string",
                    "negativePrompt": "string",
                    "confidenceThreshold": 0.3,
                    "maskAreaMinRatio": 0,
                    "maskAreaMaxRatio": 0,
                    "imageExpansionPixel": 4,
                    "maskOffsetOfXAxis": 0,
                    "maskOffsetOfYAxis": 0,
                    "maskMergeMode": "None",
                    "maskFuzzyBoundaryPixel": 4,
                    "reductionNoiseStrength": 0.4,
                    "repairSourceImageMask": false,
                    "repairSourceImageMaskAreaPixel": 32,
                    "useRepairedImageScaleSwitch": false,
                    "repairedImageWidth": 512,
                    "repairedImageHeight": 512,
                    "usePluginGenerateStep": true,
                    "generateStep": 28,
                    "usePluginPromptGuidanceFactor": true,
                    "promptGuidanceFactor": 7,
                    "usePluginSampler": true,
                    "sampler": "string",
                    "usePluginNoiseMultiplier": true,
                    "noiseMultiplier": 1,
                    "userPluginClipSkipLayers": true,
                    "clipSkipLayers": 1,
                    "enablePluginRestoreFace": true,
                    "controlNetModel": "string",
                    "controlNetModule": "string",
                    "controlNetWeight": 1,
                    "startGuidanceStep": 0,
                    "endGuidanceStep": 1
                }
            ]
        },
        "saasDrawingControlPluginBO": {
            "saasDrawingControlPluginParameterBOS": [
                {
                    "controlImageUrl": "string",
                    "enabled": false,
                    "module": "string",
                    "model": "string",
                    "weight": 0.7,
                    "imageResize": "string",
                    "reduceVideoMemoryUsage": true,
                    "processorReSize": 512,
                    "thresholdA": 0,
                    "thresholdB": 0,
                    "guidanceStart": 0,
                    "guidanceEnd": 1,
                    "pixelPerfect": true,
                    "controlMode": "string",
                    "inputMode": "string",
                    "batchImages": "string",
                    "loopback": true
                }
            ]
        }
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": "200",
    "msg": "success",
    "data": {
        "saasTaskId": "pro-81345367887345"
    }
}
修改于 2024-10-18 07:59:23
上一页
sd 文生图-v2
下一页
sd 图生图-v2
Built with