SRTGen.com LogoSRTGen.com

Credit Balance

Query your current available credit balance to manage usage and prevent job failures.

GET/api/v1/balance
Quick Implementation
curl -X GET https://api.srtgen.com/api/v1/balance \
  -H "x-api-key: <YOUR_API_KEY>"
GEThttps://api.srtgen.com/api/v1/balance

This endpoint returns the total usable balance, which includes both your monthly subscription allowances and any extra top-up credits you have purchased.

Response Structure

FieldTypeDescription
Identity & Context
userObjectBasic information about the authenticated user.
user.nameStringThe display name of the user.
user.emailStringThe registered email address.
Credit Balance Breakdown
creditsObjectDetailed credit balance breakdown.
credits.totalBalanceNumberSum of all usable credits (Allowances + Extra).
credits.extraCreditsNumberPermanent top-up credits.
credits.plansArrayList of active subscription plans.
plans[].nameStringDisplay name of the plan (e.g., 'Pro Plan').
plans[].statusStringSubscription status (active, past_due).
plans[].balanceNumberCredits remaining in this specific cycle.
Cloud Storage Usage
storageObjectCloud storage usage statistics.
storage.usageNumberCurrent storage usage in bytes.
storage.limitNumberMaximum storage limit in bytes based on your plan.
storage.formattedUsageStringHuman-readable usage (e.g., '200 MB').
storage.formattedLimitStringHuman-readable limit (e.g., '10 GB').
Sample Response: 200 OK
{
  "success": true,
  "user": {
    "name": "Alex Rivera",
    "email": "[email protected]"
  },
  "credits": {
    "totalBalance": 1250,
    "totalMonthlyCredits": 1000,
    "extraCredits": 250,
    "plans": [
      {
        "id": "starter",
        "name": "Starter Plan",
        "status": "active",
        "balance": 1000,
        "total": 1000,
        "resetTime": "2026-04-29T17:48:46.000Z"
      }
    ]
  },
  "storage": {
    "usage": 209715200,
    "limit": 10737418240,
    "formattedUsage": "200 MB",
    "formattedLimit": "10 GB"
  },
  "updatedAt": "2026-03-29T17:48:46.000Z"
}

Errors

StatusCodeDescription
401unauthorizedAPI key is missing or invalid.
500server_errorAn unexpected internal error occurred.
Was this page helpful?
SRTGen.com - Professional AI Subtitle Generator