POST
/
models
import Together from "together-ai";

const client = new Together({
apiKey: process.env.TOGETHER_API_KEY,
});

const response = await client.models.upload({
model_name: "My-Fine-Tuned-Model",
model_source: "https://ml-models.s3.us-west-2.amazonaws.com/models/my-fine-tuned-model.tar.gz",
})

console.log(response);
{
  "data": {
    "job_id": "job-a15dad11-8d8e-4007-97c5-a211304de284",
    "model_name": "necolinehubner/Qwen2.5-72B-Instruct",
    "model_id": "model-c0e32dfc-637e-47b2-bf4e-e9b2e58c9da7",
    "model_source": "huggingface"
  },
  "message": "Processing model weights. Job created."
}

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

Model / adapter upload job created successfully

The response is of type object.