Credits Management
Learn how to manage and monitor your YODI credits.
Overview​
Credits are used to consume YODI APIs. Your subscription includes a monthly credit allocation.
Checking Your Balance​
Endpoint: GET /credits/me
curl -X GET "https://admin.yodi.tg/api/credits/me" \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"message": "SUCCESS",
"error": false,
"data": {
"id": 1,
"quota": { "translation": 1000, "audio": 500, "voice_call": 100, "sms": 200 },
"used": { "translation": 145, "audio": 23, "voice_call": 5, "sms": 12 },
"source": "purchase",
"expiresAt": "2025-01-01T00:00:00.000Z"
},
"status": 200
}
Service Catalog​
Endpoint: GET /services
List all available credit-based services and their cost per unit.
Service Quota​
Endpoint: GET /services/{name}/quota
Check quota and usage for a specific service by name (e.g., translation, audio, voice_call, sms).
curl -X GET "https://admin.yodi.tg/api/services/translation/quota" \
-H "Authorization: Bearer YOUR_API_KEY"
Credit Pricing​
Each YODI service has different credit costs:
| Service | Operation | Cost |
|---|---|---|
| Translation | Per 100 words | 10 credits |
| Text Analysis | Per request | 5 credits |
| Text-to-Speech | Per 1000 characters | 50 credits |
| Chat | Per message | 1 credit |
| Agents | Per task | 10 credits |
| Communications | Per message | 2 credits |
Low Credit Alerts​
Set up alerts in your dashboard to be notified when credits are low.
Buying Extra Credits​
Contact support or purchase through the dashboard for bulk credit packages.