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

# Get inference balance

> Reads the org's prepaid Aether inference balance in microdollars, with the terms a top-up of it is priced by.

Use this tool when you need to:
- Check how much Aether inference the org has left, such as after a task was refused with 402 insufficient_inference_balance
- Price a top-up before opening checkout

Examples:
- GET /orgs/{orgID}/billing/inference-balance

Hints:
- orgID is the org's uuid; no other parameter. balance_microdollars is in millionths of a US dollar and can be negative after a request settles past the last admitted balance, or after a refunded top-up takes back balance already spent.
- top_up carries min_usd and max_usd, the amount bounds (5 and 5000), and fee_basis_points and min_fee_usd, the processing fee as a percentage with a floor (550, 5.5% rounded up to the cent, and 0.8 USD): the numbers the API charges on the web. A store top-up adds no fee.
- Use createBillingCheckoutSession instead to buy a top-up (checkout_type inference_topup).
- Every role of the org reads it, with a session or a platform API key; a caller who is not a member is refused with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed; 500 when the balance cannot be read.



## OpenAPI

````yaml api-reference/openapi.json GET /orgs/{orgID}/billing/inference-balance
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/billing/inference-balance:
    get:
      tags:
        - billing
      summary: Get inference balance
      description: >-
        Reads the org's prepaid Aether inference balance in microdollars, with
        the terms a top-up of it is priced by.


        Use this tool when you need to:

        - Check how much Aether inference the org has left, such as after a task
        was refused with 402 insufficient_inference_balance

        - Price a top-up before opening checkout


        Examples:

        - GET /orgs/{orgID}/billing/inference-balance


        Hints:

        - orgID is the org's uuid; no other parameter. balance_microdollars is
        in millionths of a US dollar and can be negative after a request settles
        past the last admitted balance, or after a refunded top-up takes back
        balance already spent.

        - top_up carries min_usd and max_usd, the amount bounds (5 and 5000),
        and fee_basis_points and min_fee_usd, the processing fee as a percentage
        with a floor (550, 5.5% rounded up to the cent, and 0.8 USD): the
        numbers the API charges on the web. A store top-up adds no fee.

        - Use createBillingCheckoutSession instead to buy a top-up
        (checkout_type inference_topup).

        - Every role of the org reads it, with a session or a platform API key;
        a caller who is not a member is refused with 403
        org_membership_required, an orgID that is not a uuid with 400, and an
        agent host's grant with 403 agent_host_route_not_allowed; 500 when the
        balance cannot be read.
      operationId: getBillingInferenceBalance
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceBalance'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Gone
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Internal Server Error
components:
  schemas:
    InferenceBalance:
      additionalProperties: false
      properties:
        balance_microdollars:
          format: int64
          type: integer
        top_up:
          $ref: '#/components/schemas/InferenceTopUpTerms'
      required:
        - balance_microdollars
        - top_up
      type: object
    BillingErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - bad_gateway
            - bad_request
            - checkout_pending
            - cli_upgrade_required
            - client_outdated
            - conflict
            - enterprise_invoice
            - forbidden
            - free_tier
            - gateway_timeout
            - gone
            - internal_error
            - invalid_surface
            - managed_elsewhere
            - method_not_allowed
            - no_billing_history
            - not_acceptable
            - not_found
            - not_implemented
            - payment_delinquent
            - payment_required
            - personal_org_requires_personal_plan
            - precondition_failed
            - provider_unavailable
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - requires_org_admin
            - service_unavailable
            - subscription_active
            - subscription_pending
            - team_org_requires_team_plan
            - team_plan_web_only
            - team_seats_via_membership
            - unauthenticated
            - unsupported_media_type
            - validation_failed
            - warm_slot_occupied
            - web_only
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    InferenceTopUpTerms:
      additionalProperties: false
      properties:
        fee_basis_points:
          format: int64
          minimum: 0
          type: integer
        max_usd:
          format: double
          minimum: 0
          type: number
        min_fee_usd:
          format: double
          minimum: 0
          type: number
        min_usd:
          format: double
          minimum: 0
          type: number
      required:
        - min_usd
        - max_usd
        - fee_basis_points
        - min_fee_usd
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.