Skip to main content
POST
/
api
/
v3
/
alibaba
/
wan-2.5
/
text-to-image
wan-2.5 (text to image)
curl --request POST \
  --url https://api.example.com/api/v3/alibaba/wan-2.5/text-to-image
Generate images from text prompts using Qwen’s wan-2.5 model with GPTProto format API.
curl --location 'https://gptproto.com/api/v3/alibaba/wan-2.5/text-to-image' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "prompt": "a cat",
    "size": "1024*1024",
    "resolution": "720p",
    "enable_prompt_expansion": "false",
    "negative_prompt": "",
    "seed": -1
}'

Response

{
  "data": {
    "id": "5d87273c75ea40f19a34dea994276673",
    "model": "alibaba/wan-2.5/text-to-image",
    "outputs": [],
    "urls": {
      "get": "https://gptproto.com/api/v3/predictions/5d87273c75ea40f19a34dea994276673/result"
    },
    "hasNsfwContents": [],
    "status": "created",
    "createdAt": "2025-11-10T09:50:05.977Z",
    "error": "",
    "executionTime": 0,
    "timings": {
      "inference": 0
    }
  },
  "message": "success",
  "code": 200
}

Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstring✅ Yes--Text description for the image generation
sizestring❌ No"1024*1024"768 ~ 1440 per dimensionThe size of the generated image in pixels (width*height)
resolutionstring❌ No"720p"-Output resolution quality setting
enable_prompt_expansionstring❌ No"false"-Enable automatic prompt expansion and optimization. Set to "true" or "false"
negative_promptstring❌ No""-Negative prompt to specify what should not appear in the generated image
seedinteger❌ No-1-1 ~ 2147483647Random seed for generation reproducibility. Set to -1 for random generation