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

  • - Renovate a home
  • - Create a building architecture variation

Technical

Controlnet MLSD

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 beautiful living room with a..."
"num_samples":"1"
"image_resolution":"512"
"ddim_steps":20
"scale":9
"seed":9503
"eta":
"a_prompt":"best quality, extremely detail..."
"n_prompt":"longbody, lowres, bad anatomy,..."
"detect_resolution":512
"value_threshold":0.1
"distance_threshold":0.1
}
"id":103
}

Output

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

API Information

Input description

image* uri

Input image

prompt* string

Prompt for the model

num_samples string

An enumeration.

Default value: 1

Enum values: 1, 4

image_resolution string

An enumeration.

Default value: 512

Enum values: 256, 512, 768

ddim_steps integer

Steps

Default value: 20

scale number

Guidance Scale

Default value: 9

seed integer

Seed

eta number

eta (DDIM)

a_prompt string

Added Prompt

Default value: best quality, extremely detailed

n_prompt string

Negative Prompt

Default value: longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality

detect_resolution integer

Resolution for detection (only applicable when model type is 'HED', 'Segmentation', or 'MLSD')

Default value: 512

value_threshold number

Value Threshold (only applicable when model type is 'MLSD')

Default value: 0.1

distance_threshold number

Distance Threshold (only applicable when model type is 'MLSD')

Default value: 0.1

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