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

# Gets training GPU capacity

> Returns GPU capacity limits (baseline and peak) and current usage for the organization.



## OpenAPI

````yaml get /v1/training/capacity
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/training/capacity:
    get:
      summary: Gets training GPU capacity
      description: >-
        Returns GPU capacity limits (baseline and peak) and current usage for
        the organization.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTrainingGpuCapacityResponseV1'
      x-codeSamples:
        - lang: bash
          source: |
            curl --request GET \
            --url https://api.baseten.co/v1/training/capacity \
            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/training/capacity"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "GET",
                url,
                headers=headers,
                json={}
            )

            print(response.text)
components:
  schemas:
    GetTrainingGpuCapacityResponseV1:
      description: Response for the training GPU capacity endpoint.
      properties:
        gpu_capacities:
          description: Org-level GPU capacity limits and current usage per GPU type
          items:
            $ref: '#/components/schemas/TrainingGpuCapacityItemV1'
          title: Gpu Capacities
          type: array
        team_gpu_capacities:
          description: Per-team GPU capacity limits and current usage per GPU type
          items:
            $ref: '#/components/schemas/TeamTrainingGpuCapacityItemV1'
          title: Team Gpu Capacities
          type: array
      required:
        - gpu_capacities
      title: GetTrainingGpuCapacityResponseV1
      type: object
    TrainingGpuCapacityItemV1:
      description: GPU capacity and current usage for one GPU type.
      properties:
        gpu_type:
          description: GPU type identifier (e.g. H100, A100-40GB)
          title: Gpu Type
          type: string
        baseline:
          description: >-
            Baseline GPU allocation; jobs below this threshold are expected to
            run immediately. 0 if not configured.
          title: Baseline
          type: integer
        limit:
          description: Maximum concurrent GPUs of this type for this org
          title: Limit
          type: integer
        usage_count:
          description: GPUs currently in use by active training jobs
          title: Usage Count
          type: integer
        dedicated_usage_count:
          default: 0
          description: >-
            Portion of usage_count from dedicated (on-demand) jobs, which run
            against the baseline.
          title: Dedicated Usage Count
          type: integer
        spot_usage_count:
          default: 0
          description: >-
            Portion of usage_count from spot jobs, which burst into the peak and
            may push usage above the limit.
          title: Spot Usage Count
          type: integer
      required:
        - gpu_type
        - baseline
        - limit
        - usage_count
      title: TrainingGpuCapacityItemV1
      type: object
    TeamTrainingGpuCapacityItemV1:
      description: Per-team GPU capacity and current usage for one GPU type.
      properties:
        team_id:
          description: Team identifier
          title: Team Id
          type: string
        team_name:
          description: Team name
          title: Team Name
          type: string
        gpu_type:
          description: GPU type identifier (e.g. H100, A100-40GB)
          title: Gpu Type
          type: string
        baseline:
          description: Baseline GPU allocation for the team. 0 if not configured.
          title: Baseline
          type: integer
        limit:
          description: Maximum concurrent GPUs of this type for this team
          title: Limit
          type: integer
        usage_count:
          description: GPUs currently in use by the team's active training jobs
          title: Usage Count
          type: integer
        dedicated_usage_count:
          default: 0
          description: Portion of usage_count from dedicated (on-demand) jobs.
          title: Dedicated Usage Count
          type: integer
        spot_usage_count:
          default: 0
          description: Portion of usage_count from spot jobs.
          title: Spot Usage Count
          type: integer
      required:
        - team_id
        - team_name
        - gpu_type
        - baseline
        - limit
        - usage_count
      title: TeamTrainingGpuCapacityItemV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````