> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiif.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Token Balance

> Get the remaining and used balance of the current API Key (token).



## OpenAPI

````yaml get /v1/balance
openapi: 3.0.0
info:
  title: Image Generation APIs
  version: 1.0.0
  description: >-
    Converted from image-markdown/*.md — each file exposed as a dedicated POST
    path.
servers:
  - url: https://apiif.com
    description: Primary API server
security:
  - BearerAuth: []
paths:
  /v1/balance:
    get:
      summary: Query Token Balance
      description: Get the remaining and used balance of the current API Key (token).
      responses:
        '200':
          description: Token balance retrieved
          content:
            application/json:
              example:
                success: true
                remain_balance: 10.5
                used_balance: 2.3
                unlimited_quota: false
        '401':
          description: Invalid authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
      security:
        - BearerAuth: []
components:
  schemas:
    APIError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            type:
              type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Token

````