andyx1976/qwenunif
Public
8
runs
Run andyx1976/qwenunif 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 |
|---|---|---|---|
| prompt |
string
|
Prompt for generated image
|
|
| enhance_prompt |
boolean
|
False
|
Append a high-detail suffix to the prompt.
|
| lora_weights |
string
|
Load LoRA weights. Supports local .safetensors paths or ZIPs produced by cog train.
|
|
| replicate_weights |
string
|
LoRA ZIP generated by cog train (alternate to lora_weights).
|
|
| lora_scale |
number
|
1
|
Determines how strongly the loaded LoRA should be applied.
|
| image |
string
|
Optional guide image for img2img.
|
|
| strength |
number
|
0.9
Max: 1 |
Strength for img2img pipeline
|
| negative_prompt |
string
|
|
Negative prompt for generated image
|
| aspect_ratio |
None
|
16:9
|
Aspect ratio for the generated image
|
| image_size |
None
|
optimize_for_quality
|
Image size preset (quality = larger, speed = faster).
|
| go_fast |
boolean
|
True
|
Run faster predictions with aggressive caching.
|
| num_inference_steps |
integer
|
30
Min: 1 Max: 50 |
Number of denoising steps (1–50).
|
| guidance |
number
|
3
Max: 10 |
Guidance for generated image (0-10).
|
| seed |
integer
|
Random seed. Leave blank for random.
|
|
| output_format |
None
|
webp
|
Format of the output images
|
| output_quality |
integer
|
80
Max: 100 |
Quality when saving lossy images (0-100).
|
| disable_safety_checker |
boolean
|
False
|
Disable safety checker (not used).
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 13,
"nullable": true,
"description": "Random seed. Leave blank for random."
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 5,
"nullable": true,
"description": "Optional guide image for img2img."
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Prompt for generated image"
},
"go_fast": {
"type": "boolean",
"title": "Go Fast",
"default": true,
"x-order": 10,
"description": "Run faster predictions with aggressive caching."
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 3,
"maximum": 10,
"minimum": 0,
"x-order": 12,
"description": "Guidance for generated image (0-10)."
},
"strength": {
"type": "number",
"title": "Strength",
"default": 0.9,
"maximum": 1,
"minimum": 0,
"x-order": 6,
"description": "Strength for img2img pipeline"
},
"image_size": {
"enum": [
"optimize_for_quality",
"optimize_for_speed"
],
"type": "string",
"title": "image_size",
"description": "Image size preset (quality = larger, speed = faster).",
"default": "optimize_for_quality",
"x-order": 9
},
"lora_scale": {
"type": "number",
"title": "Lora Scale",
"default": 1,
"x-order": 4,
"description": "Determines how strongly the loaded LoRA should be applied."
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"3:2",
"2:3"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio for the generated image",
"default": "16:9",
"x-order": 8
},
"lora_weights": {
"type": "string",
"title": "Lora Weights",
"x-order": 2,
"nullable": true,
"description": "Load LoRA weights. Supports local .safetensors paths or ZIPs produced by cog train."
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output images",
"default": "webp",
"x-order": 14
},
"enhance_prompt": {
"type": "boolean",
"title": "Enhance Prompt",
"default": false,
"x-order": 1,
"description": "Append a high-detail suffix to the prompt."
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 15,
"description": "Quality when saving lossy images (0-100)."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": " ",
"x-order": 7,
"description": "Negative prompt for generated image"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 30,
"maximum": 50,
"minimum": 1,
"x-order": 11,
"description": "Number of denoising steps (1\u201350)."
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 16,
"description": "Disable safety checker (not used)."
}
}
}
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"
}