Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iahispano/applio-api
Robust functionality, focused on granting convenient access to AI models developed using the RVC technology.
https://github.com/iahispano/applio-api
ai api applio rvc vc voice voice-clone voice-cloning
Last synced: 6 days ago
JSON representation
Robust functionality, focused on granting convenient access to AI models developed using the RVC technology.
- Host: GitHub
- URL: https://github.com/iahispano/applio-api
- Owner: IAHispano
- Created: 2023-11-10T19:42:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-20T20:55:17.000Z (7 months ago)
- Last Synced: 2024-04-20T21:29:02.138Z (7 months ago)
- Topics: ai, api, applio, rvc, vc, voice, voice-clone, voice-cloning
- Language: TypeScript
- Homepage: https://api.applio.org
- Size: 129 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Applio API
Welcome to the Applio API, your gateway to a vast repository of more than 20,000 RVC models and over 500,000 kits.ai components.
## Installation
To get started with the Applio API, follow these simple installation steps:
1. Install Applio-API using npm:
```bash
npm install
```2. Start the API with the following command:
```bash
npm run dev
```## API Reference
### Get All Models
Retrieve information about multiple models using the following API endpoint:
```http
GET /key=(secret)/models/perpage=(number)/page=(number)?type=(kits.ai / rvc)
```| Parameter | Type | Description |
| :--------- | :------- | :------------------------------------- |
| `perpage` | `number` | **Required**. Number of models to view (max 25). |
| `page` | `number` | **Required**. Page number to be displayed |
| `type` | `string` | Optional. Type of model to fetch |### Search Models
Search for specific models by name using the following API endpoint:
```http
GET /key=(secret)/models/search?name=(model_name)&type=(kits.ai / rvc)
```| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| `search` | `string` | **Required**. Name of model to fetch (min 3 letters). |
| `type` | `string` | Optional. Type of model to fetch |### Search User Models
To find specific models based on their associated usernames:
```http
GET /key=(secret)/models/user=(username)?type=(kits.ai / rvc)
```| Parameter | Type | Description |
| :--------- | :------- | :------------------------------------- |
| `user` | `string` | **Required**. User owner of the models you want to see (min 3 letters). |
| `type` | `string` | Optional. Type of model to fetch |### Upload Model
Upload a model, you must have an administrator API KEY.
```http
POST /key=(secret)/upload/:id/:name/:link/:image_url/:type/:epochs/:created_at/:algorithm/:author_id/:author_username
```| Parameter | Type | Description |
| :--------- | :------- | :------------------------------------- |
| `key` | `string` | **Required**. This action requires an ADMIN API KEY for authorization. |
| `id` | `string` | **Required**. Unique identifier for the model. |
| `name` | `string` | **Required**. Name of the model. |
| `link` | `string` | **Required**. Link associated with the model. |
| `image_url` | `string` | **Required**. URL of the model's image. |
| `type` | `string` | **Required**. Type of the model. |
| `epochs` | `string` | **Required**. Number of epochs for the model. |
| `created_at` | `string` | **Required**. Creation date of the model. |
| `algorithm` | `string` | **Required**. Algorithm used by the model. |
| `author_id` | `string` | **Required**. Identifier of the model's author. |
| `author_username` | `string` | **Required**. Username of the model's author. |### Get All Blogs
Retrieve information about multiple blogs using the following API endpoint:
```http
GET /key=(secret)/blog/perpage=(number)/page=(number)
```| Parameter | Type | Description |
| :--------- | :------- | :------------------------------------- |
| `perpage` | `number` | **Required**. Number of models to view (max 25). |
| `page` | `number` | **Required**. Page number to be displayed |### Get All Users
Retrieve information about multiple users using the following API endpoint, you must have an administrator API KEY:
```http
GET /key=(secret)/user/perpage=(number)/page=(number)
```| Parameter | Type | Description |
| :--------- | :------- | :------------------------------------- |
| `perpage` | `number` | **Required**. Number of models to view (max 25). |
| `page` | `number` | **Required**. Page number to be displayed |### Generate an API KEY
Generate a user API KEY, you must have an administrator API KEY.
```http
POST /key=(secret)/generateToken
```| Parameter | Type | Description |
| :--------- | :------- | :------------------------------------- |
| `key` | `string` | **Required**. This action requires an ADMIN API KEY for authorization. |### Check API Status
Check the latency of the API.
```http
GET /ping
```Make sure to replace `(secret)` in the API endpoints with your actual API KEY to authenticate your requests.
## Performance Testing
In the table below, you will find the results of our performance tests for the Applio API. We run these tests with every new release, and you can access all the logs here:
| Request Count | Response Time | Version |
| ------------- | ------------------------| -----------------|
| 100 | 1.0s | Beta |
| 250 | 1.1s | Beta |
| 500 | 1.4s | Beta |
| 1000 | 1.6s | Beta |
| 100 | 0.3s | 1.0 |
| 250 | 0.5s | 1.0 |
| 500 | 0.9s | 1.0 |
| 1000 | 1.3s | 1.0 |
| 100 | 0.3s | 1.2 |
| 250 | 0.4s | 1.2 |
| 500 | 0.6s | 1.2 |
| 1000 | 1.2s | 1.2 |#### Attempts to scrape data from our API are strictly prohibited.