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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The job id. |