https://compute.x402layer.cc/training. Authenticate with an API key in the
X-API-Key header (create one under Settings → API keys in Singularity
Cloud), or with a wallet signature.
Scopes
Training runs rent GPUs, so they have their own scope. A key that can manage datasets cannot start a GPU unless you also granttraining:write.
Scoped keys created before October 21, 2026 keep the training access their
datasets scope gave them. Keys with no scopes (full access) are unchanged.
1. Read the catalog
2. Upload a dataset
A dataset is JSONL, one chat example per line:PUT the file to it, then approve the dataset. Approval
checks every line and refuses a file that would not train.
3. Check the price (optional)
4. Start a run
Idempotency-Key
so a retried request can never start a second run.
5. Follow it and get the model
deploy (needs training:write) returns short-lived download links (urls) for
the adapter and the score report once the run finished successfully, plus the GGUF
when gguf_available is true. POST /training/runs/$RUN_ID/cancel stops a run (the block is not
refunded).
