# Account Balance

This endpoint returns the authenticated user’s email and available credit balance.

Authentication is required via the `x-api-key` header.\
Use this endpoint to check remaining credits before submitting jobs.

## Get Account Balance

> Retrieve the authenticated user's account details including available balance.

```json
{"openapi":"3.0.0","info":{"title":"Creative API","version":"1.0.0"},"servers":[{"url":"https://api.deepixels.co/v1","description":"Production Server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}}},"paths":{"/account/balance":{"get":{"summary":"Get Account Balance","description":"Retrieve the authenticated user's account details including available balance.","tags":["Account"],"responses":{"200":{"description":"User account details retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email"},"balance":{"type":"number","description":"Available balance"}}}}}},"400":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nudify.me/api/account-balance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
