PiAPI
HomeWorkspace
HomeWorkspace
Join Discord
  1. WanX
  • Get Started
    • Overview
    • Quickstart
    • Make Instruction: How to Use PiAPI to Build a Workflow on Make?
  • Endpoints
    • Song(Udio)
      • Song API Task Creation Examples
      • [Udio] Song Extend
      • Get Task
      • Create Task
      • [Udio] Generate Lyrics
    • Kling
      • Lipsync With PiAPI Kling API Examples
      • Motion Brush With PiAPI Kling API Example
      • Kling Elements Video Generation API
      • Kling Effects Video Generation
      • Cancel Task
        • Cancel Tasks
        • Cancel Task
      • Get Task
      • Create Task
      • Kling Virtual Try-On
    • Hailuo
      • Hailuo Director Mode Example
      • Generate Video
      • Get Task
    • Flux
      • Flux with LoRA and Controlnet
      • Available LoRA and Controlnet
      • Flux API with Redux Variation, Fill, Inpaint and Outpaint
      • Create Task
        • Text to Image
        • Image to Image
      • Get task
    • AI Hug
      • Get Task
      • Create Task
    • LLM
      • Use Cases for GPT-4o Image API
      • How To Avoid Timeouts in Completion API
      • GPT-4o Image Generation API
      • LLM API | Basic Completions
      • Get Task
    • Midjourney
      • PiAPI Penalties on Midjourney Usage
      • Detailed Explaination on Midjourney Task Result
      • Midjourney V7 API Instructions
      • Create Task
        • Imagine
        • Upscale
        • Variation
        • Reroll
        • Describe
        • Seed
        • Blend
        • Inpaint
        • Outpaint
        • Pan
      • Cancel Task
        • Cancel Task
        • Cancel Tasks
      • Get Task
    • Faceswap
      • Multi Faceswap
      • Image Faceswap
      • Video Faceswap
      • Get Task
    • TTS
      • Zeroshot Text-to-Speech F5-TTS
      • Get Task
    • Trellis
      • Create Task
      • Get Task
    • Luma Dream Machine
      • Cancel Task
        • Cancel Tasks
        • Cancel Task
      • Create Task
      • Get Task
    • WanX
      • Generate WanX Task with LoRA Using PiAPI
      • Available LoRA Types for Wanx
      • Use Cases for Wanx LoRA
      • Use Cases for Wanx Control Camera
      • Create Task
        POST
      • Get Task
        GET
    • Skyreels
      • Create Task
      • Get Task
    • Framepack
      • Create Task
      • Get Task
    • Hunyuan Video
      • How to Make a Hunyuan API Call
      • Get Task
      • Generate Video
    • Mmaudio
      • Get Task
      • Generate Audio
    • DiffRhythm
      • Generate Audio
      • Get Task
    • Tools
      • File Upload API
      • Video Upscale
      • Video Upscale-Get Task
      • Remove Background API
      • Remove Background-Get Task
      • Segment With Prompt API
      • Segment With Prompt API-Get Task
      • Image Upscale(Super Resolution) API
      • Image Upscale-Get Task
    • PiAPI Account Management
      • PiAPI Account Info
      • Task List Info
      • User Task History
  • Resources
    • Change Log
    • Output Storage
    • Unified API Schema
    • Webhook
    • Bulk Generation Service
    • Billings
    • PiAPI MCP Server
    • Workspace Manual
      • Host-your-account (HYA) | Back-up Account
      • Host-your-account (HYA) | Debug Checklist
      • Host-your-account (HYA) | Connected Account Status
    • Announcements
      • PiAPI 2025 January 1st Pricing Update
  • Legacy Documentation
    • Midjourney
      • Midjourney Webhook
      • Imagine
      • Reroll
      • Upscale
      • Variation
      • Inpaint
      • Outpaint
      • Pan
      • Describe
      • Blend
      • Seed
      • Fetch
      • Multi Fetch
      • Cancel
    • Face Swap
      • Video Faceswap
      • Multi-face-swap
      • Fetch
    • Dream Machine
      • Video Generation
      • Video Extend
      • Get Video Generation
    • Kling
      • Video Generation
      • Video Extend
      • Get Video Generation
  1. WanX

Use Cases for Wanx LoRA

In this article, we will introduce PiAPI's LoRA use cases for Wanx, providing API call references.
Key Notes for Implementation:
Trigger keywords for each LoRA (must be included in prompts). Or instructions (better to be included in prompts, usually will be auto added by api service)
Refer to the prompt instruction documentation for parameter tuning guidance.

ghibli#

Prompt Instruction#

Better to have in prompt like: "in the style of Studio Ghibli", "Ghibli style animation"

Example#

{
    "model": "Qubico/wanx",
    "task_type": "txt2video-14b-lora",
    "input": {
        "prompt": "A girl with a playful smile leans forward on the ferry railing, holding onto her sunhat as the wind threatens to carry it away. She looks directly at the camera with bright, excited eyes, her laughter almost visible in her expression. The sun reflects off the sparkling water, and behind her, the coastline of a charming island town approaches. The camera slowly zooms out, capturing the anticipation of arrival.",
        "negative_prompt": "Vivid tones, overexposed, static, unclear details, subtitles, style, work, painting, frame, still, overall grayish, worst quality, low quality, JPEG compression artifacts, ugly, deformed, extra fingers, poorly drawn hands, poorly drawn face, distorted, disfigured, deformed limbs, fused fingers, unmoving frame, cluttered background, three legs, crowded background, people walking backward, 3D, MMD, MikuMikuDance, SFM, Source Filmmaker, Blender, Unity, Unreal, CGI, bad quality",
        "lora_settings": [
            {
                "lora_type": "ghibli"
            }
        ]
    }
}

{
    "model": "Qubico/wanx",
    "task_type": "txt2video-14b-lora",
    "input": {
        "prompt": "A young girl with short brown hair, adorned with a red bow, is seated at a wooden table, appearing surprised or startled. She is wearing a dark blue dress and is holding a fork, seemingly in the middle of eating a piece of food. The table is set with a basket of bread rolls, a plate with a piece of toast and a slice of tomato, a mug with a black cat design, and a bottle of milk. The lighting is soft and warm, creating a cozy atmosphere. The background features dark wooden walls, adding to the intimate and homely setting. The scene is captured in a medium shot, highlighting the girl'\''s facial expression and the details of the breakfast table. The overall atmosphere is warm and inviting, with a sense of everyday life and simplicity.",
        "negative_prompt": "Vivid tones, overexposed, static, unclear details, subtitles, style, work, painting, frame, still, overall grayish, worst quality, low quality, JPEG compression artifacts, ugly, deformed, extra fingers, poorly drawn hands, poorly drawn face, distorted, disfigured, deformed limbs, fused fingers, unmoving frame, cluttered background, three legs, crowded background, people walking backward, 3D, MMD, MikuMikuDance, SFM, Source Filmmaker, Blender, Unity, Unreal, CGI, bad quality",
        "lora_settings": [
            {
                "lora_type": "ghibli"
            }
        ]
    }
}

live-wallpaper#

Prompt Instruction#

The trigger word is: l1v3w4llp4p3r

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "l1v3w4llp4p3r Blonde anime girl sitting on urban steps, leaning back against graffiti-covered walls. Wind slightly ruffles her hair, sun rays shift dynamically, slight breathing motion, live wallpaper effects.",
        "negative_prompt": "Overexposure, static, blurred details, subtitles, paintings, pictures, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, mutilated, redundant fingers, poorly painted hands, poorly painted faces, deformed, disfigured, deformed limbs, fused fingers, cluttered background, three legs, a lot of people in the background, upside down",
        "image": "https://static.piapi.ai/wan-lora/wan21-live-wallpaper-example1.png",
        "lora_settings": [
            {
                "lora_type": "live-wallpaper"
            }
        ]
    }
}

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "l1v3w4llp4p3r Anime girl with white hair, fiery horns, and golden eyes, wearing a traditional outfit, sweat glistening, dynamic close-up perspective, intense expression, slight hair movement, live wallpaper motion effects.",
        "negative_prompt": "Overexposure, static, blurred details, subtitles, paintings, pictures, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, mutilated, redundant fingers, poorly painted hands, poorly painted faces, deformed, disfigured, deformed limbs, fused fingers, cluttered background, three legs, a lot of people in the background, upside down",
        "image": "https://static.piapi.ai/wan-lora/wan21-live-wallpaper-example2.png",
        "lora_settings": [
            {
                "lora_type": "live-wallpaper"
            }
        ]
    }
}

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "l1v3w4llp4p3r Anime boy with white hair on the left, Anime tiger on the right, they are angrily watching each other, sweat glistening, dynamic close-up perspective, intense expression, slight hair movement, live wallpaper motion effects.",
        "negative_prompt": "Overexposure, static, blurred details, subtitles, paintings, pictures, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, mutilated, redundant fingers, poorly painted hands, poorly painted faces, deformed, disfigured, deformed limbs, fused fingers, cluttered background, three legs, a lot of people in the background, upside down",
        "image": "https://static.piapi.ai/wan-lora/wan21-live-wallpaper-example3.png",
        "lora_settings": [
            {
                "lora_type": "live-wallpaper"
            }
        ]
    }
}

pixel-art#

Prompt Instruction#

The trigger word is: p1x3lStyl3

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "This p1x3lStyl3 animation features a character rendered in a pixelated style against a plain white background. The p1x3lStyl3 character initially stands facing forward, wearing her iconic blue shark hoodie with the hood down, showcasing her white and blue p1x3lStyl3 hair and bright blue eyes. Her hands are loosely clenched at her sides, and her blue p1x3lStyl3 shark tail rests behind her. The p1x3lStyl3 animation consists of a subtle loop where she slightly bends her knees, causing her whole p1x3lStyl3 body to dip down slightly. Simultaneously, her p1x3lStyl3 tail gives a small, gentle swish to the side. She then smoothly returns to her original standing pose, ready for the loop to repeat, creating a simple, idle p1x3lStyl3 animation.",
        "image": "https://static.piapi.ai/wan-lora/wan21-pixel-art-example1.png",
        "lora_settings": [
            {
                "lora_type": "pixel-art"
            }
        ]
    }
}

flat-color#

Prompt Instruction#

Better to have "flat color" in prompt

Example#

{
    "model": "Qubico/wanx",
    "task_type": "txt2video-14b-lora",
    "input": {
        "prompt": "flat color, no lineart, blending, negative space, 1girl, hoshimachi suisei, virtual youtuber, blue hair, side ponytail, cowboy shot, black shirt, star print, off shoulder, outdoors, starry sky, wariza, looking up, half-closed eyes, black sky, live2d animation, upper body, high quality cinematic video of a woman sitting under the starry night sky. The Camera is steady, This is a cowboy shot. The animation is smooth and fluid.",
        "negative_prompt": "Overexposure, static, blurred details, subtitles, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, mutilated, redundant fingers, poorly painted hands, poorly painted faces, deformed, disfigured, deformed limbs, fused fingers, three legs",
        "lora_settings": [
            {
                "lora_type": "flat-color"
            }
        ]
    }
}

rotation-effect#

Prompt Instruction#

The trigger word is r0t4tion 360 degrees rotation.

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The video shows a man seated on a chair. The man and the chair performs a r0t4tion 360 degrees rotation.",
        "image": "https://static.piapi.ai/wan-lora/wan21-rotation-example1.png",
        "lora_settings": [
            {
                "lora_type": "rotation-effect"
            }
        ]
    }
}

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The cartoonish boy stands ready with his backpack, then performs a r0t4tion 360 degrees rotation, starting in a neutral pose.",
        "image": "https://static.piapi.ai/wan-lora/wan21-rotation-example2.png",
        "lora_settings": [
            {
                "lora_type": "rotation-effect"
            }
        ]
    }
}

squish-effect#

Prompt Instruction#

The trigger word is sq41sh squish effect.

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "In the video, a miniature dog is presented. The dog is held in a person’s hands. The person then presses on the dog, causing a sq41sh squish effect. The person keeps pressing down on the dog, further showing the sq41sh squish effect.",
        "image": "https://static.piapi.ai/wan-lora/wan21-squish-example1.png",
        "lora_settings": [
            {
                "lora_type": "squish-effect"
            }
        ]
    }
}

cakeify-effect#

Prompt Instruction#

The trigger word is c4k3 cakeify it.
Prompt Structure: The video opens on a [object]. A knife, held by a hand, is coming into frame and hovering over the [object]. The knife then begins cutting into the [object] to c4k3 cakeify it. As the knife slices the [object] open, the inside of the [object] is revealed to be cake with chocolate layers. The knife cuts through and the contents of the [object] are revealed.

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The video opens on a dog. A knife, held by a hand, is coming into frame and hovering over the dog. The knife then begins cutting into the dog to c4k3 cakeify it. As the knife slices the dog open, the inside of the dog is revealed to be cake with chocolate layers. The knife cuts through and the contents of the dog are revealed.",
        "image": "https://static.piapi.ai/wan-lora/wan21-cakeify-example1.png",
        "lora_settings": [
            {
                "lora_type": "cakeify-effect"
            }
        ]
    }
}

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The video opens on a shoe. A knife, held by a hand, is coming into frame and hovering over the shoe. The knife then begins cutting into the shoe to c4k3 cakeify it. As the knife slices the shoe open, the inside of the shoe is revealed to be cake with chocolate layers. The knife cuts through and the contents of the shoe are revealed.",
        "image": "https://static.piapi.ai/wan-lora/wan21-cakeify-example2.png",
        "lora_settings": [
            {
                "lora_type": "cakeify-effect"
            }
        ]
    }
}

inflate-effect#

Prompt Instruction#

The trigger word is infl4t3 inflates it.
Prompt examples:
The large, bald man rides a gray donkey, then infl4t3 inflates it, both the man and the donkey expanding into giant, inflated figures against the desert landscape.
The young boy with a guitar plays on the grass, then infl4t3 inflates it, becoming an inflated cartoon figure strumming the guitar.
The woman in a baseball cap turns her head, then infl4t3 inflates it, her form expanding, and the blurred background gently warps to accommodate her ballooning shape.

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The cat on red floor, then infl4t3 inflates it, the cat expanding into giant, inflated figures against the floor.",
        "image": "https://static.piapi.ai/wan-lora/wan21-motioncraft-example.jpg",
        "lora_settings": [
            {
                "lora_type": "inflate-effect"
            }
        ]
    }
}

deflate-effect#

Prompt Instruction#

The trigger word is d3d1at3 deflate it.
Prompt Structure: The video opens with a [object]. As the video progresses, the [object] begins to d3d1at3 deflate it, gradually shrinking and losing shape, eventually flattening completely into a lifeless, deflated mass on the ground.

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The cat on red floor, then infl4t3 inflates it, the cat expanding into giant, inflated figures against the floor.",
        "image": "https://static.piapi.ai/wan-lora/wan21-motioncraft-example.jpg",
        "lora_settings": [
            {
                "lora_type": "deflate-effect"
            }
        ]
    }
}

crush-effect#

Prompt Instruction#

The trigger word is c5us4 crushes it.
Prompt Structure: The video begins with a [object]. A hydraulic press positioned above slowly descends towards the [object]. Upon contact, the hydraulic press c5us4 crushes it, deforming and flattening the [object], causing the [object] to collapse inward until the [object] is no longer recognizable.

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The video begins with a cat. A hydraulic press positioned above slowly descends towards the cat. Upon contact, the hydraulic press c5us4 crushes it, deforming and flattening the cat, causing the cat to collapse inward until the cat is no longer recognizable.",
        "image": "https://static.piapi.ai/wan-lora/wan21-motioncraft-example.jpg",
        "lora_settings": [
            {
                "lora_type": "crush-effect"
            }
        ]
    }
}

super-saiyan-effect#

Prompt Instruction#

The trigger word is: 5up3r super saiyan transformation

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "A man with short hair and a beard clenches his fists, staring forward. His hair brightens to glowing yellow, spiking up as gold energy surges around his body. The background pulses with yellow light, and sparks crackle in the air during his 5up3r super saiyan transformation, real life style.",
        "negative_prompt": "Overexposure, static, blurred details, subtitles, paintings, pictures, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, mutilated, redundant fingers, poorly painted hands, poorly painted faces, deformed, disfigured, deformed limbs, fused fingers, cluttered background, three legs, a lot of people in the background, upside down",
        "image": "https://static.piapi.ai/wan-lora/wan21-super-saiyan-example2.png",
        "lora_settings": [
            {
                "lora_type": "super-saiyan-effect"
            }
        ]
    }
}

particalize-effect#

Prompt Instruction#

Prompt Structure: [object1] is disintegrating or turning into [object2]
Recommanded lora_strength: [0.4, 1]
If you wanna do small particles use weight 1.0
If you wanna be more creative use weight 0.4-0.5 (see Example that a figure turning to bread slices)
better to have "background change" in negative prompt

Example#

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "The structure is collapsing disintegrating or turning bursting into pieces.",
        "negative_prompt": "background change",
        "image": "https://static.piapi.ai/wan-lora/wan21-particalize-example1.png",
        "lora_settings": [
            {
                "lora_type": "particalize-effect",
                "lora_strength": 1
            }
        ]
    }
}

{
    "model": "Qubico/wanx",
    "task_type": "img2video-14b-lora",
    "input": {
        "prompt": "A figurine wearing a yellow jacket and black shirt underneath. It is disintegrating or turning into many white bread slices at a sudden.",
        "negative_prompt": "background change",
        "image": "https://static.piapi.ai/wan-lora/wan21-particalize-example2.png",
        "lora_settings": [
            {
                "lora_type": "particalize-effect",
                "lora_strength": 0.4
            }
        ]
    }
}
Previous
Available LoRA Types for Wanx
Next
Use Cases for Wanx Control Camera