Replace elements in an image by another one

Target an object and ask for another one

Use case example

  • - Creative photo
  • - Pictures to be adapted for you blog articles

Added by: APIForAI

Price per call≈ 0.18

Paper Github

Try it nowAPI information

Try it

Examples

Input

Image
{
"input":{
"input_image":"https://rbqktisnztholqojxlaf.s..."
"concept_to_add":"a banana"
"guidance_scale":15
"concept_to_remove":"a car"
"neg_guidance_scale":7
"num_diffusion_steps":100
"target_prompt":
"target_guidance_scale":20
"skip_steps":36
"seed":1041
}
"id":81
}

Output

Image
{
"status":"succeeded"
"output":"https://rbqktisnztholqojxlaf.s..."
"prediction_time":87.241668
}

API Information

Input description

input_image* uri

Input image

concept_to_add string

concept to add in the target image

guidance_scale number

guidance scale to add the above concept

Default value: 15

concept_to_remove string

concept to remove from the original image

neg_guidance_scale number

guidance scale to remove the above concept

Default value: 7

num_diffusion_steps integer

number of diffusion steps

Default value: 100

target_prompt string

DDPM Inversion Prompt. Can help with global changes, modify to what you would like to see.

target_guidance_scale number

guidance scale for the target_prompt provided above

Default value: 20

skip_steps integer

DDPM denoising steps to skip

Default value: 36

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":"string"
"title":"Output"
"format":"uri"
}

APIForAI

Build fast by accessing AI models easily