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

# 下载 PIN 模型产物

> 以 ZIP 归档形式流式下载模型产物。该产物必须存在于模型的 artifact_paths 映射中。

此接口以 ZIP 文件形式流式返回模型所请求产物的内容。请先检查模型的 `artifact_paths` 以确认产物名称存在，再调用此接口获取它。

## 接口

```http theme={null}
GET /v1/models/{id}/download?artifact=<name>
```

## 认证

在 `Authorization: Bearer <jwt-or-api-key>` 头中发送你的令牌。

## 路径参数

<ParamField path="id" type="string" required>
  唯一的模型标识符。
</ParamField>

## 查询参数

<ParamField query="artifact" type="string" required>
  来自 `artifact_paths` 的产物名称。支持：`adapter`、`merged`、`gguf`、`mlx`、`mnn`、`qnn`。
</ParamField>

## 响应

响应为二进制 ZIP 流。服务器设置以下头：

* `Content-Type: application/zip`
* `Content-Disposition: attachment; filename=<id>-<artifact>.zip`

<RequestExample>
  ```bash cURL theme={null}
  curl -s -O -J "https://ariapin.example.com/v1/models/mdl_01J8Q2R4TFK9Z0X/download?artifact=gguf" \
    -H "Authorization: Bearer $ARIA_PIN_TOKEN"
  ```
</RequestExample>
