List sizes

Lists the machine sizes available to launch, with their specifications.

GET /v1/compute/sizes

Addresshttps://api.hanzo.ai/v1/compute/sizes
MethodGET
Operationget_compute_sizes
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the machine sizes available to launch, with their specifications.

Global and org-gated, exactly as the region catalog is, and for the same reasons.

Request

GET /v1/compute/sizes takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200ok
defaultproblem-detailsrefused

200 body — 1 field.

FieldInTypeAlwaysDescription
(body)bodyanyyes

Failure carries the platform error shape — see Errors.

Examples

hanzo compute sizes
import { Configuration, ComputeApi } from 'hanzoai';

const api = new ComputeApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getComputeSizes();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ComputeApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ComputeApi(client).get_compute_sizes()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.ComputeAPI.GetComputeSizes(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, compute_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = compute_api::get_compute_sizes(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ComputeApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new ComputeApi(client).getComputeSizes();
curl https://api.hanzo.ai/v1/compute/sizes \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches compute through the compute tool, which names its 28 operations with its own verbs — this one among them, under a name only MCP declares. describe explains any of them:

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_compute_regions"
         }
       }
     }'

Compute API · All Hanzo APIs · Interactive reference

Was this page useful?