---
title: "Get the monthly spend forecast"
method: GET
path: "/v1/ai-cost-management/events/forecast"
tags: ["usage-events"]
---

# Get the monthly spend forecast

`GET /v1/ai-cost-management/events/forecast`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/events/forecast`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns the organization's recorded and predicted spend, in US dollars, for each day of the current calendar month in `time_zone`. For a caller whose access covers only particular principals or groups, the operation reads only the events of those principals and groups. The prediction trains on up to 28 completed days, and the day in progress never counts. Each series covers at most one calendar month, so the response isn't paginated.

Predictions are statistical estimates. They don't check or enforce any budget.

## Query parameters

- `method` 'auto' | 'weekly_seasonal' | 'linear_regression' | 'exponential_smoothing'
- `time_zone` string, iana-time-zone

## Response `200`

The month's recorded daily spend and the forecast for the rest of the month.

- object
  - `period` object, required: The calendar month the forecast covers: the current month in `time_zone`.
    - `starts_at` string, date-time, required: The start of the month, as an RFC 3339 timestamp in UTC.
    - `ends_at` string, date-time, required: The end of the month, as an RFC 3339 timestamp in UTC. The month ends just before this time.
    - `time_zone` string, iana-time-zone, required: The IANA time zone of the month and its days. `UTC` when the request omits `time_zone`.
  - `observed_at` string, date-time, required: The end of the observed history, as an RFC 3339 timestamp in UTC. It's the start of the day in progress in `time_zone`, so `actual` and the training history cover only the completed days before it.
  - `generated_at` string, date-time, required: When the service computed the forecast, as an RFC 3339 timestamp in UTC.
  - `method` 'weekly_seasonal' | 'linear_regression' | 'exponential_smoothing', required: The method the service used. For a request with `auto`, it's the method that `auto` chose, so it's never `auto`.
  - `status` 'ready' | 'insufficient_history', required: Whether the forecast has predictions. It's `ready` when `predicted` holds them. It's `insufficient_history` when `method` has fewer completed training days than it needs, and `predicted` is then empty.
  - `training` object, required: The completed days whose spend trains the prediction, at most the last 28. Days before the organization's first event since the start of the previous month don't count, and later days without events count as zero spend.
    - `starts_at` string, date-time, nullable, required: The start of the training history, as an RFC 3339 timestamp in UTC. `null` when no completed day since the start of the previous month has an event.
    - `ends_at` string, date-time, required: The end of the training history, as an RFC 3339 timestamp in UTC. The history ends just before this time, which equals `observed_at`.
    - `days` integer, required: The number of completed days in `time_zone` that train the prediction, at most 28.
  - `actual` object[], required: The recorded spend for each completed day of the month, oldest first.
    - `date` string, date, required: The calendar date in `time_zone`, such as `2026-09-01`.
    - `spend` AICostMoney, required: The day's spend. In `predicted`, it's an estimate.
      - `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`.
    - `cumulative_spend` AICostMoney, required: The month's spend up to and including this day. In `predicted`, it's the recorded spend plus the estimates up to this day.
      - `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`.
  - `predicted` object[], required: The predicted spend for each remaining day of the month, from the day of `observed_at` through the last day, oldest first. Empty when `status` is `insufficient_history`.
    - `date` string, date, required: The calendar date in `time_zone`, such as `2026-09-01`.
    - `spend` AICostMoney, required: The day's spend. In `predicted`, it's an estimate.
      - `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`.
    - `cumulative_spend` AICostMoney, required: The month's spend up to and including this day. In `predicted`, it's the recorded spend plus the estimates up to this day.
      - `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`.

## Other responses

- `400`: A query parameter is invalid. `invalid_parameters` names each invalid parameter. An unknown or repeated parameter counts as invalid.
- `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.

## 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/events/forecast/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)
