zf-kbot/md-me-qwen-v21-l40s
Public
12
runs
Run zf-kbot/md-me-qwen-v21-l40s 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. Omit both images for text-to-image.
|
|
| ref_image |
string
|
Optional second reference image. Requires input_image. Use <image1> and <image2> in instructions to identify image roles.
|
|
| megapixels |
number
|
1
Min: 0.5 Max: 4 |
Generation area budget in megapixels; dimensions are aligned to 32 and edit sizes follow BlueBox buckets.
|
| seed |
integer
|
Max: 9007199254740991 |
Random seed. Empty chooses a new seed; zero is a fixed seed.
|
| file_format |
None
|
jpg
|
Requested output format.
|
| aspect_ratio |
None
|
default
|
Default follows the primary image, or square without an image. Explicit edit ratios use center crop, not outpainting.
|
{
"type": "object",
"title": "Input",
"required": [
"apikey",
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 9007199254740991,
"minimum": 0,
"x-order": 5,
"nullable": true,
"description": "Random seed. Empty chooses a new seed; zero is a fixed 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. Requires input_image. Use <image1> and <image2> in instructions to identify image roles."
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 1,
"maximum": 4,
"minimum": 0.5,
"x-order": 4,
"description": "Generation area budget in megapixels; dimensions are aligned to 32 and edit sizes follow BlueBox buckets."
},
"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. Omit both images for text-to-image."
},
"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": "Default follows the primary image, or square without an image. Explicit edit ratios use center crop, not outpainting.",
"default": "default",
"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"
}