---
title: "What is billing me right now"
method: GET
path: "/v1/billing/active"
tags: ["machines"]
---

# What is billing me right now

`GET /v1/billing/active`

Lists every API-billed machine currently metering your wallet (running OR stopped — stopped bills at the storage-only rate). current_run_rate_cents_per_hour is the summed instantaneous burn rate. Test-mode keys return an empty fleet (active: [], rate 0). 1 credit = 1 cent.

## Response `200`

Currently-metering fleet.

- BillingActiveResponse
  - `active` BillingActiveItem[], required — Every API-billed machine currently metering (running OR stopped). Empty for test-mode keys.
    - `machine_id` string, required
    - `display_name` string, required
    - `status` 'running' | 'starting' | 'stopping' | 'restarting' | 'stopped' | 'suspended', required
    - `os_type` 'linux' | 'windows', required
    - `rate_cents_per_hour` integer, required — Hourly rate in this machine's current state.
    - `running_credits_per_hour` integer, required
    - `stopped_credits_per_hour` integer, required
    - `accrued_cents` integer, required — Cost of the current metering segment so far.
    - `since` string, date-time, nullable — When the current segment started.
    - `total_credits_billed` integer, required
    - `suspended_for_billing` boolean, required
    - `auto_destroy_at` string, date-time, nullable
    - `ttl_minutes` integer, nullable
  - `current_run_rate_cents_per_hour` integer, required — Summed instantaneous burn rate across the active list — total cents/hour right now.
  - `request_id` string, required

## Other responses

- `400` — Invalid request body or parameters.
- `401` — Missing, invalid, or revoked API key. Pass `X-API-Key: sk-coasty-live-...` (or test).
- `403` — API key lacks the required scope or tier-feature is unavailable on the caller's plan.
- `404` — Resource not found in this key's namespace.
- `409` — The resource state conflicts with this operation.
- `413` — The request body exceeds the endpoint limit.
- `422` — The JSON shape is valid but one or more values violate the endpoint contract.
- `429` — Rate or concurrency limit exceeded.
- `500` — Unexpected server error. Retry with exponential backoff.
- `502` — An upstream dependency returned an invalid response.
- `503` — A required service is temporarily unavailable.
- `504` — An upstream dependency timed out.

---

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