Skip to main content
Settings, Billing & Limits

Billing Overview

Knowledge base billing methods, cost components, billing examples, and bill management

Alibaba Cloud Bailian Knowledge Base service officially begins billing on January 4, 2026. This document details the knowledge base billing rules, including cost composition, calculation methods, and cost optimization strategies.
Knowledge bases created before January 4, 2026 but not yet activated will retain data until June 30, 2026. If service activation is not completed by then, data will be permanently deleted. Please activate the Knowledge Base service promptly.

Billing Methods

The knowledge base offers two billing methods: Pay-as-you-go (metered billing) and prepaid resource packages. By default, newly activated knowledge base services use Pay-as-you-go billing. Resource packages can be purchased via the console: Standard Edition Resource Package or Enterprise Edition Resource Package.
  • Service Activation: Free of charge.
  • Billing Start Point: Billing begins upon successful knowledge base creation.
  • Deduction Logic:
    • Deduction Order: Free Quota > Resource Package > Pay-as-you-go. Free quota or resource package usage is deducted proportionally across multiple knowledge bases.
    • Excess Handling: Once your free quota and resource package are exhausted, billing automatically switches to Pay-as-you-go.
  • Billing Modes:
    • Free Quota: For Standard Edition knowledge bases, the validity period of the free quota starts upon service activation.
    • Resource Package: Packages are tiered by business volume and purchased with a one-time payment.
    • Pay-as-you-go: Fees are automatically deducted hourly from your Alibaba Cloud account based on the selected specification. Ensure sufficient account balance (recharge via the Cost & Billing page).
  • Billing Termination: To stop billing for an unused knowledge base, delete it immediately.
Deletion permanently removes all data in the knowledge base with no recovery option. Proceed with extreme caution.

Cost Composition

Total knowledge base costs consist of two components: Specification Fees and Model Invocation Fees.

Specification Fees

Specification fees cover runtime charges for the knowledge base. Alibaba Cloud Bailian offers two specifications: Standard Edition and Enterprise Edition.
If you choose to use your own ADB-PG instance as vector storage, additional ADB-PG fees apply.
  • Standard Edition: Suitable for individual users, small-scale deployments, or proof-of-concept (PoC) environments.
  • Enterprise Edition: Designed for high-concurrency, production-grade environments.
SpecificationMax Concurrent Queries (Knowledge Base Retrieval)Storage CapacityPrice
Standard Edition1 QPS (fixed; non-adjustable)Platform storage ≤ 100 GB¥0.03 / knowledge base / hour
Enterprise Edition50–10,000 QPS (adjustable, corresponding to 1–200 RCU)Platform storage ≤ 9,999 GB (for larger storage, select and configure your own ADB-PG instance during knowledge base creation)¥0.20 / RCU / hour
  • RCU (Retrieval Compute Unit): Measures concurrent retrieval capacity. 1 RCU ≈ supports up to 50 QPS for online retrieval. Higher RCU enables greater concurrency.
  • Estimating Required RCU: Required RCU = ⌈Peak QPS requirement ÷ 50⌉. For example, 80 QPS peak demand requires at least 2 RCU.
  • Max Concurrent Queries: Refers to core retrieval performance of the knowledge base itself (excluding dependent chains, e.g., ranking models).
    During Enterprise Edition retrieval, if upstream dependencies (e.g., Embedding or Rerank models) throttle under extreme load, we’ll rapidly scale those services—but brief degradation of some retrieval requests may occur temporarily.
  • Storage Fees: Prices above include platform storage. Using your own ADB-PG incurs separate fees—see ADB-PG Pricing.
  • Specification Changes: Billed in segments based on effective time. No fee for changing specifications. Up to one specification change per natural day per knowledge base.

Free Quota

Alibaba Cloud Bailian provides all users with a one-time 720-hour free quota, after which Pay-as-you-go billing applies.
  • Existing Users: Free quota expires uniformly on February 3, 2026, 23:59 (UTC+8). Post-expiry, billing reverts to Pay-as-you-go.
  • New Users: Free quota is valid for 30 days from activation date. Unused quota expires and cannot be extended.
Existing Users: Those who activated service before January 4, 2026 (billing launch date).
New Users: Those activating service on or after January 4, 2026.
View remaining free hours and expiry in the top-right corner of the knowledge base page via View Bill. Usage Rules
  • Applicability: Applies only to Standard Edition specification fees—not Enterprise Edition.
  • Deduction Method: Deducted cumulatively based on actual runtime. Multiple knowledge bases share the quota proportionally.
    Example: Running 4 Standard Edition knowledge bases consumes 4 hours of quota per hour.
  • Exclusions: Model invocation fees are not covered by the free quota and follow respective model pricing.
Examples
  • 1 Standard Edition KB: 720 hours ÷ 1 = 720 free hours
  • 2 Standard Edition KBs: 720 hours ÷ 2 = 360 free hours each

Resource Packages

Purchased resource packages expire after one year, with unused hours forfeited upon expiry. Standard Edition Resource Package Specifications & Pricing
UnitQuantity × HoursUse CasePackage Price (¥)
1/month7201 KB × 1 month20
1/quarter2,1601 KB × 1 quarter59
1/year8,7601 KB × 1 year239
10/year87,60010 KBs × 1 year2,099
50/year438,00050 KBs × 1 year9,999
100/year876,000100 KBs × 1 year18,999
Enterprise Edition Resource Package Specifications & Pricing
UnitRCU × HoursUse CasePackage Price (¥)
1 RCU/month7201 KB × 1 month139
1 RCU/quarter2,1601 KB × 1 quarter399
1 RCU/year8,7601 KB × 1 year1,599
10 RCU/year87,60010 KBs × 1 year14,999
30 RCU/year262,80030 KBs × 1 year41,999
50 RCU/year438,00050 KBs × 1 year65,999
Usage Instructions
  • Activation: Automatically effective upon purchase.
  • Validity: Determined by package term; unused hours expire post-term.
  • Deduction Logic:
    • Order: Free Quota > Resource Package > Pay-as-you-go.
    • Multiple Packages: Prioritizes packages expiring sooner. If expiry dates match, prioritizes earlier-purchased packages.
    • Multi-KB Deduction: Free quota/resource packages are shared proportionally across KBs.
    • Excess Handling: After all applicable packages expire or deplete, excess usage defaults to Pay-as-you-go.
  • Usage Monitoring & Alerts:
    • Check Balance: View remaining hours at Resource Packages; click Statistics for usage details.
    • Set Alerts: Configure budget alerts. System notifies via SMS/email/in-app message when usage falls below threshold.
  • Cancellation Policy: Per Alibaba Cloud rules, unused prepaid amounts are refundable; used portions are non-refundable. Post-cancellation, KBs switch to Pay-as-you-go. Delete KBs to halt billing.

Model Invocation Fees

Creating, updating, retrieving from, or using Q&A services triggers calls to the following models—each billed separately from specification fees:
Model CategoryModel NamePurpose
Embedding Modelstext-embedding-v4, etc.Text vectorization for document-based KBs
qwen3-vl-embeddingMultimodal vectorization for image/Q&A or audio/video search KBs
Reranking Modelsqwen3-rerankSecondary ranking of document KB retrieval results (optional)
qwen3-vl-rerankSecondary ranking for image/Q&A or audio/video search KBs (optional)
Routing Modelsqwen-plusWhen KB routing is enabled, qwen-plus determines which KBs to route queries to
Q&A Modelsqwen3.7-plus, etc.Large language models generating answers in Q&A services (selected by user in app)
Model invocation fees are independent charges, calculated based on actual input token count, per the model’s pricing on the Model Marketplace. These fees are not included in knowledge base specification fees.
Billing Formula: Model Fee = (Total Input Tokens ÷ 1,000) × Model Unit Price (¥/1,000 tokens) Multi-KB Billing Rule: When an Alibaba Cloud Bailian application mounts multiple KBs, retrieval executes across all KBs. Token consumption (Query embedding + Reranking) scales linearly with KB count (N KBs → N× consumption).

Knowledge Management (KB Creation & Updates)

  • Invocation Scenario: Triggered when uploading new files or incrementally updating content—calls embedding models for text vectorization.
  • Billing: Charged per newly added token count. File deletion incurs no model fees.
  • Models Used:

Knowledge Retrieval

  • Invocation Scenarios:
    1. Query Embedding: Calls embedding model to vectorize user query (Query).
    2. KB Routing (Optional): If app links multiple KBs with routing enabled, qwen-plus determines target KBs—billed per qwen-plus token usage.
    3. Reranking (Optional): Calls reranking model to reorder initial results for higher answer precision. Document search KBs use qwen3-rerank; image/Q&A/audio/video KBs use qwen3-vl-rerank.
  • Billing Details:
    • Query Embedding Fee: Based on user input token count.
    • Reranking Fee (Configurable): Primary retrieval cost. Depends on total number of chunks retrieved in initial recall.
Retrieval Workflow & Billing Relationship
  1. Initial Recall: System retrieves text chunks from KB using:
    • Semantic TopK: Controls chunks retrieved by semantic similarity (default: 50).
    • Keyword TopK: Controls chunks retrieved by exact text match (default: 50).
  2. Reranking:
    1. All initially recalled chunks are fed into the Rerank model.
    2. Fee = Total Initial Chunks × Avg Chunk Tokens × Model Unit Price
    Reranking fees depend on total initially recalled chunks, not final returned chunks.
  3. Final Recall: After Rerank sorting, system returns top-N chunks per configured parameter (e.g., 5).
Using Hit Test on the KB card enters configuration/debug mode—triggering model invocation fees (embedding + reranking).

Knowledge Q&A

When using KBs for Q&A via Bailian apps (Agent Apps or Workflow Apps), beyond retrieval-stage model fees, additional fees apply:
  • Q&A Generation Model: System uses your selected model (e.g., qwen-plus) to generate answers—billed per its token usage.
  • Pre-file Parsing (Optional): If users upload files in chat with pre-parsing enabled, qwen3-rerank processes file content—billed per rerank token usage.
  • KB Routing (Optional): If app links multiple KBs with routing enabled, qwen-plus performs routing decisions.
Full Q&A service cost = Specification Fee (KB runtime) + Retrieval Model Fees (embedding + reranking + routing) + Q&A Model Fees (generation + pre-file parsing). Each model fee is calculated independently based on actual token consumption.

Cost Optimization Recommendations

Disable RerankingAdjust Initial Recall Parameters
If search precision requirements are low, disable reranking to eliminate its fees.Reduce Semantic TopK and Keyword TopK values to decrease tokens sent to reranking model—significantly lowering costs.
Impact: Reduces relevance ranking quality.Impact: May affect final retrieval quality—tune to balance cost vs. performance.
Action:Action:
- Legacy Agent/Workflow Apps: Click Debug on KB card → disable Re-ranking Strategy.Adjust in KB Edit or Hit Test pages → save.
- New Agent Apps: Click Hit Test → select Do Not Use Model → save.E.g., set both Semantic TopK and Keyword TopK to 50 (range: 10–100) → save.
Using Hit Test on the KB card triggers model invocation fees (embedding + reranking).

Savings Plan Deduction

Embedding models (e.g., text-embedding-v4) and reranking models (e.g., qwen3-rerank) are Bailian Platform Class A Models, eligible for deduction via:
  • AI General Savings Plan (Recommended): Covers all Class A models (text/multimodal embeddings, reranking)—tiered discounts for monthly committed spend.
  • Embedding & Reranking Savings Plan: Dedicated plan for embedding/reranking models—purchased as fixed-value bundles.
Savings Plans only offset model invocation fees, not specification fees (runtime charges). Optimize specification fees via Resource Packages above.

Billing Examples

Continuous 1-Day Runtime

SpecificationConfigurationQuantityDaily Specification Fee
Standard EditionPlatform storage124 hrs × ¥0.03/hr = ¥0.72
Enterprise EditionPlatform storage, 1 RCU124 hrs × 1 RCU × ¥0.20/RCU/hr = ¥4.80

KB Creation, Update & Retrieval

Example uses document-search KB with text-embedding-v4 (embedding) and qwen3-rerank (reranking), both priced at ¥0.0005 / 1,000 tokens. Billing Logic: Fee = Token Consumption (in "1,000 tokens") × Model Unit Price KB Creation
  • Action: Upload 50,000-token file for embedding.
  • Fee: 50 × ¥0.0005 = ¥0.025
KB Update
  • Action: Add 20,000-token file.
  • Fee: 20 × ¥0.0005 = ¥0.01
Single-KB Retrieval
  • Action: 100-token Query → recalls 150 chunks (avg 500 tokens/chunk) for reranking.
  • Fee:
    • Query embedding: 0.1 × ¥0.0005 = ¥0.00005
    • Reranking tokens: 150 chunks × 500 tokens = 75,000 tokens
    • Reranking fee (if enabled): 75 × ¥0.0005 = ¥0.0375
    • Total: ¥0.00005 + ¥0.0375 = ¥0.03755
Multi-KB Retrieval
  • Action: Bailian Agent App linked to 4 KBs → same Query triggers 1 retrieval per KB (non-configurable).
  • Fee: ¥0.03755 × 4 = ¥0.1502

Specification Change (Prorated Billing)

  • Scenario: Standard → Enterprise (2 RCU) upgrade at 15:10 during 14:40–15:40 window. Both specs run 30 mins (0.50 hrs, 2 decimals).
  • Specification Fee (14:40–15:40):
    • Standard: 0.50 hrs × ¥0.03/hr = ¥0.015
    • Enterprise: 0.50 hrs × 2 RCU × ¥0.20/RCU/hr = ¥0.20
    • Total: ¥0.215

Sub-Hour Runtime

  • Scenario: 1 Standard KB created at 14:12, deleted at 14:21 → 9 mins runtime (0.15 hrs, 2 decimals).
  • Specification Fee (14:12–14:21): 0.15 hrs × ¥0.03/hr = ¥0.0045

Cost & Billing Management

Viewing Bills & Usage

Checking Specification Fees

Export from Bill Details page. In hourly-aggregated bills, locate Category Total Price column for your KB’s specification fee.
Instance ID in screenshot = KB ID.
Filter Product Name = Large Language Model Platform Bailian, Item Name = Bailian Knowledge Base (RAG) - Pay-as-you-go, to view billing items (e.g., Standard Edition - Compute Resource) and unit prices (e.g., ¥0.03/(unit × hr)).

Checking Token Consumption & Associated Costs

Export from Bill Details page. Hourly-aggregated bills show Usage (tokens) and Category Total Price columns. Viewing Embedding Model Usage
Hover over Instance ID in bill: If ID format is llm-xxx;xxx-embedding-xxx;embedding_token;RAG;0, it’s embedding-model-generated.
In Bill Details, set Billing Date = Monthly, Product Name = Large Language Model Platform Bailian, Item Name = Bailian LLM Inference, Include Zero Amount = Yes. Table shows hourly token usage, service start/end times, item name, usage, unit ("1,000 Tokens"), official list price, and category total. Viewing Reranking Model Usage
Hover over Instance ID: If ID format is llm-xxx;xxx-rerank;embedding_token;RAG;0, it’s reranking-model-generated.
In Bill Details, filter Product Name = Large Language Model Platform Bailian, Item Name = Bailian LLM Inference. Look for Item Name = "Text Embedding Usage" to see hourly usage (unit: "1,000 tokens") and associated category totals.

Cost Allocation (Tagging)

To allocate costs across departments/projects, use tags to label Workspaces. Step 1: Get Workspace Info
In Workspace Management, identify the Workspace ID (e.g., llm-xxx) for tagging.
Step 2: Bind Tags
  1. Go to Tag Management → select Bind Tags to Resources.
  2. Choose Input Multiple Resource IDs, search/select "Large Language Model Platform Bailian: Workspace", pick region, enter Workspace ID, then click Bind Tags.
  3. Create new tag key-value pairs or select existing ones → click Confirm to bind.
Post-binding, a confirmation dialog displays resource IDs, status, and failure reasons. Click OK after verification.
Step 3: Verify
You’ve now tagged your Bailian workspace. Verify in Bill Details via the Instance Tags column.
New instance tags may take hours to appear.
Filter Product Name = Large Language Model Platform Bailian, Item Name = Bailian Knowledge Base (RAG) - Pay-as-you-go.

Overdue Payments

Upon account arrears, all KBs enter Service Suspended state (no console/API retrieval/update/creation) and billing stops. Vector Storage: Platform Storage
DurationDescription
0–14 daysKBs inaccessible via console/API, but data retained. Full payment within 14 days restores service automatically.
≥15 daysOn Day 15, KBs are deemed abandoned. Bailian releases KBs and permanently deletes data—irrecoverable.
Vector Storage: Self-provisioned ADB-PG
DurationDescription
0–7 daysKBs inaccessible via console/API, but data retained. Full payment within 7 days restores service automatically.
≥8 daysOn Day 8, ADB-PG service is deemed abandoned. ADB-PG cleans related instances and permanently deletes data—irrecoverable.
Self-provisioned ADB-PG follows ADB-PG’s 7-day (not 14-day) overdue policy.

Refunds

Pay-as-you-go billing is based on actual runtime—no refunds apply.

Frequently Asked Questions

Can sub-accounts activate KBs or view bills?

Yes. Authorized sub-accounts (with policies AliyunBailianFullAccess or AliyunSFMFullAccess) can activate KBs—the costs are billed to the primary account.

What does “free storage” mean for Standard/Enterprise Editions?

Only platform storage is free. Self-provisioned ADB-PG incurs separate ADB-PG fees—not included in KB billing.

My KB data exceeds Enterprise Edition platform storage—what should I do?

During KB creation, select your self-provisioned ADB-PG instance as vector storage. See Create KB for configuration steps.

How are specification changes billed across hours?

Billed in segments based on effective time. Within one hour, prorated by time ratio. See Prorated Billing for Spec Changes for examples.

Why is my Reranking fee unusually high? How to reduce model invocation costs?

Reranking fees depend on total initially recalled chunks, not final returned results. See Cost Optimization Recommendations for reduction strategies.

How to completely stop KB billing? Does deleting files suffice?

No. The only way to stop billing is to delete the entire KB instance.
  • Incorrect: Deleting files clears data but leaves the KB instance (billing entity) active—specification fees continue.
  • Correct: Locate the KB instance in the console and perform deletion.
Deletion permanently removes all KB data with no recovery option. Proceed with extreme caution.

Why does Reranking model invocation count exceed app calls?

This is an automatic performance optimization. When large batches of chunks are sent to the Reranking model, the system splits them into smaller batches (Batch) for faster processing. This increases recorded invocation counts, but total cost remains unchanged, as billing depends solely on total token consumption—not call count.