# Queue, stats and usage

> Watch your queue, success rate, durations and engine capacity, and read your credit balance and daily usage per engine, without spending credits.

Endpoints to watch your queue, read statistics and check capacity. None of them costs credits.

## Queue

| Action | Request |
| --- | --- |
| Your queued and running tasks, batch items not queued yet, concurrency used and limit | `GET /v1/queue` |
| Cancel every queued task and pending batch item | `DELETE /v1/queue` |

Cancelled tasks end `FAILED` with `TASK_CANCELLED` and their credits are released.

## Statistics

`GET /v1/stats?hours=24` returns counts by status and engine, the success rate, durations and the most common errors. Use `from` and `to` (dates or date-times) for a fixed range.

## Capacity

`GET /v1/capacity` returns, per engine, its status and queue depth. `GET /v1/capabilities` returns the engines you can use, their prices and countries.

## Credits and usage

| Question | Request |
| --- | --- |
| What is my balance? | `GET /v1/credits` |
| What did I use each day? | `GET /v1/usage?from=2026-11-01&to=2026-11-30` |

Prices per plan and per engine: [Plans and credits](https://promptgale.com/docs/plans-and-credits.md).

## Utilities

`POST /v1/google/goto` with `{"url":"https://www.google.com/goto?url=..."}` returns the page a Google redirect leads to.

## Deprecated paths

These older paths keep working and answer `Deprecation: true` with a `Link` to the new path: `/v1/async/task`, `/v1/async/task/batch`, `/v1/async/task/{id}`, `/v1/async/task/grid`, `/v1/async/task/grid/{id}`, `/v1/async/status`, `/v1/async/queue`, `/stats`, `/capacity`. Use the paths in the [API reference](https://promptgale.com/docs/endpoints.md) in new code.

---

Docs index: https://promptgale.com/llms.txt · Full reference: https://promptgale.com/llms-full.txt · OpenAPI: https://promptgale.com/v1/openapi.json
