This topic describes the billing rules and pricing for model training and model deployment on Alibaba Cloud Model Studio.
Training billing
Text generation models – Qwen
| Method | Billed by training tokens |
| Formula | Model training fee = (Total tokens in training data + Total tokens in mixed training data) × Number of epochs × Training unit price (Minimum billing unit: 1 token)View the estimated training fee at the bottom of the model training console, and click Computing Details to view the total number of training tokens, number of epochs, and training unit price. |
Unit price for training
Unit price for training
- Qwen
- Qwen-VL
Service | Code | Price |
|---|---|---|
Qwen3-32B | qwen3-32b | $0.008/1,000 tokens |
Qwen3-14B | qwen3-14b | $0.0016/1,000 tokens |
Image generation models – Wan
Method | Billed by training tokens |
Formula | Model training fee = Total training tokens × Training unit price (Billing unit: per 1,000 tokens) |
Formula for total training tokens
Formula for total training tokens
- max_steps: A hyperparameter specified during training, representing the maximum number of training steps (configured when creating a fine-tuning job).
- Lstep: The token consumption per step. The formula is: Lstep = ∑i∈batch Litem(i) ≤ Lmax Lstep is approximately equal to Lmax. Lmax is determined by the max_token_length and generation_type, as shown below:
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 | Code | Training price (per 1K tokens) |
|---|---|---|
Wan image generation | wan2.7-image-pro | $0.015 |
Wan image generation | wan2.7-image | $0.015 |
Billing example
Billing example
- From the table: Lmax = 12,800 (generation_type=t2i, max_token_length=1k), Lstep ≈ Lmax = 12,800
- Total training tokens ≈ 200 × 12800 = 2560000 = 2560 thousand tokens
- Model training fee ≈ 2560× 0.015 = $38.4
Video generation models – Wan
Method | Billed by training tokens |
Formula | Model training fee = Total training tokens × Training unit price (Billing unit: per 1,000 tokens) |
Formula for total training tokens
Formula for total training tokens
- N: Total number of videos in the training set.
- max_pixels: A hyperparameter specified during training, representing the maximum number of pixels for a video (configured when creating a fine-tuning job).
-
n_epochs: A hyperparameter specified during training, representing the number of loops (configured when creating a fine-tuning job).
- The conversion between n_epochs and steps is:
steps = n_epochs × ⌈dataset_size / batch_size⌉, i.e.,n_epochs = steps / ⌈dataset_size / batch_size⌉. - When the dataset contains only 1 sample and batch_size = 1, n_epochs = steps. We recommend a total of at least 800 steps.
- The conversion between n_epochs and steps is:
-
Billing duration calculation rule for a single video: First, round the original video duration (in seconds) to the nearest integer, then determine the final value based on model limits.
- wan2.7 model:
Billing duration=min(10, rounded duration), meaning a single video is billed for a maximum of 10 seconds. - wan2.6 model:
Billing duration=min(10, rounded duration), meaning a single video is billed for a maximum of 10 seconds. - wan2.5 model:
Billing duration=min(10, rounded duration), meaning a single video is billed for a maximum of 10 seconds. - wan2.2 model:
Billing duration=min(5, rounded duration), meaning a single video is billed for a maximum of 5 seconds.
- wan2.7 model:
Model | Code | Training price (per 1K tokens) |
|---|---|---|
Image-to-video (first frame) | wan2.7-i2v | $0.3 |
wan2.6-i2v | $0.08 | |
wan2.5-i2v-preview | $0.05 | |
wan2.2-i2v-flash | $0.03 | |
Image-to-video (first and last frames) | wan2.2-kf2v-flash | $0.03 |
Billing examples
Billing examples
- wan2.7-i2v cost estimation (single data)
n_epochs = steps / ⌈1(dataset_size) / 1(batch_size)⌉ = steps.Training unit price = $0.3/thousand 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 × $0.3 = $86.4
max_pixels | Common steps | n_epochs | Estimated tokens | Estimated cost (USD) |
|---|---|---|---|---|
36864 | 800 | 800 | 288,000 | $86.4 |
1,000 | 1,000 | 360,000 | $108 | |
2,000 | 2,000 | 720,000 | $216 | |
65536 | 800 | 800 | 512,000 | $153.6 |
1,000 | 1,000 | 640,000 | $192 | |
2,000 | 2,000 | 1,280,000 | $384 | |
102400 | 800 | 800 | 800,000 | $240 |
1,000 | 1,000 | 1,000,000 | $300 | |
2,000 | 2,000 | 2,000,000 | $600 |
- wan2.7-i2v cost estimation (multiple data)
-
Duration calculation:
- Video 1: 3.4 seconds is rounded to 3. Billable duration = min(10, 3) = 3.
- Video 2: 11.5 seconds is rounded to 11. Billable duration = min(10, 11) = 10.
- Total billable duration = 3 + 10 = 13 seconds.
- Total training tokens = 13 × (36864/1024) × 800 = 374,400 = 374.4 thousand tokens.
- Model training fee = 374.4 × 0.3 = $112.32.
- wan2.5-i2v-preview cost estimation (multiple data)
-
Duration calculation:
- Video 1: 3.4 seconds is rounded to 3. Billable duration: min(10, 3) = 3 seconds.
- Video 2: 11.5 seconds is rounded to 11. Billable duration: min(10, 11) = 10 seconds.
- Total billable duration: 3 + 10 = 13 seconds.
- Total training tokens = 13 × (36864 / 1024) × 400 = 187,200 = 187.2 thousand tokens.
- Model training fee = 187.2 × 0.05 = $9.36.
Deployment billing
Text generation models: Qwen
- Usage duration billing (Provisioned Throughput)
- Billing by usage duration (model unit)
- By model Token usage
Cost = Usage duration × (Input TPM unit price × Input TPM + Output TPM unit price × Output TPM)Postpaid is calculated by hour: the usage duration unit is hours, and the unit price takes the "1 hour continuous" column in the table below; prepaid is calculated by day: the usage duration unit is days, and the unit price takes the "1 day continuous" column in the table below.- Prepaid orders take effect immediately after payment, valid for N days until 23:59 on day N. If ordered after 22:00, the expiration date is automatically extended by 1 day.
- After a prepaid order expires, the service will be stopped with a 2-hour delay, and resources will be retained for 14 hours after stopping before being released.
- Prepaid orders cannot be terminated early.
- For post-paid billing, if your account is in arrears, the deployed resources will be retained and billed for 24 hours, during which the service can still be used normally. After 24 hours, the system stops billing, the model deployment enters an arrears state, and the underlying resources will be deleted, but the model deployment task will be retained. After you pay off the arrears, the system will reallocate resources and resume usage (fees will continue to accrue after resumption). If you do not want to continue incurring charges, you can delete the model deployment task; once deleted successfully, billing will stop.
- At this time (only under the "Auto-overflow" policy), the call API response Header will include:
x-dashscope-ptu-overflow:true. - For TPM statistics, go to: Model Monitoring.
- Singapore
- North China 2 (Beijing)
- Qwen
- DeepSeek
- GLM
- Qwen-VL
Model name | Model code | Max input tokens | 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-Max | qwen3.8-max | 1M | $4.8 | $1.44 | $57.6 | $17.28 |
Qwen3.7-Flash-2026-07-15 Contact business manager to activate | qwen3.7-flash-2026-07-15 | 128K | $0.072 | $0.031 | $0.864 | $0.374 |
Qwen3.7-Max-2026-05-20 | qwen3.7-max-2026-05-20 | 256K | $1.92 | $1.8 | $72 | $21.6 |
Qwen3.7-Plus-2026-05-26 | qwen3.7-plus-2026-05-26 | 256K | $0.96 | $0.384 | $11.52 | $4.608 |
Qwen3.6-Plus-2026-04-02 | qwen3.6-plus-2026-04-02 | 128K | $1.2 | $0.72 | $14.4 | $8.64 |
Qwen3.5-Plus-2026-04-20 | qwen3.5-plus-2026-04-20 | 128K | $0.96 | $0.576 | $11.52 | $6.912 |
Image generation models – Wan
Deployment is free. Invocations are billed at the standard rate of the fine-tuned base model. For the training workflow, see Fine-tune image generation models.
Model ID | LoRA Deployment & Invocation Price |
|---|---|
wan2.7-image-pro | $0.075/image |
wan2.7-image | $0.03/image |