POST
/stable-diffusion/image2image
curl \
-X POST http://api.trentaml.com/stable-diffusion/image2image \
-H "Content-Type: multipart/form-data" \
-H "token: DuFCaWVGaYuTUrVTMigC" \
-F 'data={"model":"string","scheduler":"","controlnet":"","lora":"","upscaler":"","face_enhancer":"","prompt_enhancer":"","prompt_extra":"","prompt":"string","negative_prompt":"string","height":512,"width":512,"seed":-1,"strength":0.8,"num_inference_steps":20,"guidance_scale":7.5,"num_images_per_prompt":1}' \
-F "init_image=@file"
Request example
# Headers
token: DuFCaWVGaYuTUrVTMigC
# Payload
{
"data": {
"model": "string",
"scheduler": "",
"controlnet": "",
"lora": "",
"upscaler": "",
"face_enhancer": "",
"prompt_enhancer": "",
"prompt_extra": "",
"prompt": "string",
"negative_prompt": "string",
"height": 512,
"width": 512,
"seed": -1,
"strength": 0.8,
"num_inference_steps": 20,
"guidance_scale": 7.5,
"num_images_per_prompt": 1
},
"init_image": "@file"
}
Request examples
# Headers
token: DuFCaWVGaYuTUrVTMigC
# Payload
{
"data": {
"model": "string",
"scheduler": "",
"controlnet": "",
"lora": "",
"upscaler": "",
"face_enhancer": "",
"prompt_enhancer": "",
"prompt_extra": "",
"prompt": "string",
"negative_prompt": "string",
"height": 512,
"width": 512,
"seed": -1,
"strength": 0.8,
"num_inference_steps": 20,
"guidance_scale": 7.5,
"num_images_per_prompt": 1
},
"init_image": "@file"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}