What is the YAML spec?
The YAML spec is how you tell the Compute Clear API exactly what infrastructure you need. It’s a declarative document — you describe what you want, not how to get it. The API finds the best match across 20+ cloud providers. Think of it as a contract: you specify your requirements, and we guarantee that every offer returned meets them. Our proprietary validation layer verifies each offer against your spec before presenting it, so you never procure something that doesn’t match.How it works
- You send a YAML spec to
POST /get_offers - The API queries all eligible vendors in real-time
- Each offer is validated against your requirements:
- GPU type and count match exactly
- Price is within your budget
- Region, contract type, and network requirements are met
- Boot disk meets minimum size (if specified)
- Storage capabilities are compatible (if storage requested)
- Only validated offers are returned, sorted by price
Spec structure
Sections in detail
compute
Defines your GPU requirements. This is the core of most specs.
storage
A list of storage volumes. Each volume has three dimensions:
When you include storage, the API automatically filters to vendors that support your requested type and class.
network
cloud_init
A startup script that runs on first boot. Two formats:
#cloud-config— Declarative YAML (packages, files, commands)#!/bin/bash— Shell script