zf-kbot/seedvr2
Public
24.2K
runs
Run zf-kbot/seedvr2 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 |
|---|---|---|---|
| input_image |
string
|
An input image
|
|
| resize |
boolean
|
False
|
Whether to resize the input image
|
| resize_width |
integer
|
512
|
Width for resizing the image
|
| resize_height |
integer
|
512
|
Height for resizing the image
|
| blocks_to_swap |
None
|
0
|
Number of blocks to swap in the model
|
| seed |
integer
|
-1
|
随机种子,-1 表示随机
|
| resolution |
integer
|
2048
|
Output resolution for upscaling
|
| max_resolution |
integer
|
0
|
Maximum resolution limit (0 for no limit)
|
| output_ext |
None
|
.jpg
|
Output image extension
|
| quality |
integer
|
90
|
Output image quality (1-100)
|
{
"type": "object",
"title": "Input",
"required": [
"input_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 5,
"description": "\u968f\u673a\u79cd\u5b50\uff0c-1 \u8868\u793a\u968f\u673a"
},
"resize": {
"type": "boolean",
"title": "Resize",
"default": false,
"x-order": 1,
"description": "Whether to resize the input image"
},
"quality": {
"type": "integer",
"title": "Quality",
"default": 90,
"x-order": 9,
"description": "Output image quality (1-100)"
},
"output_ext": {
"enum": [
".png",
".webp",
".jpg"
],
"type": "string",
"title": "output_ext",
"description": "Output image extension",
"default": ".jpg",
"x-order": 8
},
"resolution": {
"type": "integer",
"title": "Resolution",
"default": 2048,
"x-order": 6,
"description": "Output resolution for upscaling"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 0,
"description": "An input image"
},
"resize_width": {
"type": "integer",
"title": "Resize Width",
"default": 512,
"x-order": 2,
"description": "Width for resizing the image"
},
"resize_height": {
"type": "integer",
"title": "Resize Height",
"default": 512,
"x-order": 3,
"description": "Height for resizing the image"
},
"blocks_to_swap": {
"enum": [
0,
32
],
"type": "integer",
"title": "blocks_to_swap",
"description": "Number of blocks to swap in the model",
"default": 0,
"x-order": 4
},
"max_resolution": {
"type": "integer",
"title": "Max Resolution",
"default": 0,
"x-order": 7,
"description": "Maximum resolution limit (0 for no limit)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}