---
title: "Get group AI spend"
method: GET
path: "/api/v2/groups/{group}/ai/spend"
tags: ["Enterprise"]
---

# Get group AI spend

`GET /api/v2/groups/{group}/ai/spend`

Returns the AI spend limit and aggregate spend for the group.

## Path parameters

- `group` string, uuid, required

## Response `200`

OK

- CodersdkGroupAISpend
  - `current_spend_micros` integer — CurrentSpendMicros is the group's spend over the current budget period.
  - `group_id` string, uuid
  - `period_end` string, date-time — PeriodEnd is the exclusive upper bound of the current budget period.
  - `period_start` string, date-time — PeriodStart is the inclusive lower bound of the current budget period.
  - `spend_limit_micros` integer — SpendLimitMicros is the group's configured AI spend budget per member. Null when the group has no configured budget.
  - `total_spend_limit_micros` integer — TotalSpendLimitMicros is the currently configured combined budget of the members attributed to this group, with each member's override replacing their share. Null when the group has no budget, and zero when no members are attributed to it.

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
