from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_flavor = client.cloud.inference.flavors.get(
"inference-16vcpu-232gib-1xh100-80gb",
)
print(inference_flavor.cpu)
{
"cpu": 2,
"description": "1xL40S / 16 vCPU / 232GiB RAM",
"gpu": 1,
"gpu_compute_capability": "8.6",
"gpu_memory": 80,
"gpu_model": "H100",
"is_gpu_shared": false,
"memory": 4,
"name": "inference-16vcpu-232gib-1xh100-80gb"
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_flavor = client.cloud.inference.flavors.get(
"inference-16vcpu-232gib-1xh100-80gb",
)
print(inference_flavor.cpu)
{
"cpu": 2,
"description": "1xL40S / 16 vCPU / 232GiB RAM",
"gpu": 1,
"gpu_compute_capability": "8.6",
"gpu_memory": 80,
"gpu_model": "H100",
"is_gpu_shared": false,
"memory": 4,
"name": "inference-16vcpu-232gib-1xh100-80gb"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Inference flavor name.
"inference-16vcpu-232gib-1xh100-80gb"
OK
The response is of type object
.
Was this page helpful?