---
title: "Get account usage (serverless and dedicated deployments). Optionally filter by usage type via the usage_type field. If not specified, returns all usage types."
method: GET
path: "/v1/accounts/{account_id}/billingUsage"
tags: ["gateway.openapi_Gateway"]
---

# Get account usage (serverless and dedicated deployments). Optionally filter by usage type via the usage_type field. If not specified, returns all usage types.

`GET /v1/accounts/{account_id}/billingUsage`

## Path parameters

- `account_id` string, required

## Query parameters

- `startTime` string, date-time, required
- `endTime` string, date-time, required
- `usageType` 'USAGE_TYPE_UNSPECIFIED' | 'SERVERLESS' | 'DEDICATED_DEPLOYMENT'
- `timezone` string

## Response `200`

A successful response.

- GatewayAccountUsage
  - `serverlessCosts` AccountUsageServerlessUsage[]
    - `modelName` string
    - `apiKeyId` string
    - `promptTokens` string, int64
    - `completionTokens` string, int64
    - `startTime` string, date-time
    - `endTime` string, date-time
    - `audioInputSeconds` number, double
    - `usageType` string
  - `dedicatedCosts` AccountUsageDedicatedDeploymentUsage[]
    - `deploymentId` string
    - `acceleratorType` string
    - `acceleratorSeconds` string, int64
    - `startTime` string, date-time — Start timestamp of the usage. Note: Dedicated deployment usage events are aggregated daily. Only the date portion (YYYY-MM-DD) is used; the time portion is ignored.
    - `endTime` string, date-time — End timestamp of the usage. Note: Dedicated deployment usage events are aggregated daily. Only the date portion (YYYY-MM-DD) is used; the time portion is ignored.
    - `baseModel` string
    - `usageType` string

## Changes

- **2026-02-18** `407f0a0fd767` — 1 info
  - added the optional property `serverlessCosts/items/apiKeyId` to the response with the `200` status
- **2025-12-19** `e5a236c1c496` — 1 info
  - added the new optional `query` request parameter `timezone`
- **2025-11-13** `cf095a16263f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/changes/v1/accounts/:account_id/billingUsage/get.md)

---

[API](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/revisions/29a1e4db152c?raw)
