> ## 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/openapi.json as the source of truth for customer-facing Fastino API routes. Only call operations present in that specification. Do not infer or call undocumented routes. Direct Fastino API integrations use https://api.fastino.ai, /v1 routes, and FASTINO_API_KEY.

# Terminer un job d'entraînement

> Terminez un job d'entraînement Fastino et supprimez tous ses checkpoints.

Arrête le job du fournisseur s'il est actif, supprime chaque checkpoint et marque le job comme terminé.

<Warning>
  La terminaison est irréversible. Utilisez l'endpoint stop lorsque vous avez besoin de conserver les checkpoints.
</Warning>

## Requête

<ParamField header="X-API-Key" type="string" required>
  Votre clé API Fastino.
</ParamField>

<ParamField path="job_id" type="string" required>
  UUID du job d'entraînement.
</ParamField>

<RequestExample>
  ```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"
  ```
</RequestExample>

## Réponse

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "message": "Training job terminated",
    "job_id": "YOUR_TRAINING_JOB_ID",
    "deleted_checkpoints": 3
  }
  ```
</ResponseExample>

Un job inconnu ou un job qui ne peut pas être terminé renvoie une erreur `4xx` spécifique à la requête.
