Our rate limiting is token-based, ensuring a fair and transparent approach to API usage. This system helps maintain service quality for all users by preventing excessive consumption of resources. Limits are enforced on tokens per day and tokens per month (stored in our database). Additional limits on requests per day and per minute are enforced programmatically using Upstash Redis. See Token Credits & Pricing for more details.

Tier Limits

These are the maximum token limits for each plan, tracked in our database.
TierTokens per DayTokens per MonthCost per 1K Tokens
Free1,5007,500Rp 0
Basic3,00010,000Rp 7.50
Standard10,00050,000Rp 6.00
Pro10,0001,500,000Rp 1.49
EnterpriseCustomCustomCustom

Response Headers

Every API response includes usage information within the _metadata field. This allows you to track your current consumption against your plan limits directly from your application.
{
  "_metadata": {
    "usage": {
      "daily": {
        "current": 50,
        "limit": 1500, // Example limit for Free tier
        "reset_date": "2025-07-28T00:00:00Z",
        "remaining": 1450
      },
      "monthly": {
        "current": 500,
        "limit": 7500, // Example limit for Free tier
        "reset_date": "2025-08-01T00:00:00Z",
        "remaining": 7000
      }
    },
    "tier": {
      "name": "Free",
      "priority": 1
    }
  }
}

Rate Limit Errors

When your API usage exceeds the allocated rate limit for your plan, the API will return an HTTP Status Code 429: Too Many Requests. The response body will include details about the exceeded limit and when it will reset.
{
  "status": false,
  "creator": "neosantara.xyz",
  "error": {
    "message": "Daily token limit exceeded for your account (1500).",
    "type": "usage_limit_exceeded",
    "code": "user_total_daily_limit_exceeded"
  },
  "usage": {
    "current": 1500,
    "limit": 1500,
    "reset_date": "2025-07-28T00:00:00Z",
    "remaining": 0
  },
  "tier": "Free",
  "timestamp": "2025-07-27T04:10:59Z"
}