Guide AI & ML 7 min read

Alibaba’s Wan text-to-image models up to wan2.6 rewrite your prompt by default and add seconds

Wan is Alibaba’s family of image-generation models, called through its Model Studio API with a short JSON request. On wan2.6 and the older models in Alibaba’s V2 reference, a large model rewrites the prompt before drawing unless the request turns that off, and Alibaba says the rewrite adds 3 to 4 seconds on wan2.6.

Kenji Tanaka
Developer Tools & Cloud Analyst · Singapore
Published 25 Nov 2026, 7:35 AM (SGT)
Share:
A hand writing a short note in a small spiral notepad on a wooden desk.
Photo by kaboompics on Pexels
Advertisement

Key points

  • On wan2.6-t2i and every older model in Alibaba’s text-to-image V2 reference, prompt_extend defaults to true, so Alibaba rewrites the prompt before drawing. Its API reference puts the cost at 3 to 4 seconds on wan2.6-t2i.
  • wan2.7-image and wan2.7-image-pro take no prompt_extend and no negative_prompt. Alibaba offers thinking_mode there, on by default, and asks for exclusions to be written into the positive prompt.
  • A wan2.6-or-earlier request that leaves out n asks for four images, and Alibaba bills per image. On wan2.7 the default is one outside group image mode.
  • Alibaba’s documented rewrite example, attached to wan2.5-t2i-preview calls, turns a 24-character prompt into 99 to 102 characters.
  • By our arithmetic, four of the five sizes Alibaba recommends for wan2.6 and wan2.5 sit 0.6 to 0.8% under the pixel floor stated on the same page.

Wan is Alibaba’s family of image-generation models, called through Alibaba Cloud Model Studio with a JSON body that names a model, carries the prompt and sets a few parameters. On wan2.6 and every older model in Alibaba’s text-to-image V2 reference, a large model rewrites that prompt before anything is drawn, unless the body sets prompt_extend to false. The image then comes from text the caller never wrote, and the API reference says the rewrite adds 3 to 4 seconds on wan2.6. Leave out n on the same models and the request asks for four images, each one billed. The two wan2.7 models take neither a rewrite switch nor a negative prompt, and Alibaba documents them in a separate reference.

The block is a wan2.6-t2i request in the shape the API reference documents. The grey lines are our notes, and the Copy button leaves them out.

Request body · wan2.6-t2i, annotated
{
  "model": "wan2.6-t2i",
  // picks the reference, the limits and the call style
  "input": {"messages": [{"role": "user", "content": [{"text": "一只橘猫,窗台。"}]}]},
  // 2,100 characters on this model; the excess is truncated
  "parameters": {
    "negative_prompt": "模糊",
    // 500 characters, here under parameters; absent on wan2.7
    "size": "1280*1280",
    "n": 1,
    // leave it out and the default is 4
    "prompt_extend": false
    // leave it out and the prompt is rewritten
  }
}

The model name sets every limit that follows

Alibaba documents these models in two places, as read on 24 November 2026. The text-to-image V2 API reference covers wan2.6-t2i and older, and a separate Wan image generation and editing reference covers wan2.7-image and wan2.7-image-pro. In the V2 reference, wan2.6-t2i takes the prompt inside input.messages. wan2.5-t2i-preview and older take a plain input.prompt, and over HTTP they are called asynchronously only, with an X-DashScope-Async header that the reference says “must be set to enable”.

Prompt limits follow the model too. The two wan2.7 models accept up to 5,000 characters, while the V2 models run from 500 on wan2.2 and wan2.1 up to 2,100 on wan2.6-t2i. Alibaba’s pages say text past the limit is truncated automatically, and that each Chinese character, letter or symbol counts as one.

A table of six Wan models. The two wan2.7 models allow 5,000-character prompts, have no negative_prompt or prompt_extend, have thinking_mode on and default to one image. wan2.6-t2i and older allow 500 to 2,100 characters, take a 500-character negative prompt, rewrite by default and default to four.
What each generation documents, as our summary of Alibaba’s English and Chinese pages RECATOOLS, from Alibaba Cloud Model Studio docs read 24 November 2026

negative_prompt moves between objects and is gone on wan2.7

Where a model takes a negative prompt, the V2 reference caps it at 500 characters and truncates the rest. On wan2.6-t2i it sits under parameters; on wan2.5-t2i-preview and older it sits under input. The text-to-image usage page says the two wan2.7 models “do not support the negative_prompt parameter”, and asks for unwanted elements to be described in the positive prompt. How Wan’s video models place the field is in our guide to negative prompts across Kling, Tencent and other video APIs.

Default size and image count change with the model

A body that sets no size gets 1024*1024 on wan2.2 and earlier and 1280*1280 on wan2.6 and wan2.5, where the total pixel count must fall between 1280×1280 and 1440×1440. For those two, the V2 reference also recommends sizes for five common ratios, and the square one sits exactly on the floor of 1,638,400 pixels. By our arithmetic, the 3:4 and 4:3 sizes, 1104*1472 and 1472*1104, come to 1,625,088 pixels, which is 0.8% under that floor. The pair 960*1696 and 1696*960 comes to 1,628,160, or 0.6% under. On wan2.7, sizes can be given as 1K, 2K or 4K, and only wan2.7-image-pro offers 4K; for wan2.7-image the reference says “4K is not supported”.

The image count splits the same way. In the V2 reference, n runs from 1 to 4 and “the default is 4”. The same entry gives the fee as “Unit price × Number of images” and recommends setting 1 while testing. The wan2.7 reference defaults n to 1 everywhere except group image mode, which has a larger default.

prompt_extend runs unless the body sends false

The V2 reference describes the rewrite in one line, “a large model is used to optimize the positive prompt”, and puts its cost at 3 to 4 seconds of processing time on wan2.6-t2i. For wan2.5 and older the same reference says only that it increases processing time. The usage page gives a different figure, 3 to 5 seconds, and names no model.

A rewrite can trip moderation

The V2 reference warns that a rewritten prompt may introduce copyrighted content and fail with IPInfringementSuspect or DataInspectionFailed. Its advice is to set prompt_extend to false and try again.

If the prompt itself names a copyrighted character or work, it says the error persists and the prompt has to change.

The usage page says the two wan2.7 models “do not support the prompt_extend parameter” and points to thinking_mode instead. The wan2.7 reference turns that on by default, applies it only when no image is supplied and group image mode is off, and says generation takes longer with it.

Advertisement

Alibaba’s worked example quadruples a short prompt

The V2 reference returns the rewritten text as actual_prompt in the task result for wan2.5 and older; the wan2.6 response fields list no such entry. Its sample responses, attached to wan2.5-t2i-preview calls and identical on the English and Chinese pages, start from one 24-character prompt, 一间有着精致窗户的花店,漂亮的木质门,摆放着花朵 (a flower shop with fine windows, a handsome wooden door, flowers on display). Five filled samples hold three distinct rewrites, of 99, 100 and 102 characters.

All three start from that one prompt, so they show the example Alibaba chose to publish and leave open how live rewrites usually look. Within that example, we sorted what each rewrite adds into eight kinds of detail, from carved windows and named flowers to lighting and mood. The shortest adds seven of them and leaves out lighting, while the other two add all eight. Two settle on 中景构图 (zhōngjǐng gòutú, medium-shot composition), and the third asks for a close, centred shot.

A grid of eight kinds of detail against Alibaba’s three documented rewrites of one 24-character prompt, which run to 99, 100 and 102 characters. The 99-character rewrite adds seven kinds and no lighting; the other two add all eight. Two end on a medium shot, one on a close, centred shot.
Which kinds of detail each documented rewrite adds, by our reading RECATOOLS, from Alibaba’s text-to-image V2 reference, read 24 November 2026

What we did not test

We sent no paid requests. Whether the API accepts the four recommended sizes that sit under the pixel floor is unverified. So is whether wan2.6 returns the rewritten prompt, and what wan2.7 does with a negative_prompt or prompt_extend it does not document.

Forty request bodies checked against the reference

Our Chinese AI image prompt builder says it covers wan2.6 and earlier, and it offers four model choices. Three send the model string they show, and the fourth, labelled wan2.2 / wan2.1, sends wan2.2-t2i-flash. We ran its request code over every model, ratio and rewrite setting, which came to 40 bodies. The prompt limit and the place of the negative prompt match the reference in all of them, and each body sets n to 1, so nobody is billed for four images by accident. Sixteen bodies use one of the recommended sizes that fall short of the floor, and the page points out the gap whenever such a size is picked. For wan2.5 and older it also prints the async header beside the body. Its help text limits rewriting to wan2.6 and earlier and gives 1024*1024 as the default size for the two oldest choices.

With the subject 一只橘猫 (yī zhī júmāo, an orange cat), the scene 窗台 (chuāngtái, windowsill), the negative prompt 模糊 (móhu, blurry) and the 3:4 ratio, it writes the two bodies below.

The builder’s output · wan2.6-t2i, rewriting on
# no extra header
{"model": "wan2.6-t2i",
 "input": {"messages": [{"role": "user", "content": [{"text": "一只橘猫,窗台。"}]}]},
 "parameters": {"size": "1104*1472", "n": 1, "prompt_extend": true, "negative_prompt": "模糊"}}
The builder’s output · wan2.5-t2i-preview, rewriting off
# sent with X-DashScope-Async: enable
{"model": "wan2.5-t2i-preview",
 "input": {"prompt": "一只橘猫,窗台。", "negative_prompt": "模糊"},
 "parameters": {"size": "1104*1472", "n": 1, "prompt_extend": false}}

Before sending a Wan text-to-image request

0 of 6 done

  1. The V2 reference for wan2.6 and older, the Wan 2.7 reference for wan2.7-image and wan2.7-image-pro.

  2. Under parameters on wan2.6, under input on wan2.5 and older, and nowhere on wan2.7.

  3. The V2 default is 4 and the fee is per image.

  4. The V2 reference says those calls are asynchronous only.

Your ticks are saved in this browser only.

Checking the English pages against the Chinese ones

For each of the 24 statements we searched both language editions of the page that makes it, three pages in all, and found every one in both. A search finds a statement without flagging a different figure elsewhere on the same page, and the Chinese V2 reference has one. It opens with a seven-model overview the English edition lacks, and gives a single-side cap of 1400 for wan2.2 and earlier a few lines above a [512, 1440] range; the English edition gives only 1440. The Chinese image-model page carries a migration table from other vendors’ models, while the English page has two capability lines the Chinese one does not. We read MiniMax’s docs the same way for Hailuo camera commands in English and Chinese, where the lists also matched.

Advertisement
Kenji Tanaka
Developer Tools & Cloud Analyst · Singapore

Kenji Tanaka covers developer tools, cloud platforms, DevOps, CI/CD, and software supply-chain topics for RECATOOLS.

View author profile → · Editorial policy

About this byline Kenji Tanaka is a RECATOOLS editorial persona for developer tools, cloud, DevOps, and software supply-chain coverage. Articles are produced and reviewed under RECATOOLS editorial supervision.

Corrections policy

Go further

Relevant tools

More from AI & ML

Advertisement
Advertisement