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

# Push Training Job To Huggingface

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

## Request

- Base URL: `https://api.fastino.ai`
- URL: `https://api.fastino.ai/v1/training/jobs/{job_id}/push-to-hub`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

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
  - `commit_message` string, nullable: Optional commit message for the push
  - `hf_token` string, required: HuggingFace API token with write permissions
  - `private` boolean: Whether repo should be private
  - `repo_id` string, required: HuggingFace repo ID (e.g., 'username/model-name')

## Response `200`

Successful Response

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

## Other responses

- `403`: For downloading models, please contact sales@fastino.ai
- `422`: Validation Error

## Changes

- **2026-10-13** `5ebfd9fe8f46`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/changes/v1/training/jobs/:job_id/push-to-hub/post.md)

---

[API](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api.md) - [All operations](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/revisions/81465e18c1d2?raw)
