SupportConsole
Tickets
Navigation

Getting Started
Registration and Account SetupFirst Order: From Registration to Power-OnConsole Navigation and Common Entry PointsGetting Started: Terms and Concepts
Cloud Server Operations
Connection and Login: SSH Key, Password, VNC / noVNCUnable to Connect and Self-Service Outage TroubleshootingPower On, Shutdown, and RestartSystem Reinstallation, Public Images, and Custom ISOSnapshots and BackupsDisk Configuration and ResizingBandwidth, Traffic, and PortsIP AddressesMigration, Cloning, and Changing Data CentersCreation, Deployment, and DeliverySuspension, Deletion, and RecoveryPerformance AnomaliesCommon Console Error ReferenceUsage Limits and Common QuestionsHow to Manually Configure IPv6 in Nube CloudHow to Access Nube Cloud Virtual Machines Using SSH KeysQuotas, Credit Line, and Balance
Bare Metal Servers
Bare Metal Server (Dedicated Server / Bare Metal) RentalBare Metal Delivery and Rack InstallationBare Metal Customization and ColocationBare Metal Cancellation, Reclamation, and RefundsPioneer Program
Network, IP & Routes
Network Route Types: International Lite, International Optimized, and China OptimizedSelf-Service Network Troubleshooting: Unreachable, Packet Loss, Latency, and JitterHome Broadband IPs and Residential Broadband: Activation and TrialIP Prefix Leasing, Announcements, ASN, and RPKI RequestsChanging Network Lines, Replacing IPs, and Adjusting RoutesPort Blocking and GFW Blocking: IP Replacement, Port 25, and UnblockingTest IPs, Looking Glass, and Paid TestingCommon Network IssuesHong Kong Anti-DDoS China-Optimized Service Quota GuideWhat's the Difference Between International Lite and International Optimized?DDoS Protection and China Optimized Quota
DDoS
CDN Activation, Configuration, and MigrationCDN Plans, Renewal, and Traffic Rules
AI API
Model List, Capabilities, and AvailabilityError-Code Troubleshooting: 400, 403, 429, 503, and Thinking BlocksRate Limits, Concurrency, and Quota RulesBilling and Usage: Token Accounting, Caching, and Billing DisputesAI API Integration GuideModel Technical Notes: Deployment, Quantization, and Capabilities
Support/
Service & Products

Billing and Usage: Token Accounting, Caching, and Billing Disputes

This article explains AI API billing (three token tiers), cache billing, how to check usage, and how to dispute an unexpected charge.

1. Billing method: three token tiers

AI API is pay-as-you-go. Every 1M tokens has three rates:

TierMeaningDetails
Input (cache miss)Newly submitted, uncached promptMost expensive input tier
Input (cache hit)Prefix that hits KV CacheCheapest, about a few dozen times cheaper than a miss
OutputContent generated by the modelUsually the most expensive

Always list all three tiers when comparing prices. Looking only at “input/output” can lead to incorrect conclusions.

2. Current prices (example)

Unit: USD / 1M tokens

ModelInputCache hitOutput
DeepSeek-V4.1-Flash0.1350.00270.54
GLM-5.3-Flash0.08250.01650.275
GLM-5.30.630.1171.98
Kimi-K2.60.42750.0721.8
Kimi-K31.950.1959.75

These figures reflect one point in time. Use the Console pricing catalog: https://console.nube.sh/ai-model/api | Pricing API: https://ai.nube-api.com/v1/models/pricing

Difference from official pricing

  • Official channels mostly use time-of-day pricing (peak / off-peak), while Nube uses a uniform price all day;
  • At current official prices, Nube is roughly 40%–70% of the official price;
  • Official peak hours are 09:00–12:00 and 14:00–18:00 Beijing time, Monday through Friday; other periods are off-peak.

3. Can prices change?

Yes. Platform prices change dynamically with upstream compute and market costs.

ItemDetails
Pricing principlePrices change dynamically with upstream compute and market costs
Price noticesNo email notices; use the Console pricing catalog and pricing API
Price ceiling commitmentNormally kept within 70% of major cloud providers’ / official Pay-As-You-Go prices
Typical rangeUsually 40%–70% of official prices

Procurement advice: if you purchase a fixed plan and are concerned about fluctuations, tell support your usual models and estimated usage so they can assess a suitable usage plan.

4. KV Cache billing

How cache hits are charged

  • The hit portion is charged at the cache-hit rate (far below a miss);
  • The platform automatically caches prefixes; you do not need to enable it manually.

Known display bug (important)

The backend UI may display a cache hit as a “miss,” but billing is correctly calculated at the hit rate.

The platform has confirmed repeatedly:

  1. A single request’s cache-hit display is incorrect;
  2. The actual charge is correct;
  3. There is no overbilling or underbilling.

Why there is sometimes no cache hit at all

Two occasional causes:

SituationDetails
Model restart / rolling updateThe request lands on a newly started instance with no cache
Request assigned to a different processing instanceThe request may have no reusable prefix cache

These situations normally recover automatically. Check whether they occur “occasionally at a certain time” or “continuously.”

What breaks the cache

  • Changing the request body resets the cache prefix, such as switching the thinking field;
  • To improve hit rates, keep the request prefix stable (consistent system prompt and history structure).

5. Check usage

EntryAddress
Usage overviewhttps://console.nube.sh/en-us//ai-model/api/usage
Request logsSame page → API Logs
Pricing cataloghttps://console.nube.sh/ai-model/api

Notes:

  • Console charges may have statistical delays (especially in Playground);
  • A page showing 500 / missing charts is a UI issue and does not affect actual billing;
  • When reconciling, choose the correct time range (the billing cycle may differ from the period you expect).

6. How to dispute an unexpected charge

Check first (most “expensive” charges are misunderstandings):

  1. Did you look at only one rate and overlook the input/output/cache tiers?
  2. Is the time range wrong (for example, the billing cycle is a full month, not a few days)?
  3. Is there a client infinite loop repeatedly sending the entire history?
  4. Is there a single oversized input (such as 900,000 tokens)?
  5. Is a very long output causing the delay and high cost?

If you still suspect an error, provide:

MaterialDetails
Key aliasDo not post the full Key
Request IDMost important; used to check one request’s details
Time rangeInclude the time zone
Number you see vs. expected numberHelps reconciliation

Support can provide token details for a single request (prompt / completion / cached_tokens) and the billing process. If there is a platform error, it will be handled based on the facts.

7. Bulk usage and discounts

  • Pay-as-you-go, uniform pricing; there are currently no account-level / Key-level dedicated discounts;
  • If usage remains high throughout the month, contact support again to assess a possible volume discount.

8. Frequently asked questions

QuestionAnswer
How many pricing tiers are there?Input miss / cache hit / output: three tiers
How much cheaper is a cache hit?About a few dozen times cheaper than a miss
Does “miss” mean I was overcharged?No. It is a display bug; billing uses the hit rate.
Can prices rise arbitrarily?They change dynamically but are committed to staying within 70% of official prices; no email notice is sent, so use the pricing catalog / API.
Is there time-of-day pricing?No. Nube uses a uniform price all day.
Are failed requests billed?No.
Are requests exceeding context billed?Rejected requests are not billed.
Are discounts available?No dedicated discount currently; monthly high usage can be discussed.
Is there a price calculator?Not currently.
Can account balance be refunded?Yes, with a processing fee (≤100 USD: 3 USD; >100 USD: 3%); see Error-Code Troubleshooting: 400, 403, 429, 503, and Thinking Blocks and the refund policy.

9. Related articles

  • API Integration Guide: AI API Integration Guide
  • Error troubleshooting: Error Troubleshooting: 400, 403, 429, 503, and Thinking Blocks
  • Rate limits and concurrency: Rate Limits, Concurrency, and Quota Rules
  • Refunds and balance: Refund, Cancellation, and Unsubscription Policy