Skip to main content
POST
/
api
/
v3
/
alibaba
/
wan-2.2-plus
/
text-to-video
wan-2.2-plus (text to video)
curl --request POST \
  --url https://api.example.com/api/v3/alibaba/wan-2.2-plus/text-to-video
Generate videos from text prompts using Qwen’s wan-2.2-plus model with GPTProto format API.
curl --location 'https://gptproto.com/api/v3/alibaba/wan-2.2-plus/text-to-video' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
     "prompt": "An older couple, seen from behind, sits on a wooden bench watching the sunset over the ocean. The man gently places his arm around the woman'\''s shoulder. The scene is peaceful and filled with unspoken history. --Static wide shot, silhouette, warm golden hour colors, photorealistic, emotionally resonant.",
    "enable_prompt_expansion": false,
    "seed": -1,
    "size": "1920*1080"
}'

Response

{
  "task_id": "abc123def456",
  "status": "processing",
  "message": "Video generation task submitted successfully"
}

Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstring✅ Yes--Text description for the video generation, describing the desired scene, actions, style, and cinematography
sizestring❌ No"1920*1080"1920*1080, 832*480Video resolution/size. Available options: 1920*1080 for Full HD or 832*480 for standard definition
enable_prompt_expansionboolean❌ Nofalse-Enable automatic prompt expansion and optimization. When set to true, the system will enhance and expand the input prompt
seedinteger❌ No-1-1 ~ 2147483647Random seed for generation reproducibility. Set to -1 for random generation