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

# Get Team Billing

> Return the team's wallet balance, settings, and configured usage limits.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/admin/teams/{team_id}/billing
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/admin/teams/{team_id}/billing:
    get:
      tags:
        - admin-teams
      summary: Get Team Billing
      description: Return the team's wallet balance, settings, and configured usage limits.
      operationId: get_team_billing_api_admin_teams__team_id__billing_get
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResponse_WalletBillingInfo_'
        '401':
          description: Authorization failed
        '403':
          description: Insufficient permissions
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    GenericResponse_WalletBillingInfo_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/WalletBillingInfo'
            - type: 'null'
          description: Response data
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Response status
      type: object
      title: GenericResponse[WalletBillingInfo]
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    WalletBillingInfo:
      properties:
        walletId:
          type: string
          title: Walletid
        userId:
          anyOf:
            - type: string
            - type: 'null'
          title: Userid
        teamId:
          anyOf:
            - type: string
            - type: 'null'
          title: Teamid
        balance:
          type: integer
          title: Balance
        currency:
          type: string
          title: Currency
        autoTopUpActive:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Autotopupactive
        monthlyInvoices:
          type: boolean
          title: Monthlyinvoices
          default: false
        limits:
          $ref: '#/components/schemas/UsageLimits'
      type: object
      required:
        - walletId
        - balance
        - currency
        - limits
      title: WalletBillingInfo
      description: >-
        Admin billing snapshot for a user/team wallet: balance, settings, and
        the

        configurable usage limits.
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
    UsageLimits:
      properties:
        spendLimit:
          type: integer
          title: Spendlimit
        overdraftLimit:
          type: integer
          title: Overdraftlimit
        preventInstanceTermination:
          type: boolean
          title: Preventinstancetermination
        instanceLimit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Instancelimit
        sandboxLimit:
          type: integer
          title: Sandboxlimit
        sandboxTotalCpuLimit:
          type: integer
          title: Sandboxtotalcpulimit
        sandboxTotalMemoryLimitGB:
          type: integer
          title: Sandboxtotalmemorylimitgb
        sandboxTotalStorageLimitGB:
          type: integer
          title: Sandboxtotalstoragelimitgb
        sandboxCreationsPerHourLimit:
          type: integer
          title: Sandboxcreationsperhourlimit
        sharedDiskLimit:
          type: integer
          title: Shareddisklimit
        sharedDiskTotalStorageGB:
          type: integer
          title: Shareddisktotalstoragegb
        imageLimit:
          type: integer
          title: Imagelimit
        imageTotalStorageGB:
          type: integer
          title: Imagetotalstoragegb
        rftRunLimit:
          type: integer
          title: Rftrunlimit
        rftTotalBatchLimit:
          type: integer
          title: Rfttotalbatchlimit
        loraDeploymentLimit:
          type: integer
          title: Loradeploymentlimit
        tunnelLimit:
          type: integer
          title: Tunnellimit
        tunnelTtlHours:
          type: integer
          title: Tunnelttlhours
        tunnelCreationsPerHourLimit:
          type: integer
          title: Tunnelcreationsperhourlimit
        httpPortLimit:
          type: integer
          title: Httpportlimit
        tcpPortLimit:
          type: integer
          title: Tcpportlimit
        vmSandboxLimit:
          type: integer
          title: Vmsandboxlimit
        vmSandboxGpuLimit:
          type: integer
          title: Vmsandboxgpulimit
      type: object
      required:
        - spendLimit
        - overdraftLimit
        - preventInstanceTermination
        - sandboxLimit
        - sandboxTotalCpuLimit
        - sandboxTotalMemoryLimitGB
        - sandboxTotalStorageLimitGB
        - sandboxCreationsPerHourLimit
        - sharedDiskLimit
        - sharedDiskTotalStorageGB
        - imageLimit
        - imageTotalStorageGB
        - rftRunLimit
        - rftTotalBatchLimit
        - loraDeploymentLimit
        - tunnelLimit
        - tunnelTtlHours
        - tunnelCreationsPerHourLimit
        - httpPortLimit
        - tcpPortLimit
        - vmSandboxLimit
        - vmSandboxGpuLimit
      title: UsageLimits
      description: |-
        The configurable per-wallet resource/spend limits (the values an admin
        can view and update). Live usage counts are not included.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````