---
title: "Push Training Job To Huggingface"
method: POST
path: "/felix/training-jobs/{job_id}/push-to-hub"
tags: ["felix"]
---

# Push Training Job To Huggingface

`POST /felix/training-jobs/{job_id}/push-to-hub`

Push a completed training job's model to HuggingFace Hub.

## Path parameters

- `job_id` string, required

## Request body

- HuggingFacePushModelRequest — Request to push a trained model to HuggingFace Hub
  - `repo_id` string, required — HuggingFace repo ID (e.g., 'username/model-name')
  - `hf_token` string, required — HuggingFace API token with write permissions
  - `private` boolean — Whether repo should be private
  - `commit_message` string, nullable — Optional commit message for the push

## Response `200`

Successful Response

- PushModelToHubResponse — Response model for pushing model to HuggingFace Hub
  - `success` boolean, required
  - `url` string, required
  - `repo_id` string, required
  - `job_id` string, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/b92f75fd3b61/schema)
