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
- Input
- Output
https://api.imagepipeline.io/modelswitch/v1
API-Key
{
"input_image": "https://f005.backblazeb2.com/file/imageai-model-images/lav-min.png",
"prompt": "green eyed blonde woman, caucasian"
}
https://api.imagepipeline.io/modelswitch/v1/status/{{id}}
API-Key
{
"download_urls": [
"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?..."
],
"status": "SUCCESS"
}
Status
Your response will include a status
.
- If the
status
=SUCCESS
, you will also havedownload_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 aid
. You can use the status endpoint to fetch your image using theid
. - 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.