Endpoints
GET /balance
Check your account balance and subscription details.
POST /getBalance
Returns your current account balance and, optionally, subscription/plan details.
Request
{
"api_key": "YOUR_API_KEY"
}{
"clientKey": "YOUR_API_KEY"
}| Field | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your API key. |
Response
New format — includes full account info:
{
"errorId": 0,
"balance": 12.5432,
"currency": "USD",
"account": {
"balance": 12.5432,
"currency": "USD",
"plan": {
"name": "Pay-as-you-go",
"threads": 5,
"valid_until": "2026-07-12T00:00:00Z"
}
}
}| Field | Type | Description |
|---|---|---|
errorId | integer | 0 = success. |
balance | float | Current account balance in USD. |
currency | string | Always "USD". |
account.balance | float | Same as top-level balance. |
account.plan | object | Active plan details. null if no active plan. |
account.plan.name | string | Plan name (e.g. "Pay-as-you-go", "Pro"). |
account.plan.threads | integer | Max concurrent solving threads. |
account.plan.valid_until | string | Plan expiry date (ISO 8601). Omitted for pay-as-you-go. |
Legacy format — returns only the balance:
{
"errorId": 0,
"balance": 12.5432
}Error:
{
"errorId": 2,
"errorMessage": "Invalid API key"
}