zf-kbot/md-me-image-llada
Fast LLaDA Image Turbo FP8 generation and editing with an optimized text encoder
Run zf-kbot/md-me-image-llada 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
|
Describe the image, or the changes to make to the input image.
|
|
| input_image |
string
|
Optional reference image for editing.
|
|
| aspect_ratio |
None
|
auto
|
auto follows the input image, or uses 1:1 for text-to-image. Explicit ratios center-crop editing references.
|
| resolution_mode |
None
|
longest_edge
|
longest_edge produces a 1024px longest edge; megapixels uses the selected area.
|
| megapixels |
number
|
1
Min: 0.5 Max: 2 |
Target output megapixels; ignored in longest_edge mode. High resolutions use CPU offload and take longer.
|
| steps |
None
|
4
|
Number of sampling steps.
|
| seed |
integer
|
Max: 2147483647 |
Random seed. Empty chooses a new seed.
|
| file_format |
None
|
jpg
|
Output image format.
|
{
"type": "object",
"title": "Input",
"required": [
"apikey",
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 2147483647,
"minimum": 0,
"x-order": 7,
"nullable": true,
"description": "Random seed. Empty chooses a new seed."
},
"steps": {
"enum": [
2,
4,
6
],
"type": "integer",
"title": "steps",
"description": "Number of sampling steps.",
"default": 4,
"x-order": 6
},
"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": "Describe the image, or the changes to make to the input image."
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 1,
"maximum": 2,
"minimum": 0.5,
"x-order": 5,
"description": "Target output megapixels; ignored in longest_edge mode. High resolutions use CPU offload and take longer."
},
"file_format": {
"enum": [
"jpg",
"png"
],
"type": "string",
"title": "file_format",
"description": "Output image format.",
"default": "jpg",
"x-order": 8
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 2,
"nullable": true,
"description": "Optional reference image for editing."
},
"aspect_ratio": {
"enum": [
"auto",
"1:1",
"4:3",
"3:4",
"3:2",
"2:3",
"16:9",
"9:16",
"21:9",
"9:21"
],
"type": "string",
"title": "aspect_ratio",
"description": "auto follows the input image, or uses 1:1 for text-to-image. Explicit ratios center-crop editing references.",
"default": "auto",
"x-order": 3
},
"resolution_mode": {
"enum": [
"longest_edge",
"megapixels"
],
"type": "string",
"title": "resolution_mode",
"description": "longest_edge produces a 1024px longest edge; megapixels uses the selected area.",
"default": "longest_edge",
"x-order": 4
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}