Skip to content

Cancel Finetune Job

POST
/v1/finetune/{job_id}/cancel
curl --request POST \
--url https://example.com/v1/finetune/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/cancel

Cancel a finetune job.

Stops the training job if it’s still running and triggers credit finalization. Any unused credits from the reserved training hours will be returned.

job_id
required
string format: uuid
x-api-key
string | null

Finetune job cancelled successfully

Media type application/json
FinetuneCancelResponse

Response after cancelling a finetune job.

object
job_id
required

Cancelled job ID

string format: uuid
cancelled
required

Whether cancellation was successful

boolean
message

Status message

string | null
Example generated
{
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"cancelled": true,
"message": "example"
}

Invalid or missing API key

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Finetune job not found

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Validation error