Перейти до вмісту
NimbusNexus

VM sizes

A VM size is a named compute shape — vCPU count, RAM, root-disk size, and family. Every VM is created with a size code (e.g. gp-4-16); resizing a VM swaps the code at runtime.

The four families

FamilyCode prefixWhat it's optimized for
General purposegp-*Balanced CPU + RAM. The default for most workloads.
Compute optimizedco-*2× CPU-per-dollar of gp, half the RAM-per-dollar. Right for CPU-bound services, batch jobs, video encode.
Memory optimizedmo-*Inverse trade. Right for in-memory caches, JVM heaps, analytics scratch.
GPUgx-*NVIDIA L4 / H100 accelerators. ML inference, training, transcode.

Naming convention

Size codes follow <family>-<vCPU>-<RAM_GB>. So:

  • gp-1-2 — 1 vCPU, 2 GB RAM, general-purpose (the smallest useful size, ~$0.0145/vCPU-hour)
  • gp-4-16 — 4 vCPU, 16 GB RAM, general-purpose
  • co-16-32 — 16 vCPU, 32 GB RAM, compute-optimized
  • mo-8-64 — 8 vCPU, 64 GB RAM, memory-optimized
  • gx-4-32-l4 — 4 vCPU, 32 GB RAM, 1× L4 GPU (GPU sizes append the accelerator code)

The catalog endpoint returns the full list with current pricing per size. Prices vary slightly across regions; the response includes a per-region price table.

Resizing

A VM can move between sizes without re-provisioning. Resize within the same family is online (no downtime). Cross-family resize requires a stop / start cycle. Resize between architectures (e.g. gp to gx) is a destroy / re-create — the API rejects the direct resize call to make the implicit data loss explicit.

What's next

  • Virtual machines — endpoints that actually provision a VM at one of these sizes.
  • VM images — the OS templates you boot the VM with.
  • SSH keys — public keys injected into VMs at boot.

Reference

GET/api/v1/flavor/

List Flavors

List available compute flavors (instance types defining vCPU, RAM, disk and swap).

Parameters

NameInRequiredDescription
min_vcpusqueryno—
max_vcpusqueryno—
min_ramqueryno—
max_ramqueryno—
min_swapqueryno—
max_swapqueryno—
extra_specsqueryno—
vcpu_weightqueryno—
rxtx_factorqueryno—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

https://api.nimbusnexus.net/api/v1/flavor/

POST/api/v1/flavor/

Create Flavor

Create a new compute flavor definition.

Request body

JSON body required.

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

https://api.nimbusnexus.net/api/v1/flavor/

Need to make a real call? Try these endpoints in the live Swagger UI →