Skip to main content
Friendli Dedicated Endpoints can deploy models from a variety of sources:

How to Upload a Model

You can upload your own model files directly to Friendli using the Friendli CLI, then deploy them to a Dedicated Endpoint.
1

Install the CLI

Install the Friendli CLI, specifying the exact version:
pip install friendli-client==2.0.0a16
2

Prepare Your API Key

The CLI requires authentication. Create an API key in Personal Settings > API Keys and set it as an environment variable:
export API_KEY=<YOUR_API_KEY>
3

Confirm Your Project ID

Identify the Project ID where you want to upload your model, and set it as an environment variable:
export PROJECT_ID=<YOUR_PROJECT_ID>
4

Run the Upload Command

Upload your local model directory to Friendli:
friendli --token $API_KEY model push --project $PROJECT_ID --name new-model /path/to/model
  • --name: The name to assign to the model on Friendli.
  • /path/to/model: The local path to your model files.
  • Identical files are deduplicated automatically and won’t be re-uploaded.
  • Some files may be skipped if they are unnecessary or unsupported.
Last modified on June 24, 2026