diff --git a/server/docs/v1/index.php b/server/docs/v1/index.php
index 8355c15..6e81039 100644
--- a/server/docs/v1/index.php
+++ b/server/docs/v1/index.php
@@ -42,211 +42,10 @@ function getAPIKey(): string {
Voice Generator provides a RESTful API that you can use to interact with various features of the AI.
- -Your API key is strictly personal, sharing it will allow anyone to use on your behalf. It is displayed below, and you can hover over it or tap it to display it.
- -To authenticate with the API, you need to set the Authorization
header to Bearer <API key>
. If you are logged into through the website, your session will work on the API, although this is not a recommended way to use the API. If you are using Insomnia, click on the "Auth" tab and select "Bearer Token."
-error?: { - code: number, - name: string, - see: "https://voice-api.floo.fi/docs/" -} -output: any|null -- -
Code | -Name | -Meaning | -
---|---|---|
400 | -Bad Request | -A required argument for this endpoint is missing or incorrectly formatted. | -
401 | -Unauthorized | -No API key was provided with the request. If an API key was provided, it is not valid. | -
403 | -Forbidden | -You should normally have access to this endpoint, but your account has been blocked by the administrators. | -
404 | -Not Found | -The requested API endpoint does not exist or is not supported in this version of the API. | -
405 | -Method Not Allowed | -The HTTP method used at this endpoint is not the one that is expected. | -
409 | -Conflict | -You have tried to change the state of an item to a state it is already in. | -
413 | -Payload Too Large | -One of the parameters sent to this API endpoint is longer than the allowed length. | -
429 | -Too Many Requests | -This API key has exceeded the number of allowed requests in a certain timespan. | -
451 | -Unavailable For Legal Reasons | -The request goes against 's content filters and/or terms of use. | -
500 | -Internal Server Error | -A server error has occurred while processing this request. | -
501 | -Not Implemented | -The version of the API you are trying to use does not exist. | -
All API endpoints take root in https://voice-api.floo.fi/api.
-Method | -Path | -Parameters | -Description | -Output | -
---|---|---|---|---|
GET |
- v1/status | -- | -Get system information. | -{ - "user": string, - "version": string, - "processingUnits": [ - { - "id": string, - "pid": number, - "busy": boolean - } - ] -} |
-
GET New |
- v1/available | -- | -Check if enqueing a new generation is possible. | -{ - "available": boolean -} |
-
GET |
- v1/history | -URL: amount : number (optional) |
- Get previous generations associated with this account. | -[ - { - "id": string, - "version": string, - "author": string, - "status": generation-status, - "input": string, - "filename": string, - "audio_url": string?, - "explicit": boolean - } -] |
-
GET |
- v1/history/:id | -- | -Get a specific generation from its ID. | -{ - "id": string, - "version": string, - "author": string, - "status": generation-status, - "input": string, - "filename": string, - "audio_url": string?, - "explicit": boolean -} |
-
DELETE |
- v1/history/:id | -- | -Remove a specific generation from your history using its ID. | -{ - "id": string, - "version": string, - "author": string, - "status": "removed", - "input": string, - "filename": string, - "audio_url": null, - "explicit": boolean -} |
-
POST |
- v1/generate | -JSON: input : string |
- Enqueue a new generation job. | -{ - "id": string -} |
-
"removed"|"processed"|"generating"|"queued"|"crashed"-