Texto a voz

Clonado de voz

Lip Sync

Otros

Perfil

Prueba la API de perfil de usuario.

API Perfil de usuario

Endpoint

GET /api/open/profile

Also supports POST requests, parameters can be passed via request body or Authorization header

Encabezados de solicitud

Authorization: Bearer YOUR_API_TOKEN  // API key

Request Parameters (POST Method)

{
  "token": "YOUR_API_TOKEN"  // Optional if not provided in header
}

Respuesta

// Success response - 200
{
  "user_id": "user_123",
  "api_quota_remaining": 1500,
  "tier": "free",
  "credits": 1000
}

// Error response
{
  "error": string  // Error message
}

Response Field Description

user_id: User ID
api_quota_remaining: Remaining API credits
tier: User tier (free/pro/enterprise)
credits: Normal credits balance

Ejemplo CURL

# GET request
curl -X GET https://fishaudio.org/api/open/profile \
  -H "Authorization: Bearer YOUR_API_TOKEN"

# POST request (via header)
curl -X POST https://fishaudio.org/api/open/profile \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{}'

# POST request (via body)
curl -X POST https://fishaudio.org/api/open/profile \
  -H "Content-Type: application/json" \
  -d '{
    "token": "YOUR_API_TOKEN"
  }'

Depuración en línea

API Description

  • • Supports both GET and POST request methods
  • • GET request: Pass token via Authorization header
  • • POST request: Supports passing token via header or request body
  • • Returns user's credit balance, tier and other basic information

Códigos de estado

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