Home Documentation Billing & Credits

Billing & Credits

Understand how LLM Resayil's credit system works, how we calculate token consumption, and how to manage your account balance and costs.

How Credits Work

LLM Resayil uses a credit-based billing system. Credits are automatically deducted from your account based on the number of tokens consumed per API request. This pay-per-token model means you only pay for what you actually use.

What Are Credits?

Credits are our standard unit of account. When you make an API request, a credit multiplier is applied to the total token count (prompt tokens + completion tokens) to determine how many credits are deducted from your balance.

Starting Balance

New accounts receive 1,000 free credits to get started. Use these to explore the API and test different models. No credit card is required for the free tier. When your free credits are exhausted, you'll need to purchase more to continue using the API.

Free Credits Validity: Free credits are valid for 30 days from account creation. After 30 days, your free credits expire. Purchased credits do not expire and remain valid indefinitely.

Credit Calculation Formula

Credits deducted per request are calculated by multiplying the total token count by the model's credit multiplier. The multiplier varies by model tier — Standard or Frontier.

Calculation Formula
credits_deducted = ( prompt_tokens + completion_tokens ) × credit_multiplier

Prompt and completion tokens are summed, then multiplied by the model's credit multiplier.

Credit Rates by Model Tier

Multiplier values are organized by model tier — Standard Models or Frontier Models:

Standard Models
Model Type Multiplier Best For
Lightweight — small & fast 0.5× Classification, short summaries
Standard — balanced 1.0× General chat, writing, coding
Mid-range — larger models 1.5× Complex reasoning, long content
Frontier Models
Model Type Multiplier Best For
Frontier Standard 2.0× – 2.5× High-accuracy tasks
Frontier Large 3.0× – 3.5× Hardest tasks, multi-step reasoning

Example Calculation

Suppose you send a request with 100 prompt tokens and the model responds with 200 completion tokens, using a standard model with a 1.0× multiplier:

example
prompt_tokens:      100
completion_tokens:  200
total_tokens:       300
credit_multiplier:  1.0  (standard model)
credits_deducted:   300 × 1.0 = 300 credits

-- Premium model example (multiplier 2.5×) --
credits_deducted:   300 × 2.5 = 750 credits

Check your dashboard for the exact multiplier applied to each model.

Token Consumption

Understanding how tokens are counted is essential for budgeting. Two types of tokens are counted per request: tokens in your input (prompt) and tokens in the model's output (completion).

Prompt Tokens

Prompt tokens are the tokens in your request message, including any system prompts, message history, and the user's query. Longer conversations and more context mean more prompt tokens and higher costs.

Completion Tokens

Completion tokens are the tokens the model generates in its response. The max_tokens parameter in your request limits the maximum number of completion tokens that can be generated.

Usage Information in Responses

Every API response includes detailed token usage information:

json
"usage": {
  "prompt_tokens": 45,
  "completion_tokens": 128,
  "total_tokens": 173
}

Billing API Endpoints

LLM Resayil provides API endpoints for querying subscription data, credit balance, and purchase history. All billing endpoints require API key authentication.

Returns your current subscription details including tier, status, expiry date, and credit balance.
Request
GET https://llmapi.resayil.io/api/billing/subscription
Authorization: Bearer YOUR_API_KEY
Response
{
  "tier": "pro",
  "status": "active",
  "expires_at": "2025-06-01T00:00:00Z",
  "credits": {
    "balance": 4250,
    "currency": "credits"
  }
}
Returns the list of available credit top-up packs with their pricing details.
Request
GET https://llmapi.resayil.io/api/billing/topup-packs
Authorization: Bearer YOUR_API_KEY
Response
{
  "packs": [
    { "id": "pack_500",  "credits": 500,   "price": 5.00,  "currency": "USD" },
    { "id": "pack_2000", "credits": 2000,  "price": 18.00, "currency": "USD" },
    { "id": "pack_5000", "credits": 5000,  "price": 40.00, "currency": "USD" }
  ]
}
Returns a paginated list of past credit top-up purchases (20 per page). Use the page query parameter to navigate between pages.
Request
GET https://llmapi.resayil.io/api/billing/topup-history?page=1
Authorization: Bearer YOUR_API_KEY
Response
{
  "data": [
    {
      "id": "txn_abc123",
      "credits": 2000,
      "amount": 18.00,
      "currency": "USD",
      "status": "completed",
      "created_at": "2025-03-01T10:22:00Z"
    }
  ],
  "current_page": 1,
  "per_page": 20,
  "total": 5
}

Note: Top-up purchases must be completed through the web UI at /billing/plans. There is no API endpoint for initiating purchases — payment is processed via the MyFatoorah gateway.

Subscription Tiers

LLM Resayil offers multiple subscription tiers with different request limits and model access.

Free
Credits 1,000
Limits Standard
Price Free
Starter
Credits Higher monthly
Limits Expanded
Models Additional
Basic
Limits Improved
Processing Priority
Enterprise
Limits Custom
Support Dedicated
API Enterprise

See the Pricing page for full details on each tier.

Purchasing Credits

Purchase credits anytime through your dashboard. Payments are processed immediately via the MyFatoorah payment gateway. Purchased credits never expire.

Top Up Your Credits

Add credits to your account instantly via MyFatoorah. Purchased credits never expire.

View Plans →

How to Top-Up

  1. Log in to your LLM Resayil dashboard
  2. Go to BillingPlans
  3. Select the credit pack you want to purchase
  4. Complete payment via MyFatoorah
  5. Credits are added to your account immediately after payment confirmation

Payment Methods: MyFatoorah accepts multiple payment methods including credit cards, debit cards, and local payment options depending on your region. See their website for full details.

Viewing Your Usage

Track your API usage and credit consumption from your account dashboard:

  • Current Credit Balance: Shows available credits remaining in your account
  • Usage This Month: Total tokens and credits consumed in the current billing period
  • Cost Breakdown by Model: See which models are consuming the most credits
  • API Call History: View transaction logs and usage patterns

Related Resources

Ready to learn more?

Understand request rate limits and quota management.

Go to Rate Limits & Quotas →