Galon Cloud
Galon API v1

/compute/quotes

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

POST /compute/quotes

Quote a machine

Price a virtual machine before creating it. Use when before create_compute_instance (which needs compute write access); the quote lasts 30 minutes. Before: list_compute_flavors and list_compute_images (they need compute read access). Returns a quote (cq_ id) with hourly prices running and stopped and a monthly estimate. Scope: compute:quote.

API key (Bearer), on the public API endpoint.

Request body

application/json

FieldTypeDescription
flavor"1vcpu-1gb" | "2vcpu-4gb" | "4vcpu-8gb" · requiredMachine size: vCPU and memory (disk included).
image"ubuntu-24.04" | "debian-12" · requiredOperating system image.

Responses

StatusDescriptionBody
2XXSuccess: the JSON body the route returns (see the description for its fields).object
401Key missing or invalidError
4XXRefused: act on detail.code, then follow detail.next_action (404 not_found while the service is not open to the account).Error

Examples

curl

curl -X POST "$GALON_API_BASE/compute/quotes" \
  -H "Authorization: Bearer $GALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"flavor": "1vcpu-1gb", "image": "ubuntu-24.04"}'