POST
/
rvc-models
/
upload
JavaScript
import Weights from '@weights-ai/sdk';

const client = new Weights({
  bearerToken: 'My Bearer Token',
});

const response = await client.rvcModels.upload({
  description: "A voice model trained on John Doe's voice recordings",
  title: 'John Doe Voice Model',
  url: 'https://storage.example.com/models/voice_model.pth',
});

console.log(response.id);
{
  "id": "model_123456789",
  "title": "John Doe Voice Model",
  "createdAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Returns the details of the newly created RVC model.

The response is of type object.