This topic describes the billing rules and pricing for model training and model deployment on the Alibaba Cloud Bailian platform.
Model training billing
Text generation models - Qwen
| Billing method | Billed by training Token |
| Billing formula | Model training fee = (Total training data tokens + Total mixed training data tokens) × Rounds × Training unit price (Minimum billing unit: 1 token)You can view the estimated training fee at the bottom of the model training console and click Pricing to view the total number of training tokens, the number of rounds, and the training unit price. |
- North China 2 (Beijing)
- Singapore
- Qwen VL
- Qwen
Model Service | Model code | Pricing |
|---|---|---|
Qwen3-VL-8B-Instruct | qwen3-vl-8b-instruct | $0.00165/Thousand Token |
Qwen3-VL-8B-Thinking | qwen3-vl-8b-thinking | $0.00165/Thousand Token |
Qwen3-VL-4B-Instruct | qwen3-vl-4b-instruct | $0.000825/Thousand Token |
Qwen2.5-VL-72B-Instruct | qwen2.5-vl-72b-instruct | $0.006876/Thousand Token |
Qwen2.5-VL-32B-Instruct | qwen2.5-vl-32b-instruct | $0.00275/Thousand Token |
Qwen2.5-VL-7B-Instruct | qwen2.5-vl-7b-instruct | $0.001375/Thousand Token |
Image generation models - Wanxiang
Billing method | Billed by training Token |
Billing formula | Model training fee = Total training tokens × Training unit price (billing unit: per thousand tokens) |
Formula for calculating the total training tokens
Formula for calculating the total training tokens
- max_steps: A hyperparameter specified during training, indicating the maximum number of training steps (configured when creating a fine-tuning task).
- Lstep: The token consumption per step, calculated with the following formula: Lstep is approximately equal to Lmax. Lmax is determined by both max_token_length and generation_type, with the specific values shown in the following table:
generation_type | max_token_length | Lmax |
|---|---|---|
t2i (text-to-image) | 1k | 12,800 |
2k | 23,220 | |
i2i (image-to-image) | 1k | 23,220 |
2k | 32,000 |
Model Service | Model | Training price (per thousand tokens) |
|---|---|---|
Wan-Image Generation | wan2.7-image-pro | 0.08 CNY |
Wan-Image Generation | wan2.7-image | 0.08 CNY |
Billing example
Billing example
- From the table, Lmax = 12,800 (generation_type=t2i, max_token_length=1k), and Lstep ≈ Lmax = 12,800
- Total training tokens ≈ 200 × 12800 = 2560000 = 2560 thousand tokens
- Model training fee ≈ 2560 × 0.08 = 204.8 CNY
Image generation models - Qwen
Billing method | Billed by training Token |
Billing formula | Model training fee = Total training tokens × Training unit price (billing unit: per thousand tokens) |
Formula for calculating the total training tokens
Formula for calculating the total training tokens
- n_epochs: A hyperparameter specified during training, indicating the number of training epochs (configured when creating a fine-tuning task).
- N: The total number of images in the training set.
- max_pixels: A hyperparameter specified during training, indicating the maximum number of pixels per image (configured when creating a fine-tuning task). The value is
1k(i.e., 1024×1024) or2k(i.e., 2048×2048). - Compression ratio: The fixed VAE compression ratio, which is 1024 (i.e., 32×32).
- GPU coefficient: A resource scheduling coefficient that is dynamically adjusted based on task scheduling.
Model Service | Model | Training price (per thousand tokens) |
|---|---|---|
Qwen-Image Generation | qwen-image-2.0 | 0.02 CNY |
Qwen-Image Generation | qwen-image-2.0-pro | 0.02 CNY |
Billing example
Billing example
- Tokens per image = max_pixels / compression ratio = 1024×1024 / 1024 = 1024
- Total training tokens = 1000 × 1 × 1024 × 8 = 8192000 = 8192 thousand tokens
- Model training fee = 8192 × 0.02 = 163.84 CNY
max_pixels | n_epochs | Estimated token consumption | Fee estimate (CNY) |
|---|---|---|---|
1k | 800 | 6,553,600 | 131.07 |
1k | 1,000 | 8,192,000 | 163.84 |
1k | 2,000 | 16,384,000 | 327.68 |
2k | 800 | 26,214,400 | 524.29 |
2k | 1,000 | 32,768,000 | 655.36 |
2k | 2,000 | 65,536,000 | 1310.72 |
- The GPU coefficient is dynamically adjusted based on task scheduling; the value of 8 used in the examples and estimate tables above is for demonstrating the calculation process only. For the actual number of Tokens consumed during training, refer to the
usagefield returned by the Query fine-tuning job status API; the fee is subject to the bill. batch_sizeis not billed and does not affect the total training Tokens.
Video generation models-Wan
Billing method | Billed by training Token |
Billing formula | Model training fee = Total training tokens × Training unit price (billing unit: per thousand tokens) |
Formula for calculating the total training tokens
Formula for calculating the total training tokens
- N: The total number of videos in the training set.
- max_pixels: A hyperparameter specified during training, indicating the maximum number of pixels of a video (configured when creating a fine-tuning job).
-
n_epochs: A hyperparameter specified during training, indicating the number of rounds (configured when creating a fine-tuning job).
- The conversion between n_epochs and steps is:
steps = n_epochs × ⌈dataset size / batch_size⌉, that is,n_epochs = steps / ⌈dataset size / batch_size⌉. - When the dataset contains only 1 record and batch_size = 1, n_epochs = steps. It is recommended that the total number of steps be ≥ 800.
- The conversion between n_epochs and steps is:
-
Rule for calculating the billed duration of a single video: first round the original video duration (in seconds) to the nearest integer, then take the final value based on the model limits.
- wan2.7 models:
Billed duration=min(10, rounded duration), that is, a single video is billed for at most 10 seconds. - wan2.5 models:
Billed duration=min(10, rounded duration), that is, a single video is billed for at most 10 seconds. - wan2.2 models:
Billed duration=min(5, rounded duration), that is, a single video is billed for at most 5 seconds.
- wan2.7 models:
Model Service | Model | Training price (per thousand tokens) |
|---|---|---|
Wan-I2V-based on first frame | wan2.7-i2v | 2 CNY |
wan2.2-i2v-flash | 0.06 CNY | |
wan2.5-i2v-preview | 0.32 CNY | |
I2V-based on first and last frames | wan2.7-i2v | 2 CNY |
wan2.2-kf2v-flash | 0.06 CNY |
Billing example
Billing example
- wan2.7-i2v fee estimate (single record)
n_epochs = steps / ⌈1(dataset size) / 1(batch_size)⌉ = steps.Training unit price = 2 CNY per 1,000 Tokens. Taking max_pixels = 36864 and n_epochs = 800 as an example:- Total training Tokens = 10 × (36864 / 1024) × 800 = 288,000 = 288 thousand Tokens
- Model training fee = 288 × 2 = 576 CNY
max_pixels | Common steps | n_epochs | Token consumption estimate | Fee estimate (CNY) |
|---|---|---|---|---|
36864 | 800 | 800 | 288,000 | 576 |
1,000 | 1,000 | 360,000 | 720 | |
2,000 | 2,000 | 720,000 | 1,440 | |
65536 | 800 | 800 | 512,000 | 1,024 |
1,000 | 1,000 | 640,000 | 1,280 | |
2,000 | 2,000 | 1,280,000 | 2,560 | |
102400 | 800 | 800 | 800,000 | 1,600 |
1,000 | 1,000 | 1,000,000 | 2,000 | |
2,000 | 2,000 | 2,000,000 | 4,000 |
- wan2.7-i2v fee estimate (multiple records)
-
Duration calculation:
- Video 1: 3.4 → rounded → 3 seconds → billed duration = min(10, 3) = 3
- Video 2: 11.5 → rounded → 12 seconds → billed duration = min(10, 12) = 10
- Total billed duration = 3 + 10 = 13 seconds
- Total training Tokens = 13 × (36864/1024) × 800 = 374400 = 374.4 thousand Tokens
- Model training fee = 374.4 × 2 = 748.8 CNY
Speech synthesis models-CosyVoice
Billing method | Billed based on the number of Tokens consumed during training |
Training unit price | 0.2 CNY/1,000 Tokens |
Billing formula | Model training fee = Total Tokens consumed during training × Training unit price |
Formula for calculating the total number of Tokens consumed during training
Formula for calculating the total number of Tokens consumed during training
lm_max_epoch and fm_max_epoch are hyperparameters set when creating the fine-tuning task, representing the training rounds of the LM and the FM respectively; the total training set duration is the total number of seconds of all audio files in the fine-tuning dataset. Increasing either round or expanding the training set will linearly increase Token consumption.Model deployment billing
Text generation models-Qwen
- Billed by usage duration (throughput reservation · high-speed mode)
- Billed by usage duration (dedicated throughput)
- By model Token usage
- Billed by usage duration (model units)
Fee = Usage duration × (Input TPM unit price × Input TPM + Output TPM unit price × Output TPM)Postpaid billing is calculated by hour: the usage duration is measured in hours, and the unit price is taken from the “Continues for 1 hour” column in the table below; prepaid billing is calculated by day: the usage duration is measured in days, and the unit price is taken from the “Continues for 1 day” column in the table below.- Prepaid orders take effect immediately after payment, and are valid for N days, ending at 23:59 on day N.
- When a prepaid order expires, the service stops immediately (calls are unavailable, but renewal is still possible), and resources are released 2 hours after shutdown.
- Prepaid orders support early termination of the service; the used portion is settled and refunded at a factor of 1.2. For more information, see Description of downgrade refund rules.
- For postpaid billing, if the account has overdue payment, the deployed resources become unavailable and are not billed; the service resumes after the overdue payment is settled.
- In this case (only under the “Automatic overflow” strategy), the response Header of API calls will contain:
x-dashscope-ptu-overflow:true. - For TPM statistics, go to Model Monitoring (Beijing).
- North China 2 (Beijing)
- Singapore
- Qwen
- DeepSeek
- Qwen VL
- GLM
Model | Model code | Maximum input Token | Postpaid input Per 10K TPM/hour | Postpaid output Per 1K TPM/hour | Prepaid input Per 10K TPM/day | Prepaid output Per 1K TPM/day |
|---|---|---|---|---|---|---|
Qwen3.8-Flash | qwen3.8-flash | 128K | $0.407 | $0.137 | $4.884 | $1.649 |
Qwen3.8-Max | qwen3.8-max | 1M | $3.96 | $1.188 | $47.53 | $14.258 |
Qwen3.7-Flash-2026-07-15 | qwen3.7-flash-2026-07-15 | 128K | $0.066 | $0.026 | $0.792 | $0.317 |
Qwen3.7-Max-2026-05-20 | qwen3.7-max-2026-05-20 | 256K | $3.96 | $1.188 | $47.53 | $14.258 |
Qwen3.7-Plus-2026-05-26 | qwen3.7-plus-2026-05-26 | 256K | $0.66 | $0.264 | $7.92 | $3.168 |
Qwen3.6-Plus-2026-04-02 | qwen3.6-plus-2026-04-02 | 128K | $0.67 | $0.066 | $7.93 | $4.753 |
Qwen3.5-Plus-2026-04-20 | qwen3.5-plus-2026-04-20 | 128K | $0.26 | $0.16 | $3.17 | $1.9 |
Qwen3-Max-2025-09-23 | qwen3-max-2025-09-23 | 128K | $1.11 | $0.45 | $13.32 | $5.4 |
Qwen-Flash-2025-07-28 | qwen-flash-2025-07-28 | 128K | $0.06 | $0.06 | $0.72 | $0.72 |
Qwen-Plus-2025-12-01 | qwen-plus-2025-12-01 | 128K | $0.28 | Non-thinking: $0.07 Thinking: $0.28 | $3.36 | Non-thinking: $0.84 Thinking: $3.36 |
Image generation models-Wan
Wan image generation models fine-tuned with SFT-LoRA are free to deploy, and calls are billed at the standard call price of the base model used for fine-tuning. For model training and deployment procedures, see Image generation model fine-tuning.
Model | Lora deployment call price |
|---|---|
wan2.7-image-pro | 0.50 CNY/image |
wan2.7-image | 0.20 CNY/image |
Image generation models-Qwen
Qwen image generation models fine-tuned with SFT-LoRA are free to deploy, and calls are billed at the standard call price of the base model used for fine-tuning. For model training and deployment procedures, see Image generation model fine-tuning.
Model | Lora deployment call price |
|---|---|
qwen-image-2.0 | 0.20 CNY/image |
qwen-image-2.0-pro | 0.50 CNY/image |
Video generation models-Wan
Fine-tuned Wan video generation models:
- Model deployment: Free
- Model calling: Billed at the standard call price of the base model used for fine-tuning. For more information, see Model pricing
Speech synthesis models-CosyVoice
调优后的CosyVoice模型部署后按<strong>模型单元的使用时长</strong>计费,公式为:$\text{费用} = \text{使用时长(小时)} \times \text{模型单元数量} \times \text{模型单元单价}$。
Among them, $\text{Model Unit Count} = \text{Model Units per Replica} \times \text{Deployed Replicas}$. For the available deployment templates and the corresponding model unit types, see the deployment templates of CosyVoice model fine-tuning.
Model | Model code | Model unit specification | Hourly unit price (CNY) | Monthly subscription unit price (CNY) |
|---|---|---|---|---|
cosyvoice-v3-flash | cosyvoice-v3-flash | MU5 | ¥21 | ¥10,139 |