Skip to content

Billing & Usage

This tutorial covers how credits work, how to track usage, and how to manage costs on LenserFight Cloud.

Note: Billing is a Cloud-only feature. Community Edition (self-hosted) does not have platform-credit charges — you pay your AI provider directly.

Prerequisites


Credits

Credits are the platform currency for AI model execution on LenserFight Cloud.

How credits work

You run a Lens → Model generates tokens → Tokens × rate = credits charged
FactorDescription
Input tokensTokens in the prompt sent to the model
Output tokensTokens in the model's response
Model rateCost per token varies by model
Tool usageSome tools incur additional credits

Credit rates by model

ModelInput (per 1M tokens)Output (per 1M tokens)
GPT-4o5 credits15 credits
GPT-4o-mini0.3 credits1.2 credits
Claude Sonnet 46 credits30 credits
Claude Opus 430 credits150 credits
Gemini 2.0 Flash0.15 credits0.6 credits
Ollama (BYOK)0 credits0 credits

Rates are approximate. Check the current pricing page for exact values.


Purchasing credits

Credit packs

  1. Navigate to Settings → Billing → Buy Credits
  2. Select a credit pack:
PackCreditsPriceBonus
Starter100$5
Builder500$20+25 bonus
Pro2,000$75+150 bonus
Team10,000$350+1,000 bonus
  1. Complete checkout via Stripe
  2. Credits are added to your balance immediately

Subscription plans

PlanMonthly creditsPrice/monthFeatures
Free50$0Personal workspace, community access
Pro1,000$29Team workspaces, priority support
Team5,000$99Unlimited members, API access
EnterpriseCustomContact salesSLA, SSO, dedicated support

Usage tracking

Dashboard

Navigate to Settings → Billing → Usage to see:

MetricDescription
Current balanceAvailable credits
This periodCredits used this billing cycle
Daily averageAverage daily credit consumption
ProjectedEstimated month-end usage

Per-run cost breakdown

Each workflow run shows:

  • Node-by-node token usage
  • Model-specific costs
  • Tool usage charges
  • Total credit cost

Export usage data

Download usage reports:

Settings → Billing → Usage → Export CSV

Fields: date, workflow, agent, model, input_tokens, output_tokens, credits, status


Cost management

Setting budget alerts

  1. Navigate to Settings → Billing → Alerts
  2. Configure alerts:
    • Warning — notify at 80% of monthly budget
    • Critical — notify at 95% of monthly budget
    • Hard limit — stop executions at 100%

Per-agent budgets

Set credit limits per agent:

  1. Navigate to Agent → Settings → Budget
  2. Set Max credits per run (default: 10)
  3. Set Max credits per day (default: 100)
  4. Set Max credits per month (default: 1,000)

Cost optimization tips

StrategyImpact
Use smaller models for simple tasks10–50× cheaper
Reduce prompt lengthDirectly reduces input tokens
Set max output tokensPrevents runaway generation
Cache repeated promptsAvoid re-running identical inputs
Use Ollama for developmentFree local execution
Pin Lens versionsPrevent unexpected cost changes

API costs

Developer token usage

API calls via developer tokens consume credits at the same rates as web app usage.

bash
# Check your balance via API
curl "https://api.lenserfight.com/v1/billing/balance" \
  -H "Authorization: Bearer $API_KEY"

Rate limits

PlanRequests/minuteConcurrent runs
Free101
Pro605
Team30020
EnterpriseCustomCustom

When rate-limited, the API returns 429 Too Many Requests with a Retry-After header.


Workspace billing

Team workspaces

Team workspace billing:

  • The workspace owner is billed
  • All members' usage is charged to the workspace
  • Per-member budgets can be set by admins

Billing history

View past invoices:

  1. Navigate to Settings → Billing → History
  2. Download PDF invoices
  3. View line-item details

Next steps