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

# Download trained weights

> Call GET /v1/training/jobs/{job_id}/download to get a temporary presigned URL for a trained artifact, with its expiry time and a suggested file name.

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

This operation is config-only; after normal feature and permission checks, an interactive job ID returns `400`, so download a named checkpoint with `GET /v1/training/jobs/{job_id}/checkpoints/{checkpoint_id}/download` instead.

Returns a presigned URL for the trained artifact. Fetch the returned URL separately to download the file.

## Request

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

Your Fastino API key.

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

Training-job UUID.

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

## Response

**success** `boolean`

Whether the URL was generated.

**job\_id** `string`

Training-job UUID.

**download\_url** `string`

Temporary presigned artifact URL.

**expires\_in\_seconds** `integer`

URL lifetime. The default is 3600 seconds.

**file\_name** `string`

Suggested download file name in the form
`gliner2-model-<first-8-job-id-characters>.tar.gz`.

```json Response theme={null}
{
  "success": true,
  "job_id": "YOUR_TRAINING_JOB_ID",
  "download_url": "https://...",
  "expires_in_seconds": 3600,
  "file_name": "gliner2-model-a1b2c3d4.tar.gz",
  "message": "Download URL generated successfully"
}
```

> [!WARNING]
>
> The presigned URL is a temporary bearer credential. Do not log, commit, persist, or share it. Download the artifact promptly and store it according to your data-handling policy.

To request the URL and download the artifact in one workflow:

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

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

This example requires `jq`.

Weight downloads are enabled by default. A team whose download access was
explicitly disabled receives `403`.

| Status | Meaning |
| - | - |
| `400` | For a config job, training is incomplete or its artifact is not ready; wait and retry. For an interactive job ID, use the named-checkpoint download route instead. |
| `401` | A deferred billing check requires a payment method. Add one in billing settings. |
| `403` | Weight downloads were explicitly disabled for the team. |
| `404` | The job is unknown or inaccessible. |


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