> ## 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. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# Descargar un checkpoint

> Obtén una URL firmada para descargar en un archivo tar uno de los checkpoints de tu equipo. La URL no necesita clave de API y caduca a los 15 minutos.

`GET /v1/training/jobs/{job_id}/checkpoints/{checkpoint_id}/download`

Devuelve una URL firmada de corta duración para un archivo tar de uno de los checkpoints de tu equipo. En los checkpoints de muestreo, el archivo contiene los ficheros del adaptador PEFT. Consulta la URL devuelta por separado para descargar el archivo. La URL no necesita clave de API y caduca a los 15 minutos.

Descargar pesos requiere el permiso de descarga de pesos de tu equipo, el mismo que usa [Descargar pesos entrenados](/es/api-reference/training-jobs/download).

## Solicitud

<ParamField header="X-API-Key" type="string" required>
  Tu clave de API de Fastino.
</ParamField>

<ParamField path="job_id" type="string" required>
  ID de la ejecución de entrenamiento.
</ParamField>

<ParamField path="checkpoint_id" type="string" required>
  ID del checkpoint tal como aparece en [Listar checkpoints de una ejecución](/es/api-reference/training-runs/list-checkpoints): `weights/<name>` o `sampler_weights/<name>`. Envíalo tal cual; la barra forma parte de la ruta.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  JOB_ID="YOUR_RUN_ID"
  CHECKPOINT_ID="sampler_weights/step-100"

  curl "https://api.fastino.ai/v1/training/jobs/$JOB_ID/checkpoints/$CHECKPOINT_ID/download" \
    -H "X-API-Key: $FASTINO_API_KEY"
  ```
</RequestExample>

## Respuesta

<ResponseField name="success" type="boolean">
  Indica si se generó la URL.
</ResponseField>

<ResponseField name="run_id" type="string">
  ID de la ejecución de entrenamiento.
</ResponseField>

<ResponseField name="checkpoint_id" type="string">
  ID del checkpoint.
</ResponseField>

<ResponseField name="download_url" type="string">
  URL firmada del archivo tar del checkpoint. No necesita credenciales.
</ResponseField>

<ResponseField name="expires_in_seconds" type="integer">
  Vigencia de la URL en segundos. El valor es `900`.
</ResponseField>

<ResponseField name="file_name" type="string">
  Nombre de archivo sugerido para la descarga.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "run_id": "YOUR_SESSION_ID:train:0",
    "checkpoint_id": "sampler_weights/step-100",
    "download_url": "https://api.fastino.ai/v1/training/archives/SIGNED_TOKEN",
    "expires_in_seconds": 900,
    "file_name": "YOUR_SESSION_ID_train_0-sampler_weights-step-100.tar"
  }
  ```
</ResponseExample>

<Warning>
  La URL firmada es una credencial bearer temporal. No la registres, confirmes en un repositorio, persistas ni compartas. Descarga el archivo pronto y guárdalo según tu política de tratamiento de datos.
</Warning>

Para solicitar la URL y descargar el archivo en un solo flujo:

```bash theme={null}
response=$(curl -fsS \
  "https://api.fastino.ai/v1/training/jobs/$JOB_ID/checkpoints/$CHECKPOINT_ID/download" \
  -H "X-API-Key: $FASTINO_API_KEY")

curl -fL \
  -o "$(jq -r '.file_name' <<<"$response")" \
  "$(jq -r '.download_url' <<<"$response")"
```

Este ejemplo requiere `jq`.

| Estado | Significado |
| - | - |
| `400` | El ID del checkpoint no es `weights/<name>` ni `sampler_weights/<name>`. |
| `403` | Tu equipo no tiene el permiso de descarga de pesos. Escribe a [sales@fastino.ai](mailto:sales@fastino.ai). |
| `404` | La ejecución o el checkpoint no existe, no es visible para ti o no tiene archivos descargables. |

Una URL firmada caducada o alterada devuelve `403` al consultarla. Solicita una URL nueva.


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