Skip to main content

Model training and deployment billing

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

For the model training process, see Model fine-tuning. After training is completed, the new model must first complete model deployment before it can be evaluated and called.
Billing methodBilled by training Token
Billing formulaModel 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

For the model training procedure, see Image generation model fine-tuning. After training is complete, the new model must first complete model deployment before it can be called.

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

‘Totaltrainingtokens≈max_steps×Lstep‘`Total training tokens \approx max\_steps \times L_{step}`Where:
  • 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=∑i∈batchLitem(i)≤Lmax‘`L_{step} = \sum_{i \in batch} L_{item}^{(i)} \leq L_{max}` 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

Assume you use the wan2.7-image-pro model for t2i fine-tuning, with max_steps = 200, max_token_length = "1k", and a training unit price of 0.08 CNY/thousand tokens:
  • 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

For the model training procedure, see Image generation model fine-tuning. After training is complete, the new model must first complete model deployment before it can be called.

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

‘Total training tokens=n_epochs×N×(max_pixels/compression ratio)×GPU coefficient‘`\text{Total training tokens} = n\_epochs \times N \times (max\_pixels / \text{compression ratio}) \times \text{GPU coefficient}`Where:
  • 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) or 2k (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

Assume you fine-tune the qwen-image-2.0 model with a training set of 1 image, n_epochs = 1000, max_pixels = "1k", a training unit price of 0.02 CNY/thousand tokens, and a GPU coefficient of 8:
  • 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
The following table shows the estimated token consumption and fees for each training image when the GPU coefficient is 8. If the training set contains N images, multiply the values in the table by N.

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 usage field returned by the Query fine-tuning job status API; the fee is subject to the bill.
  • batch_size is not billed and does not affect the total training Tokens.

Video generation models-Wan

For the model training workflow, see Model fine-tuning. After training is complete, the new model must undergo model deployment before it can be called.

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

‘TotaltrainingTokens=(∑i=1Nbilleddurationofvideoi)×max_pixels1024×n_epochs‘`Total training Tokens = \left( \sum_{i=1}^{N} billed duration of video_i \right) \times \frac{max\_pixels}{1024} \times n\_epochs`Where:
  • 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.
  • 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.

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

  1. wan2.7-i2v fee estimate (single record)
Assume the training set contains 1 video with a duration of 10 seconds. Since batch_size = 1 (recommended value), 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

  1. wan2.7-i2v fee estimate (multiple records)
Assume the training set contains 2 videos, with durations of 3.4 seconds and 11.5 seconds respectively. Parameter settings: max_pixels = 36864, n_epochs = 800, training unit price = 2 CNY per 1,000 Tokens:
  • 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

The CosyVoice model fine-tuning service is only available in the China (Beijing) region. For the model training workflow, see CosyVoice model fine-tuning. After training is complete, the new model must undergo model deployment before it can be called.

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

The Token consumption of each task is estimated using the following formula:‘Consumed Tokens=(lm_max_epoch+fm_max_epoch)×25×Total training set duration (seconds)‘`\text{Consumed Tokens} = (lm\_max\_epoch + fm\_max\_epoch) \times 25 \times \text{Total training set duration (seconds)}`Where 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.
When the model input exceeds the maximum input Token limit, the relevant calls automatically switch to the pay-as-you-go mode of the current model; when the purchased TPM is exceeded, the overflow strategy selected at creation applies (“Automatic overflow” switches to pay-as-you-go, “Reserved capacity only” returns 429). In this case, inference performance may degrade, subject to the governance of the public traffic of the current snapshot model in the business space, and the fee is charged according to the model calling (pay-as-you-go) standard.
  • 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).
For the specific fee reduction and refund rules in scale-in scenarios (quota decrease), see Description of downgrade refund rules.
Throughput reservation supports tiered capacity coefficients for long input and cache discounts. For more information, see Throughput reservation billing.
  • 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

The CosyVoice model fine-tuning service is supported only in the North China 2 (Beijing) region.
调优后的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

FAQ

Q: When does billing start for model deployment?

A: Once the model deployment is complete, that is, when the status is Running, model deployment fees start to accrue. No fees are charged when the model status is Deploying, overdue payment, or Deploy failed. For monthly subscription (prepaid) billing, the monthly subscription time starts to be consumed once the model status becomes Running.

Q: Will I be charged if I cancel model training?

A: Yes. After you manually cancel training, billing is still pushed for the tokens already consumed. Training fees are estimated based on the consumed tokens, and the final fee is subject to the bill. For training interruptions caused by other reasons, Alibaba Cloud Model Studio will not charge you any training fees.

Q: How do I view the call statistics of a deployed model?

A: Visit the Model monitoring (Beijing), Model monitoring (Virginia), Model monitoring (Singapore), and Model monitoring (Hong Kong, China) pages (Hong Kong (China) supports basic monitoring only; advanced monitoring and logs are unavailable). The model monitoring page supports filtering by time range (3 hours, 6 hours, 12 hours, 24 hours, Today, Yesterday, 1 Week, Custom) and inference type. The summary area at the top displays the total number of models, Total Calls, Failures, Average Call Duration, and Average First Packet Duration. The model list at the bottom displays metrics for each model such as total call volume, Failed Calls, Failure Rate, Average Call Duration, and average first token latency. You can click Monitoring to view detailed data for a single model.