zf-kbot/md-me-image-qwen
Public
124.1K
runs
Run zf-kbot/md-me-image-qwen 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 |
|---|---|---|---|
| apikey |
string
|
Access key.
|
|
| prompt |
string
|
Text instruction or text-to-image prompt.
|
|
| input_image |
string
|
Primary image for edit mode.
|
|
| ref_image |
string
|
Optional second reference image.
|
|
| megapixels |
number
|
1
Min: 0.5 Max: 4 |
Output megapixels when resolution_mode is megapixels; ignored in longest_edge mode.
|
| seed |
integer
|
Random seed. Empty chooses a new seed.
|
|
| file_format |
None
|
jpg
|
Requested output format.
|
| resolution_mode |
None
|
longest_edge
|
longest_edge: resize each reference and output to the selected longest_edge (small images are upscaled). megapixels: use the previous area-based mode. Output shape follows aspect_ratio.
|
| aspect_ratio |
None
|
default
|
Output aspect ratio. default follows input_image, or uses 1:1 for text-to-image. Applies in both resolution modes.
|
| longest_edge |
integer
|
1024
Min: 1024 Max: 2560 |
Longest edge in pixels for output and each reference when resolution_mode is longest_edge; ignored in megapixels mode.
|
{
"type": "object",
"title": "Input",
"required": [
"apikey",
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 5,
"nullable": true,
"description": "Random seed. Empty chooses a new seed."
},
"apikey": {
"type": "string",
"title": "Apikey",
"format": "password",
"x-order": 0,
"writeOnly": true,
"description": "Access key.",
"x-cog-secret": true
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 1,
"description": "Text instruction or text-to-image prompt."
},
"ref_image": {
"type": "string",
"title": "Ref Image",
"format": "uri",
"x-order": 3,
"nullable": true,
"description": "Optional second reference image."
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 1,
"maximum": 4,
"minimum": 0.5,
"x-order": 4,
"description": "Output megapixels when resolution_mode is megapixels; ignored in longest_edge mode."
},
"file_format": {
"enum": [
"jpg",
"png"
],
"type": "string",
"title": "file_format",
"description": "Requested output format.",
"default": "jpg",
"x-order": 6
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 2,
"nullable": true,
"description": "Primary image for edit mode."
},
"aspect_ratio": {
"enum": [
"default",
"1:1",
"3:2",
"2:3",
"4:3",
"3:4",
"16:9",
"9:16",
"21:9",
"9:21"
],
"type": "string",
"title": "aspect_ratio",
"description": "Output aspect ratio. default follows input_image, or uses 1:1 for text-to-image. Applies in both resolution modes.",
"default": "default",
"x-order": 8
},
"longest_edge": {
"type": "integer",
"title": "Longest Edge",
"default": 1024,
"maximum": 2560,
"minimum": 1024,
"x-order": 9,
"description": "Longest edge in pixels for output and each reference when resolution_mode is longest_edge; ignored in megapixels mode."
},
"resolution_mode": {
"enum": [
"longest_edge",
"megapixels"
],
"type": "string",
"title": "resolution_mode",
"description": "longest_edge: resize each reference and output to the selected longest_edge (small images are upscaled). megapixels: use the previous area-based mode. Output shape follows aspect_ratio.",
"default": "longest_edge",
"x-order": 7
}
}
}
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"
}