Repaint a video in an artistic style such as Japanese manga or 3D cartoon
video-style-transform repaints each frame of a video in an artistic style while preserving the appearance of people and objects. It supports eight styles.
Quick links: API reference: Create a task, Query the result
Supported regions: China North 2 (Beijing) only. Use an API key created in that region and the https://cn-beijing.maas.qwencloudapi.com endpoint. See Regions and endpoints.
Supported styles
| Style code | Style | Notes |
|---|---|---|
| 0 | Japanese manga | Default |
| 1 | American comic | |
| 2 | Fresh comic | |
| 3 | 3D cartoon | |
| 4 | Chinese cartoon | Best for inputs with ancient costumes |
| 5 | Paper art | |
| 6 | Simple illustration | |
| 7 | Chinese ink wash painting |
Input video requirements
| Constraint | Requirement |
|---|---|
| Resolution | Each side between 256 and 4,096 pixels. Aspect ratio no more than 1.8. |
| Format | MP4, AVI, MKV, MOV, FLV, TS, MPG, MXF |
| Duration | Up to 30 seconds |
| File size | Up to 100 MB |
| Encoding | H.264 or H.265 |
| URL | URL-encode paths that contain non-ASCII characters. |
Request example
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
style | integer | 0 | Artistic style. Valid values: 0-7. See Supported styles. |
video_fps | integer | 15 | Output frame rate. Range: 15-25. A higher frame rate produces smoother video and increases the billed duration. |
animate_emotion | boolean | true | Optimizes facial expressions and lip sync. Disable it when faces occupy a small area. |
min_len | integer | 720 | Short side of the output video in pixels. Valid values: 720 and 540. A 720p video costs more than a 540p video. |
use_SR | boolean | false | Applies super-resolution after the style transform at no extra cost. Combining min_len 540 with SR produces a 1080p video billed at the 540p rate. Processing takes longer. |
Billing
You are charged only for successful tasks. The fee is calculated from the output video duration and resolution:
| Resolution | Unit price |
|---|---|
| 720p | $0.071677/second |
| 540p | $0.028671/second |
FAQ
How long does a task take?
A 30-second input video typically takes several minutes. Poll the task status every 10 seconds or more.
Can I use super-resolution to get 1080p output?
Yes. Set min_len to 540 and use_SR to true. The output is upscaled to 1080p and billed at the 540p rate.