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

# Download Model

> Presigned GET URLs for the *pure* model artifact directory.

Returns one URL per file under the model's ``model/`` prefix — the base
model, its preprocessor, and ``metadata.json``. Reasoning driver data
(the sibling ``reasoning_context/`` prefix) is deliberately excluded: this
downloads the model, not its explanations. The client reconstructs the
directory from the relative paths and loads it with
``outerproduct_training.load_model``.



## OpenAPI

````yaml https://api.outerproduct.com/openapi.json get /v1/models/{model_id}/download
openapi: 3.1.0
info:
  title: OuterProduct API
  description: >-
    Public-facing REST API for OuterProduct model distillation, prediction, and
    explanation.
  version: 0.1.8
servers: []
security: []
paths:
  /v1/models/{model_id}/download:
    get:
      tags:
        - models
      summary: Download Model
      description: >-
        Presigned GET URLs for the *pure* model artifact directory.


        Returns one URL per file under the model's ``model/`` prefix — the base

        model, its preprocessor, and ``metadata.json``. Reasoning driver data

        (the sibling ``reasoning_context/`` prefix) is deliberately excluded:
        this

        downloads the model, not its explanations. The client reconstructs the

        directory from the relative paths and loads it with

        ``outerproduct_training.load_model``.
      operationId: download_model_v1_models__model_id__download_get
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Model Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelDownloadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    ModelDownloadResponse:
      properties:
        id:
          $ref: '#/components/schemas/ID'
          description: The model whose artifact these URLs address.
        files:
          items:
            $ref: '#/components/schemas/ModelArtifactFile'
          type: array
          title: Files
          description: Every file in the artifact directory, each presigned.
        expires_in:
          type: integer
          title: Expires In
          description: Seconds until the presigned URLs expire.
      type: object
      required:
        - id
        - files
        - expires_in
      title: ModelDownloadResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ID:
      anyOf:
        - type: string
          format: uuid
        - type: string
    ModelArtifactFile:
      properties:
        path:
          type: string
          title: Path
          description: >-
            Path relative to the model artifact root, e.g. ``metadata.json``,
            ``model.ubj``, or ``members/0/model.ubj`` for an ensemble.
        url:
          type: string
          title: Url
          description: Presigned GET URL to download this file.
      type: object
      required:
        - path
        - url
      title: ModelArtifactFile
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key or OAuth2/OIDC access token
      description: >-
        An API key or OAuth2/OIDC access token sent as `Authorization: Bearer
        <token>`.

````