Aller au contenu principal

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:

ServiceOperationCost
TranslationPer 100 words10 credits
Text AnalysisPer request5 credits
Text-to-SpeechPer 1000 characters50 credits
ChatPer message1 credit
AgentsPer task10 credits
CommunicationsPer message2 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.


Next Steps​