---
title: "Get a budget's balance"
method: GET
path: "/v1/ai-cost-management/budgets/{budgetId}/balance"
tags: ["budgets"]
---

# Get a budget's balance

`GET /v1/ai-cost-management/budgets/{budgetId}/balance`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/budgets/{budgetId}/balance`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns a limit budget's spend, remaining amount, and projected spend in the budget window that contains `evaluated_at`. `derived` adds the balances of the derived budgets with the highest spend.

A caller who sees only their own derived budget reads that one. Its amounts count that caller's usage alone, and `derived` holds the caller's value, or is empty without usage in the budget window.

The amounts count the usage stored when the request runs. `latest_record_at` shows when the newest counted usage reached the service. Only a limit budget has a balance, so if the budget is an exemption, the request fails with `400`. If the organization has no budget with this identifier that the caller can see, or the identifier isn't a valid UUID, the request fails with `404`.

## Path parameters

- `budgetId` string, uuid, required

## Query parameters

- `size` integer
- `evaluated_at` string, date-time

## Response `200`

The budget's balance.

- object
  - `budget` AICostBudgetReference, required: The budget the balance belongs to.
    - `id` string, uuid, required: The `id` of the budget, which the budget operations take as `budgetId`.
  - `window` AICostTimeWindow, required: The budget window that contains `evaluated_at`.
    - `starts_at` string, date-time, required: When the budget window starts, as an RFC 3339 timestamp in UTC.
    - `ends_at` string, date-time, required: When the budget window ends and the next one starts, as an RFC 3339 timestamp in UTC.
  - `limit` AICostMoney, required: The limit that `remaining` is measured against.
    - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
    - `currency` 'USD', required: The currency of `value`.
  - `consumed` AICostMoney, required: The spend of all usage in the budget's scope during the budget window. With `each`, it's the total for the whole budget: each event counts once, including usage without a value for the `each` field.
    - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
    - `currency` 'USD', required: The currency of `value`.
  - `remaining` AICostMoney, required: The limit minus `consumed`. Negative once spend exceeds the limit.
    - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
    - `currency` 'USD', required: The currency of `value`.
  - `projected` AICostMoney, required: Where `consumed` ends the budget window at the current pace, rounded to the cent. The pace extrapolates `consumed` over the whole window from the share of the window that has elapsed at `evaluated_at`. That share counts as at least one twentieth, so a balance read at the very start of a window projects a bounded amount.
    - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
    - `currency` 'USD', required: The currency of `value`.
  - `evaluated_at` string, date-time, required: The time the balance is calculated for, as an RFC 3339 timestamp in UTC. It selects the budget window.
  - `latest_record_at` string, date-time, nullable, required: When the newest usage counted in the balance reached the service, as an RFC 3339 timestamp in UTC. It doesn't show that all earlier usage has arrived. `null` when no usage matches.
  - `derived` object[], required: The balances of the derived budgets with the highest spend, highest first, at most as many as the `size` query parameter allows. Empty for a budget without `each`.
    - `value` string, required: The value of the `each` field that defines this derived budget.
    - `consumed` AICostMoney, required: The spend of this derived budget in the budget window.
      - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
      - `currency` 'USD', required: The currency of `value`.
    - `remaining` AICostMoney, required: The limit minus this derived budget's `consumed`. Negative once spend exceeds the limit.
      - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
      - `currency` 'USD', required: The currency of `value`.
    - `projected` AICostMoney, required: Where this derived budget's `consumed` ends the budget window at the current pace, rounded to the cent.
      - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
      - `currency` 'USD', required: The currency of `value`.
  - `derived_truncated` boolean, required: `true` when more derived budgets exist than `derived` lists. It isn't a pagination cursor: `GET /v1/ai-cost-management/budget-balances` with `filter[budget.id]` lists the balance of every derived budget.

## Other responses

- `400`: A query parameter is invalid. `invalid_parameters` names each invalid parameter. An exemption also fails with this status, with `invalid_parameters` naming `budgetId`.
- `401`: The request has no valid access token. The token is missing, malformed, or expired, or it fails another check, and the response doesn't say which.
- `403`: The access token is valid, but its principal lacks the permission this operation requires. For an operation on one resource, the response doesn't reveal whether that resource exists.
- `404`: The organization has no budget with this identifier that the caller can see.

## Changes

- **2026-11-19** `3b071797f6e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/ai-cost-management/budgets/:budgetId/balance/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
