Skip to main content

Model Switch

Model Switch allows you to change the human in the picture to another person via a prompt.

Tip
  • Mention the facial characterictics you would like
  • Give simple prompts
ImagePipeline-Post
https://api.imagepipeline.io/modelswitch/v1
ImagePipeline-Auth
API-Key


{
"input_image": "https://f005.backblazeb2.com/file/imageai-model-images/lav-min.png",
"prompt": "green eyed blonde woman, caucasian"
}
Lightning sdxl model image pipeline

Status

Your response will include a status.

  • If the status = SUCCESS, you will also have download_urls that will have the links to your generated image based on the number of samples you have entered. The maximum number of samples that can be generated is 4.
  • If the status = PENDING, you will receive a id. You can use the status endpoint to fetch your image using the id.
  • If the status = FAILURE, you will receive only an error message.

Endpoint: [GET]

  • https://api.imagepipeline.io/modelswitch/v1/status/{{id}}

Pass the API-Key as the authorization in the header.