replicate/qwen-image-2.1-lora

Run Qwen Image 2.1 with your own custom LoRAs

Public
3 runs

Run replicate/qwen-image-2.1-lora 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
Image generation or editing prompt
negative_prompt
string
Negative prompt; used when guidance is greater than 1
image
string
Optional reference image for editing
reference_images
array
Additional reference images, up to ten total
aspect_ratio
None
1:1
Output aspect ratio
width
integer
Custom output width, a multiple of 32
height
integer
Custom output height, a multiple of 32
num_inference_steps
integer
40

Min: 1

Max: 100

Denoising steps
guidance_scale
number
1

Min: 1

Max: 10

True CFG scale; 1 disables classifier-free guidance
num_outputs
integer
1

Min: 1

Max: 4

Number of images
seed
integer

Max: 2147483647

Random seed
lora
string
SimpleTuner LoRA safetensors URL or local path
lora_scale
number
1

Min: -3

Max: 3

Primary LoRA strength
lora_2
string
Optional second LoRA
lora_2_scale
number
1

Min: -3

Max: 3

Second LoRA strength
use_kv_cache
boolean
True
Reuse text and condition-image prefix keys and values
output_format
None
png
Output format
output_quality
integer
95

Min: 1

Max: 100

WebP quality

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"
}