> For the complete documentation index, see [llms.txt](https://docs.mithril.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mithril.ai/compute-api/compute-api-reference/quotas.md).

# Quotas

## Get Organization Quotas

> Get aggregate quotas, with project breakdowns only for org admins.

```json
{"openapi":"3.1.0","info":{"title":"Mithril","version":"1.0.0"},"servers":[{"url":"https://api.mithril.ai"}],"security":[{"MithrilAPIKey":[]}],"components":{"securitySchemes":{"MithrilAPIKey":{"type":"http","scheme":"bearer","bearerFormat":"fkey_<key>"}},"schemas":{"OrganizationQuotaModel":{"oneOf":[{"$ref":"#/components/schemas/OrganizationStorageQuotaModel"},{"$ref":"#/components/schemas/OrganizationSelfServeGpuQuotaModel"},{"$ref":"#/components/schemas/OrganizationOpenBidQuotaModel"},{"$ref":"#/components/schemas/OrganizationKubernetesQuotaModel"}],"discriminator":{"propertyName":"product_type","mapping":{"kubernetes_clusters":"#/components/schemas/OrganizationKubernetesQuotaModel","open_bids":"#/components/schemas/OrganizationOpenBidQuotaModel","self_serve_gpus":"#/components/schemas/OrganizationSelfServeGpuQuotaModel","storage_gib":"#/components/schemas/OrganizationStorageQuotaModel"}}},"OrganizationStorageQuotaModel":{"properties":{"product_type":{"type":"string","const":"storage_gib","title":"Product Type","default":"storage_gib"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"region":{"type":"string","title":"Region"},"granted":{"type":"integer","nullable":true},"used":{"type":"integer","title":"Used"},"remaining":{"type":"integer","nullable":true},"limit_source":{"type":"string","enum":["organization","baseline"],"nullable":true},"units":{"type":"string","title":"Units"},"usage_by_project":{"items":{"$ref":"#/components/schemas/QuotaProjectUsageModel"},"type":"array","title":"Usage By Project"}},"type":"object","required":["cluster_id","region","granted","used","remaining","limit_source","units","usage_by_project"],"title":"OrganizationStorageQuotaModel","description":"Resolved storage quota for one region."},"QuotaProjectUsageModel":{"properties":{"project_id":{"type":"string","format":"uuid","nullable":true},"used":{"type":"integer","title":"Used"}},"type":"object","required":["project_id","used"],"title":"QuotaProjectUsageModel","description":"Quota usage attributed to one project, or to no project."},"OrganizationSelfServeGpuQuotaModel":{"properties":{"product_type":{"type":"string","const":"self_serve_gpus","title":"Product Type","default":"self_serve_gpus"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"region":{"type":"string","title":"Region"},"spot_used":{"type":"integer","title":"Spot Used"},"reservation_used":{"type":"integer","title":"Reservation Used"},"gpu_type":{"$ref":"#/components/schemas/GpuType"},"granted":{"type":"integer","nullable":true},"used":{"type":"integer","title":"Used"},"remaining":{"type":"integer","nullable":true},"limit_source":{"type":"string","enum":["organization","baseline"],"nullable":true},"units":{"type":"string","title":"Units"},"usage_by_project":{"items":{"$ref":"#/components/schemas/QuotaProjectUsageModel"},"type":"array","title":"Usage By Project"}},"type":"object","required":["cluster_id","region","spot_used","reservation_used","gpu_type","granted","used","remaining","limit_source","units","usage_by_project"],"title":"OrganizationSelfServeGpuQuotaModel","description":"Shared GPU commitment quota for one region and GPU model."},"GpuType":{"type":"string","enum":["V100","T4","A10","A40","A100","H100","A5000","H200","B200","TPU_V6E"]},"OrganizationOpenBidQuotaModel":{"properties":{"product_type":{"type":"string","const":"open_bids","title":"Product Type","default":"open_bids"},"granted":{"type":"integer","nullable":true},"used":{"type":"integer","title":"Used"},"remaining":{"type":"integer","nullable":true},"limit_source":{"type":"string","enum":["organization","baseline"],"nullable":true},"units":{"type":"string","title":"Units"},"usage_by_project":{"items":{"$ref":"#/components/schemas/QuotaProjectUsageModel"},"type":"array","title":"Usage By Project"}},"type":"object","required":["granted","used","remaining","limit_source","units","usage_by_project"],"title":"OrganizationOpenBidQuotaModel","description":"Resolved open-bid quota."},"OrganizationKubernetesQuotaModel":{"properties":{"product_type":{"type":"string","const":"kubernetes_clusters","title":"Product Type","default":"kubernetes_clusters"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"region":{"type":"string","title":"Region"},"granted":{"type":"integer","nullable":true},"used":{"type":"integer","title":"Used"},"remaining":{"type":"integer","nullable":true},"limit_source":{"type":"string","enum":["organization","baseline"],"nullable":true},"units":{"type":"string","title":"Units"},"usage_by_project":{"items":{"$ref":"#/components/schemas/QuotaProjectUsageModel"},"type":"array","title":"Usage By Project"}},"type":"object","required":["cluster_id","region","granted","used","remaining","limit_source","units","usage_by_project"],"title":"OrganizationKubernetesQuotaModel","description":"Resolved managed Kubernetes cluster quota."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"oneOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v2/organizations/{organization_id}/quotas":{"get":{"tags":["quotas"],"summary":"Get Organization Quotas","description":"Get aggregate quotas, with project breakdowns only for org admins.","operationId":"get_organization_quotas_v2_organizations__organization_id__quotas_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationQuotaModel"},"title":"Response Get Organization Quotas V2 Organizations  Organization Id  Quotas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get Quotas

> Get all quotas for a project in unified format

```json
{"openapi":"3.1.0","info":{"title":"Mithril","version":"1.0.0"},"servers":[{"url":"https://api.mithril.ai"}],"security":[{"MithrilAPIKey":[]}],"components":{"securitySchemes":{"MithrilAPIKey":{"type":"http","scheme":"bearer","bearerFormat":"fkey_<key>"}},"schemas":{"QuotaModel":{"properties":{"fid":{"type":"string","title":"Fid","description":"Unique identifier for the quota"},"project":{"type":"string","title":"Project","description":"Project FID this quota belongs to"},"instance_type":{"type":"string","nullable":true},"product_type":{"type":"string","title":"Product Type","description":"Type of product (e.g., 'Spot', 'Reservations', 'Storage')"},"total_quantity":{"type":"integer","minimum":0,"title":"Total Quantity","description":"Total quota quantity used"},"used_quantity":{"type":"integer","minimum":0,"title":"Used Quantity","description":"Total quota quantity used"},"units":{"type":"string","title":"Units","description":"Units for the quota (e.g., 'instances', 'GB')"},"name":{"type":"string","title":"Name","description":"Human-readable display name for the quota"}},"type":"object","required":["fid","project","product_type","total_quantity","used_quantity","units","name"],"title":"QuotaModel","description":"Unified quota model for all quota types (instances, storage, Kubernetes)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"oneOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v2/quotas":{"get":{"tags":["quotas"],"summary":"Get Quotas","description":"Get all quotas for a project in unified format","operationId":"get_quotas_v2_quotas_get","parameters":[{"name":"project","in":"query","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuotaModel"},"title":"Response Get Quotas V2 Quotas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mithril.ai/compute-api/compute-api-reference/quotas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
