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

# Get Team Balance

> Returns the current available balance for the team associated with the provided API Key. The balance is returned in USD with 4 decimal places.



## OpenAPI

````yaml /common-api/get-team-balance.json get /api/v1/team/balance
openapi: 3.1.0
info:
  description: >-
    Query the current balance of the team associated with the authenticated API
    Key.
  version: 1.0.0
  contact:
    name: Modellix API Support
    email: support@modellix.ai
  title: Team Balance API
servers:
  - url: https://api.modellix.ai/
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v1/team/balance:
    get:
      summary: Get Team Balance
      description: >-
        Returns the current available balance for the team associated with the
        provided API Key. The balance is returned in USD with 4 decimal places.
      operationId: getTeamBalance
      responses:
        '200':
          description: Successful response with team balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamBalanceResponse'
              examples:
                success:
                  summary: Current team balance
                  value:
                    code: 0
                    message: success
                    data:
                      balance: 100
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    TeamBalanceResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          description: Response code, 0 indicates success
          example: 0
        message:
          type: string
          description: Response message
          example: success
        data:
          type: object
          required:
            - balance
          properties:
            balance:
              type: number
              format: double
              description: Current team balance in USD with 4 decimal places
              multipleOf: 0.0001
              example: 100
    ErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: Error code
          example: 401
        message:
          type: string
          description: Error message
          example: Authentication failed
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API Key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 401
            message: 'Authentication failed: invalid API key'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 500
            message: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: Bearer YOUR_API_KEY'

````