> For the complete documentation index, see [llms.txt](https://developer.hyper3d.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.hyper3d.ai/api-specification/check_balance_reset_v.md).

# Check Balance

{% openapi src="/files/Loq5rJmt4RM9YPcKaDp9" path="/api/v2/check\_balance" method="get" %}
[public-api.json](https://3170127470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fve7H9sNOF32Exg6OAhKo%2Fuploads%2Fgit-blob-8b3e8c417bade1e10d0190a05b80cfb0b4f9c3bb%2Fpublic-api.json?alt=media\&token=dadacf4c-0d41-4413-aeb2-aef74447d787)
{% endopenapi %}

Call this API endpoint to check the remaining credits in your account.

### Pricing

We do not charge any addtional credits for calling this API to check your balance.

### Request

#### Authentication

This API uses bearer key for authentication. You need to include a valid token in the `Authorization` header for all requests.

```
Authorization: Bearer RODIN_API_KEY
```

### Response

The JSON response has the following fields.

| Property | Type | Description         |
| -------- | ---- | ------------------- |
| balance  | int  | Balance of account. |

### Examples

{% tabs %}
{% tab title="Request with cURL" %}

```bash
export RODIN_API_KEY="your api key"
curl --location 'https://api.hyper3d.com/api/v2/check_balance' \
--header 'Authorization: Bearer JWT'
unset RODIN_API_KEY
```

{% endtab %}

{% tab title="Request with Python3" %}

```python
import requests

# Constants
ENDPOINT = "https://api.hyper3d.com/api/v2/check_balance"
API_KEY = os.getenv("HYPER3D_API_KEY")

# Prepare the headers
headers = {
    'Authorization': f'Bearer {API_KEY}',
}

# Make the GET request
response = requests.get(ENDPOINT, headers=headers)

# Parse and return the JSON response
print(response.json())

```

{% endtab %}
{% endtabs %}
