Skip to content

Alibaba Cloud ​

中文 Docs

Alibaba Cloud has both channels. The billing API gives each product's total for the month; the bill details export gives instance-level rows, including Model Studio (百炼) per model with token counts. Use the API for an account kept up to date by itself, and import the export when you want the finer reading — an imported month is never overwritten by a refresh.

Billing API ​

  1. Open the RAM console and create a RAM user for API access.
  2. Attach the built-in AliyunBSSReadOnlyAccess system policy.
  3. Create an AccessKey for the user.
  4. Add the account in CloudBridge with the AccessKey ID and Secret.

Do not use the primary account's AccessKey. The billing API has no per-query fee documented here; check Alibaba Cloud's current terms. See Provider permissions.

Bill details export ​

In the console, go to Expenses and Costs → Bill Details → Export, download the full bill and click Import on the account's row. An import needs no credentials. See Bill file import.

Released under the MIT License.