cancel fine tuning job
cancel_fine_tuning_jobStop a queued or running fine-tuning job to halt training and prevent further usage charges. The cancellation is final even if the backend lags.
Instructions
Cancel a queued or running fine-tuning job so no more training is metered — the customer's cancel is authoritative even if the backend lags. DELETE /v1/fine_tuning/jobs/{id} (API-key scope: platform:write). Returns: 200 {ok:true}. The job's status becomes CANCELLED (idempotent: cancelling an already-CANCELLED job also returns 200 {ok:true}). Notes: This is a CANCEL, not a delete — the job record remains listed. Requires OWNER/ADMIN minting user (403). 404 when not in this workspace. 400 "This run already finished — there is nothing to cancel." for SUCCEEDED or FAILED jobs. The backend cancel is attempted but a backend error does not block the local cancel; metering treats local CANCELLED as final and finalizes at $0 further spend. Feature-flag gated (404 when fineTuning is off). Scopes not enforced on this route today.
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": {
"id": "<id>"
},
"name": "cancel_fine_tuning_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The job id. |