AI function pricing

更新时间:
复制 MD 格式

AI Function is a built-in SQL AI inference capability in EMR Serverless StarRocks that lets you call qwen-series LLMs directly from SQL. This topic describes its billing rules, per-region per-model token pricing, and fee calculation examples. For available AI functions, invocation syntax, and related configuration items, see AI functions.

Billing

Note

Each user receives a free quota of 1 million tokens for the first month. Any usage that exceeds this free quota is billed at standard rates.

Feature

Description

Billing rules

Charges are based on the token usage of built-in models. Billing rules vary by model:

  • qwen-plus/qwen3.5-plus/qwen3.6-plus: Charges are based on both input tokens and output tokens.

The fee for model calls is calculated as: token usage within 1 hour × Unit price for the corresponding region, model, and input/output

Billing cycle

Fees are settled hourly (UTC+8). At the end of each billing cycle, the system generates a bill and deducts the fees from your account. Billing data may lag behind actual usage. For details, see Understand Alibaba Cloud bills.

Pricing

Important

For the latest pricing, see the product purchase page.

Currently, AI Function supports inference with the following built-in models. Each model is billed separately for input and output tokens.

qwen-plus

Region

Token range

Input price (CNY/1k tokens)

Output price (CNY/1k tokens)

  • China (Beijing)

  • China (Shanghai)

  • China (Hangzhou)

  • China (Shenzhen)

  • China (Qingdao)

  • China (Zhangjiakou)

  • China (Ulanqab)

0<T≤128K

0.000960

0.002400

128K<T≤256K

0.002880

0.024000

256K<T≤1M

0.005760

0.057600

  • Singapore

  • China (Hong Kong)

  • Germany (Frankfurt)

  • US (Virginia)

  • US (Silicon Valley)

  • Japan (Tokyo)

  • Indonesia (Jakarta)

  • Mexico (Queretaro)

0<T≤256K

0.003523

0.010568

256K<T≤1M

0.010568

0.031705

qwen3.5-plus

Region

Token range

Input price (CNY/1k tokens)

Output price (CNY/1k tokens)

  • China (Beijing)

  • China (Shanghai)

  • China (Hangzhou)

  • China (Shenzhen)

  • China (Zhangjiakou)

  • China (Ulanqab)

  • China (Qingdao)

0<T≤128K

0.000960

0.005760

128K<T≤256K

0.002400

0.014400

256K<T≤1M

0.004800

0.028800

  • China (Hong Kong)

  • Singapore

  • Germany (Frankfurt)

  • US (Virginia)

  • US (Silicon Valley)

  • Japan (Tokyo)

  • Indonesia (Jakarta)

0<T≤256K

0.003523

0.021137

256K<T≤1M

0.004404

0.026422

qwen3.6-plus

Region

Token range

Input price (CNY/1k tokens)

Output price (CNY/1k tokens)

  • China (Beijing)

  • China (Shanghai)

  • China (Hangzhou)

  • China (Shenzhen)

  • China (Zhangjiakou)

  • China (Ulanqab)

  • China (Qingdao)

0<T≤128K

0.002400

0.014400

128K<T≤256K

0.009600

0.057600

  • China (Hong Kong)

  • Singapore

  • Germany (Frankfurt)

  • US (Virginia)

  • US (Silicon Valley)

  • Japan (Tokyo)

  • Indonesia (Jakarta)

0<T≤256K

0.004497

0.026979

256K<T≤1M

0.017986

0.053958

Billing examples

The following examples show how AI Function fees are calculated.

Billing conditions

Fee (CNY)

  • Region: China (Hangzhou)

  • Function called: ai_complete() (using the qwen-plus model)

  • Input tokens: 750

  • Output tokens: 20

Fee = Input fee + Output fee

= 0.000960 × 750/1000 + 0.002400 × 20/1000

= 0.000720 + 0.000048

= 0.000768 (CNY)