Text to Speech
Voice Cloning
Lip Sync Video
Other
Text to Speech
Voice Cloning
Lip Sync Video
Other
User Profile
Query user's API credits remaining and basic information
Query User Profile API
Endpoint
GET /api/open/profile
Also supports POST requests, parameters can be passed via request body or Authorization header
Request Headers
Authorization: Bearer YOUR_API_TOKEN // API key
Request Parameters (POST Method)
{
"token": "YOUR_API_TOKEN" // Optional if not provided in header
}Response Data
// 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
CURL Example
# GET request
curl -X GET https://kittaai.com/api/open/profile \
-H "Authorization: Bearer YOUR_API_TOKEN"
# POST request (via header)
curl -X POST https://kittaai.com/api/open/profile \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{}'
# POST request (via body)
curl -X POST https://kittaai.com/api/open/profile \
-H "Content-Type: application/json" \
-d '{
"token": "YOUR_API_TOKEN"
}'Online Debug
Status Code Description
Status Code Description:
200 OK - Request successful
400 Bad Request - Invalid request parameters
401 Unauthorized - Invalid API Token
403 Forbidden - Access forbidden
404 Not Found - Resource not found
413 Payload Too Large - Upload file too large
429 Too Many Requests - Rate limit exceeded/Insufficient credits
500 Server Error - Internal server error
Error Response Format:
{
"error": string, // Error message
"details": string, // Detailed error message (optional)
"code": string // Error code (optional)
}