GET
/
rvc-models
/
search
JavaScript
import Weights from '@weights-ai/sdk';

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

const response = await client.rvcModels.search({ search: 'x' });

console.log(response.models);
{
  "models": [
    {
      "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.

Query Parameters

Required string length: 1 - 100
limit
number
default:25

Number of items to return per page

Required range: 1 <= x <= 50
Examples:

25

cursor
string | null

Cursor for pagination to get the next page of results - this is the last item's ID from the previous page

Examples:

"cmcz89fci00zr0dlt68klunpf"

Response

200
application/json

Returns a paginated list of public RVC models matching the search criteria.

The response is of type object.