yan-ops / ai_img2img

  • Public
  • 3K runs

Run yan-ops/ai_img2img with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
source_image
string
source image
request_id
string
request_id
prompt
string
prompt
negative_prompt
string
negative_prompt
batch_size
integer
1
batch_size, default 1
width
integer
864
width, default 640
height
integer
1080
width, default 800
sampling_steps
integer
7
sampling_steps, default 7
cfg_scale
number
1.5
cfg_scale default 1.5
sampling_method
string (enum)
Euler A

Options:

DPM++ 2M, DPM++ 2M Karras, DPM++ 2M SDE, DPM++ 2M SDE Karras, DPM++ SDE, DPM++ SDE Karras, Euler A, Euler, LCM, LMS Karras, DPM++ 3M SDE Karras

sampling_method, default Euler A
disable_safety_checker
boolean
True
prompt
seed
integer
generator seed
denoising_strength
number
0.15
denoising strength default 0.15

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}