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

# Download Model

Download a file component of the ONNX model.

## **POST** `/revisions/:id/data/query` (Command: `download`)

### Request Body

| Parameter | Type   | Required | Description                            |
| :-------- | :----- | :------- | :------------------------------------- |
| `engine`  | string | Yes      | Must be `onnx`.                        |
| `command` | string | Yes      | Must be `download`.                    |
| `path`    | string | Yes      | File to download (e.g., `model.onnx`). |

### Response

| Parameter | Type   | Description                        |
| :-------- | :----- | :--------------------------------- |
| `url`     | string | Presigned S3 URL to download from. |

### Example

<CodeGroup>
  ```json Request theme={null}
  {
    "engine": "onnx",
    "command": "download",
    "path": "model.onnx"
  }
  ```

  ```json Response theme={null}
  {
    "url": "https://s3.amazonaws.com/..."
  }
  ```
</CodeGroup>
