> ## 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.

# Stop a training job

> Stop a running Fastino training job while preserving existing checkpoints.

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

Stops a running job and preserves checkpoints created before the stop. For an
interactive job, the request returns immediately and rejects new training
calls. Already queued training operations may finish before resources are
released, and usage may continue until that release. Sampling from saved
sampler checkpoints remains available after the stop.

## Request

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

Your Fastino API key.

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

Config-job UUID or interactive job ID.

### Config job

The JSON body is optional for a config job.

**reason** `string`

Why the job was stopped.

**scores** `object`

Numeric metrics used to make the stop decision.

**checkpoint** `string`

Checkpoint path or step associated with the stop.

### Interactive job

Send no request body. The response includes the verified common fields
`success`, `job_id`, and `status`.

### Config-job request example

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

### Interactive-job request example

```bash cURL theme={null}
curl -X POST https://api.fastino.ai/v1/training/jobs/YOUR_INTERACTIVE_JOB_ID/stop \
  -H "X-API-Key: $FASTINO_API_KEY"
```

## Config-job response

```json Response theme={null}
{
  "success": true,
  "message": "Training job stopped successfully. Checkpoints preserved.",
  "job_id": "YOUR_TRAINING_JOB_ID",
  "status": "stopped"
}
```

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

The `message` field, `202` response, and polling rule apply only to config jobs.
Poll `GET /v1/training/jobs/{job_id}` after a config-job `202`; do not repeat
the stop request while cancellation is pending.

## Interactive-job response

An interactive job uses the same operation without a body. It returns the
common fields `success`, `job_id`, and `status`. Do not require the config-only
`message` field from an interactive response.

```json Response theme={null}
{
  "success": true,
  "job_id": "YOUR_INTERACTIVE_JOB_ID",
  "status": "stopped"
}
```

## Config-job statuses

The following statuses and error details apply only to config jobs.

| Status | Meaning |
| - | - |
| `200` | The job is stopped and existing checkpoints remain available. |
| `202` | Cancellation is in progress while the provider confirms it. |
| `400` | The config-job ID or request is invalid. |
| `409 training_job_already_finished` | The job reached a terminal state before the stop. |
| `409 cancellation_unconfirmed` | Provider cancellation was not confirmed. Read the job state, then retry when appropriate. |
| `422` | The config-job JSON request body is invalid. |

## Config-job authorization

For config jobs, this operation requires the Owner, Admin, or Editor team role. Other roles receive `403 Forbidden`. The native interactive handler uses the interactive runtime's caller authorization; do not infer config-job RBAC from this shared path.


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