Skip to main content
Video style transform

Video style transform — Create a task

Apply an artistic style such as Japanese manga or 3D cartoon to a video

POST
/services/aigc/video-generation/video-synthesis
cURL
# China North 2 (Beijing). This model is available only in this region.
# API keys are region-specific. See https://docs.qwencloud.com/developer-guides/getting-started/regions
curl --request POST \
  --url https://cn-beijing.maas.qwencloudapi.com/api/v1/services/aigc/video-generation/video-synthesis \
  --header 'X-DashScope-Async: enable' \
  --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "video-style-transform",
  "input": {
    "video_url": "https://example.com/input.mp4"
  },
  "parameters": {
    "style": 0,
    "video_fps": 15
  }
}'
{
  "output": {
    "task_id": "a8532587-fa8c-4ef8-82be-0c46b17950d1",
    "task_status": "PENDING"
  },
  "request_id": "7574ee8f-38a3-4b1e-9280-11c33ab46e51"
}
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, including Japanese manga, American comic, and 3D cartoon. 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. Input video requirements:
ConstraintRequirement
ResolutionEach side between 256 and 4,096 pixels. Aspect ratio no more than 1.8.
FormatMP4, AVI, MKV, MOV, FLV, TS, MPG, MXF
DurationUp to 30 seconds
File sizeUp to 100 MB
URLURL-encode paths that contain non-ASCII characters.
Processing is asynchronous: this operation returns a task_id, and you poll Query the result until the task finishes.

Authorizations

string
header
required

QwenCloud API key. See API keys.

Header Parameters

enum<string>
required

Must be set to enable to submit the task asynchronously.

enable

Body

application/json
enum<string>
required

Model name. Fixed to video-style-transform.

video-style-transform
video-style-transform
object
required

Input data.

object

Video style transform parameters.

Response

200-application/json
string

Unique request identifier for tracing and troubleshooting.

7574ee8f-38a3-4b1e-9280-11c33ab46e51
object