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

# Relay Upload Bytes

> First-party fallback for the presigned `PUT`: send the raw bytes here and they are streamed to storage server-side. Call this only with the `relay_upload_url` returned by Initiate Upload with `relay: true` — the `upload_token` in that URL is the sole credential, is bound to one object key and content type, and expires in 5 minutes. Do not send an `Authorization` header. Maximum 200 MiB.



## OpenAPI

````yaml /platform-openapi.json put /storage/upload/relay
openapi: 3.1.0
info:
  title: ModelRunner Platform API
  version: 1.0.0
  description: >-
    Platform APIs: model catalog, search and collections; model pricing rate
    cards; the Serverless GPU catalog and deployment templates; file uploads and
    your asset library; account balance and usage; and webhook delivery
    management. Catalog reads are public; account-scoped routes authenticate
    with your API key (`Authorization: Key <MODELRUNNER_KEY>`). Request
    lifecycle endpoints (submit/status/result and the request list) live on the
    queue host — see the Queue API reference.
servers:
  - url: https://api.modelrunner.run
security: []
paths:
  /storage/upload/relay:
    put:
      summary: Relay Upload Bytes
      description: >-
        First-party fallback for the presigned `PUT`: send the raw bytes here
        and they are streamed to storage server-side. Call this only with the
        `relay_upload_url` returned by Initiate Upload with `relay: true` — the
        `upload_token` in that URL is the sole credential, is bound to one
        object key and content type, and expires in 5 minutes. Do not send an
        `Authorization` header. Maximum 200 MiB.
      parameters:
        - name: upload_token
          in: query
          required: true
          schema:
            type: string
          description: >-
            Taken verbatim from `relay_upload_url`. Not an API key, and not
            usable on any other route.
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Bytes stored.
          content:
            application/json:
              schema:
                type: object
                properties:
                  file_url:
                    type: string
                    description: >-
                      Canonical public URL — the same `file_url` the initiate
                      returned.
        '400':
          description: Empty body, or larger than 200 MiB.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, invalid, expired, or non-upload token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        request_id:
          type: string
          description: Correlation id for support.

````