Texto a voz (HTTP)

Clonación de voz - crear modelo

Lip sync - crear tarea

Perfil de usuario

Clonación de voz - listar modelos

Lista modelos públicos y personales.

API Listar modelos

Endpoint

POST /api/open/list-models

Encabezados de solicitud

Content-Type: application/json
Authorization: Bearer YOUR_API_KEY  // API Key

Parámetros de solicitud

{
  "modelType": string,        // Opcional,undefined
  "includePersonal": boolean, // Opcional,undefined
  "page": number,            // Opcional,undefined
  "pageSize": number         // Opcional,undefined
}

Respuesta

// Datos de respuesta - 200
{
  "total": number,       // undefined
  "page": number,        // undefined
  "pageSize": number,    // undefined
  "totalPages": number,  // undefined
  "items": [            // undefined
    {
      "modelId": string,      // undefined
      "title": string,        // undefined
      "description": string,  // undefined
      "created_at": string,   // undefined
      "updated_at": string,   // undefined
      "isPersonal": boolean   // undefined
    }
  ]
}

// Consulta fallida
{
  "error": string     // Consulta fallida
}

Ejemplo CURL

curl -X POST https://fishaudio.org/api/open/list-models \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "modelType": "all",
    "page": 1,
    "pageSize": 10
  }'

Depuración en línea

Códigos de estado

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