zf-kbot/qwen-edit
Public
815.4K
runs
Run zf-kbot/qwen-edit 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
|
Input image for editing
|
|
| prompt |
string
|
修复破损、污渍、划痕
|
Positive prompt for the image editing
|
| negative_prompt |
string
|
|
Negative prompt for the image editing
|
| megapixels |
number
|
1
|
Target megapixels for scaling
|
| image_width |
integer
|
1280
|
Image width
|
| image_height |
integer
|
720
|
Image height
|
| enable_manual_image_size_switch |
boolean
|
False
|
Enable manual image size switch
|
| enable_multi_image_edit |
boolean
|
False
|
Enable multi-image editing mode (uses both input image and reference if applicable)
|
| ref_image |
string
|
Reference image for multi-image editing (required if enable_multi_image_edit is True)
|
|
| seed |
integer
|
-1
|
Random seed, -1 for random
|
| steps |
integer
|
4
|
Number of steps for the image editing
|
| website_name |
string
|
ImgUpscaler.AI
|
Website name for filename suffix
|
| image_filename |
string
|
output
|
Custom filename for the output (without extension)
|
| color_match_switch |
boolean
|
False
|
Enable color matching
|
| output_ext |
None
|
.jpg
|
Output image extension
|
| quality |
integer
|
90
Min: 1 Max: 100 |
Output image quality (1-100)
|
| apikey |
string
|
|
API Key
|
{
"type": "object",
"title": "Input",
"required": [
"input_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 9,
"description": "Random seed, -1 for random"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 4,
"x-order": 10,
"description": "Number of steps for the image editing"
},
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 16,
"description": "API Key"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "\u4fee\u590d\u7834\u635f\u3001\u6c61\u6e0d\u3001\u5212\u75d5",
"x-order": 1,
"description": "Positive prompt for the image editing"
},
"quality": {
"type": "integer",
"title": "Quality",
"default": 90,
"maximum": 100,
"minimum": 1,
"x-order": 15,
"description": "Output image quality (1-100)"
},
"ref_image": {
"type": "string",
"title": "Ref Image",
"format": "uri",
"x-order": 8,
"nullable": true,
"description": "Reference image for multi-image editing (required if enable_multi_image_edit is True)"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 1,
"x-order": 3,
"description": "Target megapixels for scaling"
},
"output_ext": {
"enum": [
".jpg",
".png",
".webp"
],
"type": "string",
"title": "output_ext",
"description": "Output image extension",
"default": ".jpg",
"x-order": 14
},
"image_width": {
"type": "integer",
"title": "Image Width",
"default": 1280,
"x-order": 4,
"description": "Image width"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 0,
"description": "Input image for editing"
},
"image_height": {
"type": "integer",
"title": "Image Height",
"default": 720,
"x-order": 5,
"description": "Image height"
},
"website_name": {
"type": "string",
"title": "Website Name",
"default": "ImgUpscaler.AI",
"x-order": 11,
"description": "Website name for filename suffix"
},
"image_filename": {
"type": "string",
"title": "Image Filename",
"default": "output",
"x-order": 12,
"description": "Custom filename for the output (without extension)"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 2,
"description": "Negative prompt for the image editing"
},
"color_match_switch": {
"type": "boolean",
"title": "Color Match Switch",
"default": false,
"x-order": 13,
"description": "Enable color matching"
},
"enable_multi_image_edit": {
"type": "boolean",
"title": "Enable Multi Image Edit",
"default": false,
"x-order": 7,
"description": "Enable multi-image editing mode (uses both input image and reference if applicable)"
},
"enable_manual_image_size_switch": {
"type": "boolean",
"title": "Enable Manual Image Size Switch",
"default": false,
"x-order": 6,
"description": "Enable manual image size switch"
}
}
}
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"
}