> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use https://docs.fastino.ai/llms.txt to discover and navigate pages. Use https://docs.fastino.ai/llms-full.txt when you need the complete documentation corpus. Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing routes. For GLiDE decision inference, call POST https://api.fastino.ai/v1/systemone with model fastino/GLiDE. Start managed training (config job) with POST /v1/training/jobs using base_model. For interactive training, native JSON clients use the public operations under /v1/training/jobs and /v1/training/usage. Existing Tinker clients use tinker==0.32.0 with TINKER_BASE_URL=https://api.fastino.ai/v1/training/compat/tinker and TINKER_CREDENTIAL_CMD. Compatibility child routes are private and absent from OpenAPI. Auto Train is private access and has no public route; direct interested users to sales@fastino.ai. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# Terminate a training job

> Terminate a config training job, preserving checkpoints unless deletion is explicitly requested.

`POST /v1/training/jobs/{job_id}/terminate`

This operation is config-only; after normal feature and permission checks, an interactive job ID returns `400`, so stop an interactive job with `POST /v1/training/jobs/{job_id}/stop` instead.

Stops an active `config` job and requests provider cancellation. Existing
checkpoints and artifacts are preserved by default.

> [!WARNING]
>
> Setting `delete_checkpoints` to `true` permanently deletes the job's
> checkpoints and artifacts after cancellation is confirmed. This cannot be
> undone.

## Request

**X-API-Key** `string` *required*

Your Fastino API key.

**job\_id** `string` *required*

Training-job UUID.

The JSON body is optional.

**delete\_checkpoints** `boolean` (default: false)

Permanently delete checkpoints and artifacts after cancellation is
confirmed.

```bash cURL theme={null}
curl -X POST https://api.fastino.ai/v1/training/jobs/YOUR_TRAINING_JOB_ID/terminate \
  -H "X-API-Key: $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"delete_checkpoints": false}'
```

## Response

```json 200 — terminated theme={null}
{
  "success": true,
  "message": "Training job terminated. Checkpoints preserved (pass delete_checkpoints=true to remove them).",
  "job_id": "YOUR_TRAINING_JOB_ID",
  "deleted_checkpoints": 0,
  "status": "terminated"
}
```

```json 202 — cancellation pending theme={null}
{
  "success": true,
  "message": "Termination in progress. The job moves to 'terminated' once the provider confirms; checkpoints are preserved.",
  "job_id": "YOUR_TRAINING_JOB_ID",
  "deleted_checkpoints": 0,
  "status": "stopping"
}
```

Poll `GET /v1/training/jobs/{job_id}` after a `202`; do not repeat the
termination request while cancellation is pending.

| Status | Meaning |
| - | - |
| `200` | The job is terminated. |
| `202` | Termination is in progress while the provider confirms cancellation. |
| `400` | `job_id` is not a valid config-job UUID, or it identifies an interactive job; use the interactive stop route instead. |
| `409 training_job_already_finished` | The job reached a terminal state before termination. |
| `409 cancellation_unconfirmed` | Cancellation was not confirmed and may be retried. |
| `422` | The JSON request body is invalid. |

## Authorization

Requires the Owner, Admin, or Editor team role. Other roles receive `403 Forbidden`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.