Skip to main content
Lasso uses a credit-based system for extraction and enhancement operations.

What consumes credits

OperationCredit cost
Table extractionVaries by file size and complexity
Single cell enhancement~2 credits per cell
Bulk enhancement~0.5 credits per column
Credit estimates are returned when you create an enhancement job, so you know the cost before processing begins.

Checking your balance

const balance = await client.credits.balance();
console.log(`${balance.balance} credits remaining`);

Tracking usage

View your credit transaction history with optional filters:
const usage = await client.credits.usage({
  from: "2025-01-01T00:00:00Z",
  to: "2025-03-31T23:59:59Z",
  service: "enhancement",
});

console.log(`Total used: ${usage.total_used} credits`);

Insufficient credits

If you do not have enough credits for an operation, the API returns a 402 error with error_type: "insufficient_credits". Check your balance before starting large enhancement jobs.