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

# Get Compute Billing

> Get purchased compute machines and the org's compute pool usage.



## OpenAPI

````yaml GET /orgs/{org_id}/billing/compute
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/billing/compute:
    get:
      tags:
        - billing
      description: Get purchased compute machines and the org's compute pool usage.
      operationId: get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Compute machine fleet
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputeFleetSummary'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
      security:
        - bearer_auth: []
components:
  schemas:
    ComputeFleetSummary:
      type: object
      description: >-
        The org's compute pool: purchased machines, total capacity, and current
        draw.
      required:
        - machines
        - in_use
      properties:
        in_use:
          $ref: '#/components/schemas/ComputeAmount'
          description: Pool currently drawn by active deployments.
        machines:
          type: array
          items:
            $ref: '#/components/schemas/ComputeMachineStatus'
        pool:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ComputeAmount'
              description: |-
                Total pool capacity from purchased machines. `null` = unlimited
                (admin-granted).
    ErrorMessage:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code (e.g. `ALREADY_EXISTS`, `BAD_REQUEST`).
        message:
          type: string
          description: Human-readable description.
    ComputeAmount:
      type: object
      description: A compute amount expressed in both pool dimensions.
      required:
        - cpu_units
        - memory_mib
      properties:
        cpu_units:
          type: integer
          format: int64
          description: Fargate cpu units (1 vCPU = 1024).
        memory_mib:
          type: integer
          format: int64
          description: Memory in MiB.
    ComputeMachineStatus:
      type: object
      description: One machine size in the catalog, with the org's purchased quantity.
      required:
        - slug
        - vcpu
        - memory_mib
        - monthly_price_cents
        - purchased
      properties:
        memory_mib:
          type: integer
          format: int32
          description: Memory per machine in MiB.
        monthly_price_cents:
          type: integer
          format: int64
          description: Monthly price per machine in euro cents, before tax.
        purchased:
          type: integer
          format: int64
          description: Machines of this size currently purchased.
        slug:
          type: string
          description: >-
            Machine size identifier (`medium`, `large`, `xlarge`, `2xlarge`,
            `4xlarge`).
        vcpu:
          type: integer
          format: int32
          description: Virtual CPUs per machine.
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````