Texte vers parole (HTTP)
Clonage vocal - créer un modèle
Lip-sync - créer une tâche
Profil utilisateur
Texte vers parole (HTTP)
Clonage vocal - créer un modèle
Lip-sync - créer une tâche
Profil utilisateur
Profil utilisateur
Consultez le quota API restant et les informations du compte.
API Profil utilisateur
Endpoint
GET /api/open/profile
Consultez le quota API restant et les informations du compte.
En-têtes de requête
Authorization: Bearer YOUR_API_KEY // API key
Paramètres de requête
{
"token": "YOUR_API_KEY" // Optional if not provided in header
}Réponse
// Success response - 200
{
"user_id": "user_123",
"api_quota_remaining": 1500,
"tier": "free",
"credits": 1000
}
// Error response
{
"error": string // Error message
}Données de réponse
user_id: Profil utilisateur
api_quota_remaining: Consultez le quota API restant et les informations du compte.
tier: Profil utilisateur
credits: Consultez le quota API restant et les informations du compte.
Exemple CURL
# GET request
curl -X GET https://fishaudio.org/api/open/profile \
-H "Authorization: Bearer YOUR_API_KEY"
# POST request (via header)
curl -X POST https://fishaudio.org/api/open/profile \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{}'
# POST request (via body)
curl -X POST https://fishaudio.org/api/open/profile \
-H "Content-Type: application/json" \
-d '{
"token": "YOUR_API_KEY"
}'Debug en ligne
Codes de statut
200: Success 400: Bad Request 401: Unauthorized 403: Forbidden 404: Not Found 429: Too Many Requests 500: Internal Server Error