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
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 11,
"description": "generator seed"
},
"width": {
"type": "integer",
"title": "Width",
"default": 864,
"x-order": 5,
"description": "width, default 640"
},
"height": {
"type": "integer",
"title": "Height",
"default": 1080,
"x-order": 6,
"description": "width, default 800"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 2,
"description": "prompt"
},
"cfg_scale": {
"type": "number",
"title": "Cfg Scale",
"default": 1.5,
"x-order": 8,
"description": "cfg_scale default 1.5"
},
"batch_size": {
"type": "integer",
"title": "Batch Size",
"default": 1,
"x-order": 4,
"description": "batch_size, default 1"
},
"request_id": {
"type": "string",
"title": "Request Id",
"default": "",
"x-order": 1,
"description": "request_id"
},
"source_image": {
"type": "string",
"title": "Source Image",
"format": "uri",
"x-order": 0,
"description": "source image"
},
"sampling_steps": {
"type": "integer",
"title": "Sampling Steps",
"default": 7,
"x-order": 7,
"description": "sampling_steps, default 7"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 3,
"description": "negative_prompt"
},
"sampling_method": {
"enum": [
"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"
],
"type": "string",
"title": "sampling_method",
"description": "sampling_method, default Euler A",
"default": "Euler A",
"x-order": 9
},
"denoising_strength": {
"type": "number",
"title": "Denoising Strength",
"default": 0.15,
"x-order": 12,
"description": "denoising strength default 0.15"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": true,
"x-order": 10,
"description": "prompt"
}
}
}
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"
}