Text zu Sprache

Stimmenklon

Lippensynchronisation

Sonstiges

Modell erstellen

Testen Sie die API zum Erstellen von Stimmmodellen.

API Modell erstellen

Endpoint

POST /api/open/create-model

Request-Header

Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_TOKEN  // API-Key

Request-Parameter

Form Data:
name: string        // undefined,Modellname
description: string // undefined,Modellbeschreibung
visibility: string  // undefined,Model visibility,undefined 'private',undefined:'public' | 'private'
audioFiles: File  // undefined,Audiodateien,Format:wav/mp3

Antwort

// undefined - 200
{
  "modelId": string,    // Created model ID
  "title": string,     // Modellname
  "description": string, // Modellbeschreibung
  "createdAt": string,  // Created at
  "message": string     // Success message
}

// undefined
{
  "error": string     // undefined
}

CURL-Beispiel

curl -X POST https://fishaudio.org/api/open/create-model \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -F "name=Modellname" \
  -F "description=Modellbeschreibung" \
  -F "visibility=private" \
  -F "audioFiles=@/path/to/audio1.wav"

Online-Debug

Statuscodes

200: Success
400: Bad Request
401: Unauthorized
403: Forbidden
404: Not Found
429: Too Many Requests
500: Internal Server Error