Generate WanX Task with LoRA Using PiAPI
We recently introduced the ability to generate WanX tasks using LoRA technology. To help users optimize WanX task creation, we've provided practical examples demonstrating how to construct proper API calls for better information reference.
You could check available Lora List here and here are some use cases for your best reference.Example: Request Body of txt2video-14b-lora Task with LoRA#
{
"model": "Qubico/wanx",
"task_type": "txt2video-14b-lora",
"input": {
"prompt": "video of a young woman with long, dark hair and bangs. She is wearing a light gray t-shirt and appears to be sitting at a table.",
"negative_prompt": "chaotic, distortion, morphing",
"aspect_ratio": "16:9",
"lora_settings": [
{
"lora_type": "ghibli",
"lora_strength": 1.0
}
]
},
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
Particular attention should be paid to the configuration structure of lora_settings:Parameter | Type | Description |
---|
lora_settings | array | An array containing parameters for LoRA invocation |
lora_type | string | Select the LoRA type you need (e.g., ghibli) |
lora_strength | number | Controls the intensity of LoRA's influence (Range: 0.0-1.0) |
"lora_settings": [
{
"lora_type": "ghibli",
"lora_strength": 1.0
}
]
Output Sample#
You could view use cases to learn more about the trigger words, basic param settings and prompt to make a video which may meet your expectations better. Modified at 2025-04-27 01:38:01