Skip to main content
GET
/
cloud
/
v3
/
inference
/
flavors
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.inference.flavors.list()
page = page.results[0]
print(page.cpu)
{
  "count": 1,
  "results": [
    {
      "cpu": 123,
      "description": "<string>",
      "gpu": 123,
      "gpu_compute_capability": "<string>",
      "gpu_memory": 123,
      "gpu_model": "<string>",
      "is_gpu_shared": true,
      "memory": 123,
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: x <= 1000
offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
InferenceFlavorOutSerializerV3 · object[]
required

Objects