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

# Get the billing overview

> Returns the organization's billing mode and currency, its credit balance (with the charges not yet settled), how far below zero it may go, and the auto-refill settings and state. The balance and the auto-refill amounts are always in USD: `currency` is only what payments are charged in. Requires the `manage:read` scope.



## OpenAPI

````yaml https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/billing/
openapi: 3.0.3
info:
  title: Organization Management
  version: '2.0'
  description: Your project description
servers:
  - url: https://api.edenai.run
security: []
paths:
  /v3/manage/billing/:
    get:
      tags:
        - Billing
      summary: Get the billing overview
      description: >-
        Returns the organization's billing mode and currency, its credit balance
        (with the charges not yet settled), how far below zero it may go, and
        the auto-refill settings and state. The balance and the auto-refill
        amounts are always in USD: `currency` is only what payments are charged
        in. Requires the `manage:read` scope.
      operationId: manage_billing_retrieve
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManageBilling'
          description: ''
      security:
        - ManagementKeyAuth: []
components:
  schemas:
    ManageBilling:
      type: object
      properties:
        billing_mode:
          type: string
          description: '`prepaid` (credits bought ahead) or `postpaid` (invoiced monthly).'
        currency:
          type: string
          nullable: true
          description: >-
            What payments are charged in, `usd` or `eur`; null until set. It is
            not the currency of `balance`.
        balance:
          type: number
          format: double
          maximum: 100000000000
          minimum: -100000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          description: Credits left, always in USD whatever `currency` says.
        postpaid_unbilled_usage:
          type: number
          format: double
          maximum: 100000000000
          minimum: -100000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
          description: Usage not invoiced yet this period; null for a prepaid organization.
        credit_overdraft_limit:
          type: number
          format: double
          maximum: 1000000000000
          minimum: -1000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          description: How far below zero the balance may go.
        auto_refill:
          $ref: '#/components/schemas/ManageAutoRefill'
      required:
        - auto_refill
        - balance
        - billing_mode
        - credit_overdraft_limit
        - currency
        - postpaid_unbilled_usage
    ManageAutoRefill:
      type: object
      properties:
        enabled:
          type: boolean
        threshold:
          type: integer
          description: A refill starts when the balance falls below this many credits.
        amount:
          type: integer
          description: Credits bought by each refill.
        monthly_limit:
          type: integer
          nullable: true
          description: >-
            The most credits refills may buy in a calendar month; null for no
            limit.
        credits_bought_this_month:
          type: number
          format: double
          readOnly: true
        status:
          type: string
          nullable: true
        last_failure:
          nullable: true
          description: >-
            Why the last refill failed (reason, decline code, when), until one
            succeeds.
      required:
        - amount
        - credits_bought_this_month
        - enabled
        - last_failure
        - monthly_limit
        - status
        - threshold
  securitySchemes:
    ManagementKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        A management key (created from the organization dashboard or with `POST
        /v3/manage/auth-keys`), sent as `Authorization: Bearer
        <management_key>`. Inference API keys (`sk-eden...`) are not accepted on
        these endpoints.

````

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