Create an image based on another one

Send an image and a text to guide the AI on the result you want to achieve.

Use case example

  • - Redecorate a home with new interior design
  • - Change a character's clothes
  • - Create new characters for a book

Model detail

  • - Kandinsky 2.2 Depth

Added by: APIForAI

Price per call≈ 0.02

License Github

Try it nowAPI information

Try it

Examples

Input

Image
{
"input":{
"image":"https://rbqktisnztholqojxlaf.s..."
"prompt":"A bear"
"negative_prompt":"lowres, text, error, cropped, ..."
"task":"img2img"
"width":768
"height":768
"num_inference_steps":75
"num_outputs":1
"seed":3865
}
"id":82
}

Output

Image
{
"status":"succeeded"
"output":[
0:"https://rbqktisnztholqojxlaf.s..."
]
"prediction_time":8.625029
}

Input

Image
{
"input":{
"image":"https://rbqktisnztholqojxlaf.s..."
"prompt":"Nice living room, blue sofa"
"negative_prompt":"lowres, text, error, cropped, ..."
"task":"img2img"
"width":768
"height":768
"num_inference_steps":75
"num_outputs":1
"seed":2035
}
"id":82
}

Output

Image
{
"status":"succeeded"
"output":[
0:"https://rbqktisnztholqojxlaf.s..."
]
"prediction_time":8.360581
}

API Information

Input description

image uri

Input image

prompt string

Input prompt

Default value: A robot, 4k photo

negative_prompt string

Specify things to not see in the output

Default value: lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature

task string

An enumeration.

Default value: img2img

Enum values: img2img, text2img

width integer

An enumeration.

Default value: 768

Enum values: 384, 512, 576, 640, 704, 768, 960, 1024, 1152, 1280, 1536, 1792, 2048

height integer

An enumeration.

Default value: 768

Enum values: 384, 512, 576, 640, 704, 768, 960, 1024, 1152, 1280, 1536, 1792, 2048

num_inference_steps integer

Number of denoising steps

Default value: 75

num_outputs integer

Number of images to output.

Default value: 1

seed integer

Random seed. Leave blank to randomize the seed

Output JSON Schema

This represents the JSON schema that details the structure of the model's output.

{
"type":"array"
"items":{
"type":"string"
"format":"uri"
}
"title":"Output"
}

APIForAI

Build fast by accessing AI models easily