---
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

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/revisions/29a1e4db152c/schema)
