GET
/
cloud
/
v3
/
inference
/
capacity
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
region_capacity_list = client.cloud.inference.get_capacity_by_region()
print(region_capacity_list.count)
{
  "count": 1,
  "results": [
    {
      "capacity": [
        {
          "capacity": 42,
          "flavor_name": "inference-16vcpu-232gib-1xh100-80gb"
        }
      ],
      "region_id": 4
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Response

200 - application/json

OK

The response is of type object.