302 重定向。对于以目录为键的模型包,它会流式返回 ZIP 文件。发送 Accept: application/json 或附加 ?format=json 可改为以 JSON 接收 URL。
方法: GET 路径: /api/models/{slug}/download 认证: 会话 Bearer、?token= 查询 JWT,或 Bearer API 密钥(bfvk-...)
路径参数
string
required
模型 slug(例如
gemma-4-e2b-it)。查询参数
string
required
量化等级:
int4、int8 或 int326。string
required
SDK 版本(例如
v1.0)。string
设为
json 以接收 JSON 信封,而非重定向或 ZIP 流。string
用于浏览器发起下载的会话 JWT。等价于
Authorization: Bearer。响应
默认响应是指向短时效 S3 预签名 URL 的302 Found 重定向(单文件),或以 200 OK 返回的 ZIP 流(以目录为键的模型包,带 Content-Disposition: attachment; filename=...)。
使用 Accept: application/json 或 ?format=json 时:
string
redirect(单文件)或 zip(目录)。string
预签名 URL 或下载 URL。
string
建议的输出文件名。