vetkastar
/
image_to_zip
- Public
- 112.4K runs
Run vetkastar/image_to_zip 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 |
---|---|---|---|
image |
string
|
Path to the image. The image will be saved with the name 'image' and the selected format.
|
|
mask |
string
|
Path to the mask. The mask will be saved with the name 'mask' and the selected format.
|
|
controlnet1 |
string
|
Path to the first Control Net image. The image will be saved with the name 'controlnet1' and the selected format.
|
|
controlnet2 |
string
|
Path to the second Control Net image. The image will be saved with the name 'controlnet2' and the selected format.
|
|
controlnet3 |
string
|
Path to the third Control Net image. The image will be saved with the name 'controlnet3' and the selected format.
|
|
array |
string
|
JSON string containing an array of image URLs for downloading and archiving. Images will be saved with their original filenames and the selected format.
|
|
target_format |
string
(enum)
|
PNG
Options: PNG, JPEG, WEBP |
Select the target image format. Supported formats: PNG, JPEG, WEBP.
|
{
"type": "object",
"title": "Input",
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 1,
"description": "Path to the mask. The mask will be saved with the name 'mask' and the selected format."
},
"array": {
"type": "string",
"title": "Array",
"x-order": 5,
"description": "JSON string containing an array of image URLs for downloading and archiving. Images will be saved with their original filenames and the selected format."
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Path to the image. The image will be saved with the name 'image' and the selected format."
},
"controlnet1": {
"type": "string",
"title": "Controlnet1",
"format": "uri",
"x-order": 2,
"description": "Path to the first Control Net image. The image will be saved with the name 'controlnet1' and the selected format."
},
"controlnet2": {
"type": "string",
"title": "Controlnet2",
"format": "uri",
"x-order": 3,
"description": "Path to the second Control Net image. The image will be saved with the name 'controlnet2' and the selected format."
},
"controlnet3": {
"type": "string",
"title": "Controlnet3",
"format": "uri",
"x-order": 4,
"description": "Path to the third Control Net image. The image will be saved with the name 'controlnet3' and the selected format."
},
"target_format": {
"enum": [
"PNG",
"JPEG",
"WEBP"
],
"type": "string",
"title": "target_format",
"description": "Select the target image format. Supported formats: PNG, JPEG, WEBP.",
"default": "PNG",
"x-order": 6
}
}
}
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"
}