zf-kbot/seedvr2
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
|
输入图像
|
|
| ttp_switch |
boolean
|
False
|
是否分片
|
| target_megapixels |
number
|
3.6
Min: 1 Max: 100 |
目标像素(百万像素)
|
| tiles_per_row |
integer
|
3
Min: 1 Max: 10 |
每行分片数量
|
| tile_overlap_pixels |
integer
|
64
Max: 256 |
分片后组合重叠像素
|
| tile_resolution |
integer
|
1536
Min: 512 Max: 4096 |
分片图片短边放大后的分辨率
|
| seed |
integer
|
4
|
随机种子,-1 表示随机
|
| pre_upscale_factor |
number
|
0.1
Min: 0.05 Max: 1 |
放大前缩放倍数
|
| output_ext |
None
|
.jpg
|
输出图像格式
|
| quality |
integer
|
90
Min: 1 Max: 100 |
输出图像质量 (1-100)
|
| encode_tiled |
boolean
|
False
|
VAE 编码是否分片
|
| encode_tile_size |
integer
|
1024
Min: 512 Max: 2048 |
VAE 编码分片大小
|
| encode_tile_overlap |
integer
|
128
Max: 256 |
VAE 编码分片重叠
|
| decode_tiled |
boolean
|
True
|
VAE 解码是否分片
|
| decode_tile_size |
integer
|
1024
Min: 512 Max: 2048 |
VAE 解码分片大小
|
| decode_tile_overlap |
integer
|
128
Max: 256 |
VAE 解码分片重叠
|
| swap_io_components |
boolean
|
False
|
是否交换 IO 组件
|
| blocks_to_swap |
None
|
0
|
要交换的块数量,0/32
|
{
"type": "object",
"title": "Input",
"required": [
"input_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 4,
"x-order": 6,
"description": "\u968f\u673a\u79cd\u5b50\uff0c-1 \u8868\u793a\u968f\u673a"
},
"quality": {
"type": "integer",
"title": "Quality",
"default": 90,
"maximum": 100,
"minimum": 1,
"x-order": 9,
"description": "\u8f93\u51fa\u56fe\u50cf\u8d28\u91cf (1-100)"
},
"output_ext": {
"enum": [
".png",
".webp",
".jpg"
],
"type": "string",
"title": "output_ext",
"description": "\u8f93\u51fa\u56fe\u50cf\u683c\u5f0f",
"default": ".jpg",
"x-order": 8
},
"ttp_switch": {
"type": "boolean",
"title": "Ttp Switch",
"default": false,
"x-order": 1,
"description": "\u662f\u5426\u5206\u7247"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 0,
"description": "\u8f93\u5165\u56fe\u50cf"
},
"decode_tiled": {
"type": "boolean",
"title": "Decode Tiled",
"default": true,
"x-order": 13,
"description": "VAE \u89e3\u7801\u662f\u5426\u5206\u7247"
},
"encode_tiled": {
"type": "boolean",
"title": "Encode Tiled",
"default": false,
"x-order": 10,
"description": "VAE \u7f16\u7801\u662f\u5426\u5206\u7247"
},
"tiles_per_row": {
"type": "integer",
"title": "Tiles Per Row",
"default": 3,
"maximum": 10,
"minimum": 1,
"x-order": 3,
"description": "\u6bcf\u884c\u5206\u7247\u6570\u91cf"
},
"blocks_to_swap": {
"enum": [
0,
32
],
"type": "integer",
"title": "blocks_to_swap",
"description": "\u8981\u4ea4\u6362\u7684\u5757\u6570\u91cf\uff0c0/32",
"default": 0,
"x-order": 17
},
"tile_resolution": {
"type": "integer",
"title": "Tile Resolution",
"default": 1536,
"maximum": 4096,
"minimum": 512,
"x-order": 5,
"description": "\u5206\u7247\u56fe\u7247\u77ed\u8fb9\u653e\u5927\u540e\u7684\u5206\u8fa8\u7387"
},
"decode_tile_size": {
"type": "integer",
"title": "Decode Tile Size",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 14,
"description": "VAE \u89e3\u7801\u5206\u7247\u5927\u5c0f"
},
"encode_tile_size": {
"type": "integer",
"title": "Encode Tile Size",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 11,
"description": "VAE \u7f16\u7801\u5206\u7247\u5927\u5c0f"
},
"target_megapixels": {
"type": "number",
"title": "Target Megapixels",
"default": 3.6,
"maximum": 100,
"minimum": 1,
"x-order": 2,
"description": "\u76ee\u6807\u50cf\u7d20\uff08\u767e\u4e07\u50cf\u7d20\uff09"
},
"pre_upscale_factor": {
"type": "number",
"title": "Pre Upscale Factor",
"default": 0.1,
"maximum": 1,
"minimum": 0.05,
"x-order": 7,
"description": "\u653e\u5927\u524d\u7f29\u653e\u500d\u6570"
},
"swap_io_components": {
"type": "boolean",
"title": "Swap Io Components",
"default": false,
"x-order": 16,
"description": "\u662f\u5426\u4ea4\u6362 IO \u7ec4\u4ef6"
},
"decode_tile_overlap": {
"type": "integer",
"title": "Decode Tile Overlap",
"default": 128,
"maximum": 256,
"minimum": 0,
"x-order": 15,
"description": "VAE \u89e3\u7801\u5206\u7247\u91cd\u53e0"
},
"encode_tile_overlap": {
"type": "integer",
"title": "Encode Tile Overlap",
"default": 128,
"maximum": 256,
"minimum": 0,
"x-order": 12,
"description": "VAE \u7f16\u7801\u5206\u7247\u91cd\u53e0"
},
"tile_overlap_pixels": {
"type": "integer",
"title": "Tile Overlap Pixels",
"default": 64,
"maximum": 256,
"minimum": 0,
"x-order": 4,
"description": "\u5206\u7247\u540e\u7ec4\u5408\u91cd\u53e0\u50cf\u7d20"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}