cloud_start_training_run
Train a model: start a training run on an approved dataset, paid upfront from Cloud credits for the hours you choose. Needs a key with the "spend" permission, max_usd and idempotency_key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"computeApiKey": "<computeApiKey>",
"dataset_id": "<dataset_id>",
"base_model": "<base_model>",
"gpu_plan_id": "<gpu_plan_id>",
"budget_hours": "<budget_hours>",
"max_usd": "<max_usd>",
"idempotency_key": "<idempotency_key>"
},
"name": "cloud_start_training_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipe | No | Optional training settings (lora_rank, lr, epochs, ...) | |
| max_usd | Yes | The most you agree to pay, in US dollars. Refused before any charge if the price is higher. | |
| base_model | Yes | Base model id from the training catalog | |
| dataset_id | Yes | Approved dataset id (uuid) | |
| gpu_plan_id | Yes | GPU id from the training catalog | |
| budget_hours | Yes | Hours to prepay (billed in whole hours) | |
| computeApiKey | Yes | Singularity Cloud API key with the "spend" permission (cloud.x402compute.cc > Settings > API keys). | |
| idempotency_key | Yes | A new unique id per purchase (8 to 128 letters, digits, . _ : -). Repeating a purchase with the SAME id never charges twice. |