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

# Push a model to Hugging Face



## OpenAPI

````yaml /api-reference/openapi.json post /v1/models/{model_id}/push-to-hf
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Reward functions
    description: Upload and manage reward functions.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: SSH keys
    description: Manage SSH key pairs for compute access.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
paths:
  /v1/models/{model_id}/push-to-hf:
    post:
      tags:
        - Models
      summary: Push a model to Hugging Face
      operationId: create
      parameters:
        - name: model_id
          in: path
          description: Model ID from the model library
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HfExportCreate'
        required: true
      responses:
        '201':
          description: Export started; poll GET /v1/hf_exports/{id} for progress
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HfExportResponse'
        '400':
          description: >-
            Feature disabled, malformed repo, unexportable model, or no
            connected HF account
        '404':
          description: Model not found or not owned by the caller
        '409':
          description: >-
            Model not ready, duplicate active export, or per-user export limit
            reached
      security:
        - bearerAuth: []
components:
  schemas:
    HfExportCreate:
      type: object
      required:
        - repo
      properties:
        repo:
          type: string
          description: |-
            Target repo as "namespace/name". Created on first push (honoring
            `private`); re-exports to an existing repo upload over it.
        private:
          type: boolean
          description: |-
            Repo visibility. Defaults to private — a public push is an explicit
            choice, never an accident.
    HfExportResponse:
      type: object
      required:
        - object
        - id
        - model_id
        - repo
        - private
        - status
        - created_at
      properties:
        object:
          type: string
        id:
          type: string
        model_id:
          type: string
        repo:
          type: string
        private:
          type: boolean
        status:
          type: string
          description: launching | uploading | completed | failed | cancelled
        progress_bytes:
          type:
            - integer
            - 'null'
          format: int64
        total_bytes:
          type:
            - integer
            - 'null'
          format: int64
        hf_repo_url:
          type:
            - string
            - 'null'
          description: Set on completion; the pushed repo's URL.
        error:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````