> For the complete documentation index, see [llms.txt](https://docs.apexsolutions.lol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apexsolutions.lol/api-reference/balance.md).

# Balance

Check your available credits and rate limits.

Returns the available and reserved credits plus the account's rate-limit and concurrency allowance.

### Credits and limits

`available` is what you can spend, `reserved` is what in-flight solves hold, and `total_consumed` is what the account has spent. `rate_limit_per_second` and `max_concurrent_solves` cap how fast and how many solves can run at once.

### Errors

A missing or invalid API key returns `401 invalid_api_key`; an account that does not exist returns `404 resource_not_found`.

## Get account balance

> Returns your available and reserved credits plus the account's\
> rate-limit and concurrency allowance.<br>

```json
{"openapi":"3.0.3","info":{"title":"Apex Platform","version":"1.0.0"},"tags":[{"name":"Balance","description":"Returns the available and reserved credits plus the account's\nrate-limit and concurrency allowance.\n\n## Credits and limits\n\n`available` is what you can spend, `reserved` is what in-flight solves\nhold, and `total_consumed` is what the account has spent.\n`rate_limit_per_second` and `max_concurrent_solves` cap how fast and how\nmany solves can run at once.\n\n## Errors\n\nA missing or invalid API key returns `401 invalid_api_key`; an account\nthat does not exist returns `404 resource_not_found`.\n"}],"servers":[{"url":"https://api.apexsolutions.lol"}],"paths":{"/balance":{"get":{"tags":["Balance"],"summary":"Get account balance","description":"Returns your available and reserved credits plus the account's\nrate-limit and concurrency allowance.\n","parameters":[{"name":"Authorization","in":"header","required":true,"description":"Your API key for authentication.","schema":{"type":"string"}}],"responses":{"200":{"description":"Account balance and limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Account not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Balance":{"type":"object","properties":{"available":{"type":"integer","description":"Credits available to spend."},"reserved":{"type":"integer","description":"Credits reserved by in-flight solves."},"total_consumed":{"type":"integer","description":"Credits consumed in total."},"rate_limit_per_second":{"type":"integer","description":"Solves allowed per second for this account."},"max_concurrent_solves":{"type":"integer","description":"Maximum concurrent solves for this account."}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code."},"message":{"type":"string","description":"Human-readable error message."}}}}}}}}
```
