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

# Download trained adapter weights

> Presigned download links for a terminal run's trained adapter files. Parity with the SFT self-host story: the adapter is reachable by API, not just the dashboard. Links expire; re-request for fresh ones.



## OpenAPI

````yaml /openapi.json get /v1/grpo/runs/{id}/weights
openapi: 3.1.0
info:
  title: Omnia Management API
  description: >-
    The management API behind the improvement loop: capture and setup, request
    logs and datasets, grades (labels), judges (criteria), evals and deploy
    gates, fine-tuning and reinforcement learning, dedicated GPU endpoints, and
    model aliases and versions. Authenticated with a workspace API key
    (sk_sovereign_...). The inference API (chat, embeddings, rerank, responses)
    is OpenAI-compatible and documented separately.


    Responses are snake_case, list endpoints on the loop products use the
    {"object": "list", "data": [...]} envelope, and refusals use the same nested
    error shape the gateway emits: {"error": {"message", "type", "code"}}.
    Request bodies on the loop products (logs, labels, criteria, evals,
    datasets, aliases) are snake_case; the training and infrastructure products
    (fine-tuning, GRPO, environment tools, dedicated, model-version adoption)
    validate camelCase bodies, and each schema below says which it is. Endpoints
    that spend money require a key minted by a workspace owner or admin and
    return 403 otherwise.
  version: 1.0.0
servers:
  - url: https://gateway.omnia-voice.com
    description: Production
  - url: https://platform.omnia-voice.com/api
    description: Production (legacy alias — same API, older base URL)
security:
  - bearerAuth: []
paths:
  /v1/grpo/runs/{id}/weights:
    get:
      tags:
        - Reinforcement learning
      summary: Download trained adapter weights
      description: >-
        Presigned download links for a terminal run's trained adapter files.
        Parity with the SFT self-host story: the adapter is reachable by API,
        not just the dashboard. Links expire; re-request for fresh ones.
      operationId: getGrpoRunWeights
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            The files, or an honest empty state (empty_reason /
            storage_unavailable).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GrpoRunWeights'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    GrpoRunWeights:
      type: object
      properties:
        run_id:
          type: string
        status:
          type: string
          description: Terminal status of the run these files belong to.
        partial:
          type: boolean
          description: >-
            True when the run did not complete cleanly (STOPPED/FAILED): any
            files are a partial checkpoint, not the finished adapter.
        files:
          type: array
          description: Presigned download links for the trained adapter.
          items:
            type: object
            properties:
              name:
                type: string
                description: Bare filename, e.g. "adapter_model.safetensors".
              size_bytes:
                type:
                  - integer
                  - 'null'
              url:
                type: string
                description: Presigned download URL.
              expires_at:
                type: string
                description: When the signed URL stops working.
        empty_reason:
          type: string
          description: When files is empty, why. Absent when files were produced.
        storage_unavailable:
          type: boolean
          description: >-
            True when artifact storage can't be checked right now, as distinct
            from "the run produced nothing".
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
              description: >-
                invalid_request_error, insufficient_quota, rate_limit_error, or
                api_error.
            code:
              type: string
              description: >-
                Machine-stable cause, e.g. invalid_api_key, not_found,
                insufficient_permissions, precondition_failed.
          required:
            - message
            - type
            - code
      description: >-
        Every refusal — gateway and management API alike — uses this one
        envelope.
  responses:
    Unauthorized:
      description: Missing, malformed, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Invalid API key
              type: invalid_request_error
              code: invalid_api_key
    Forbidden:
      description: The key lacks the required owner/admin permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource does not exist in your workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your workspace API key, e.g. `sk_sovereign_...`, sent as `Authorization:
        Bearer <key>`.

````