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

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

const training = await client.rvcModels.training.create({
  audioFiles: [{ url: 'https://storage.example.com/training/voice_sample1.wav' }],
  name: 'John Doe Voice Model',
});

console.log(training.id);
{
  "id": "training_123456789",
  "name": "John Doe Voice Model",
  "description": "A voice model trained on John Doe's voice recordings",
  "image": "https://storage.example.com/model_preview.jpg",
  "status": "PROCESSING",
  "shortStatusText": "Training model with 15 audio files",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:35:00Z",
  "startTime": "2024-01-15T10:31:00Z",
  "endTime": "2024-01-15T10:34:00Z",
  "attempt": 1,
  "initialQueuePosition": 5,
  "isolateMainVocals": false,
  "deEchoDeReverb": false,
  "rvcModelId": "clm72xn4s11ttcctcr0dl9yfy",
  "rvcModel": null,
  "audioFiles": [],
  "queuePosition": 2
}

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 created RVC model training job.

The response is of type object.