> ## Documentation Index
> Fetch the complete documentation index at: https://docs.easybilling.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Through standardized data models and a flexible billing engine, EasyBilling automatically converts complex AI usage data into billable revenue, delivering a complete closed loop from product usage to cash collection.

## Get started in few steps

### Step 1: Usage Event Schema

<AccordionGroup>
  <Accordion icon="arrow-right-to-line" title="Configure usage event templates">
    Configure usage event templates based on your business data format to define how the system parses the raw usage data you send. Customizable fields and attributes, such as model, request\_type, tokens, region, etc., provide the data foundation for complex pricing models.
  </Accordion>
</AccordionGroup>

### Step 2: Billable Metrics

<Accordion icon="diagram-sankey" title="Define core billable metrics">
  Based on the usage event template, define core metrics that can be used for billing, such as:

  * Total Token Consumption
  * Number of Calls for a Specific Model
  * Usage Aggregated by Region or Time Period

  In this step, raw data is filtered, aggregated, and transformed, converting business events into standardized billing metrics.Your preview updates automatically as you edit files.
</Accordion>

### Step 3: Billing Plan

<Accordion icon="file-invoice-dollar" title="Setup pricing plan">
  Combine one or more charge items into a complete pricing plan, for example:

  * Token-based Pricing
  * Subscription Fee
  * Prepayment and Minimum Commitment

  And configure the billing cycle, billing date, currency, and discount strategy to match different customer contracts and product plans.
</Accordion>

### Step 4: Customer Account

<AccordionGroup>
  <Accordion icon="user-group" title="Create new customer accounts">
    Create a separate account for each customer in the system to manage:

    * Contract Lifecycle
    * Usage Event
    * Invoice
    * Payment Method and Balance

    Support enterprise-level customer hierarchies and multiple subscription structures.
  </Accordion>
</AccordionGroup>

### Step 5: Contract Activation

<Accordion icon="pen-line" title="Assign the pricing plan to customers">
  Assign the configured pricing plan to the customer account to activate the contract. Once active, the system automatically starts metering and billing according to the plan rules.
</Accordion>

### Step 6: Usage Ingestion

<Accordion icon="database" title="Send customer usage data">
  Continuously send customer usage data to EasyBilling via APIs or batch interfaces in real time. Based on billing metrics and pricing rules, the system performs real-time or near real-time rating and billing, while synchronously updating usage and balance status.
</Accordion>

### Step 7: Invoicing

<Accordion icon="file-doc" title="Generates invoices">
  The system automatically generates invoices based on billing cycles or real-time rules：

  * Prepaid model: charges are deducted from the balance in real time.
  * Postpaid model: invoices are generated after the billing period ends.

  Supports billing details, usage visualization, and invoice generation, making it easier for customers to verify and for finance teams to reconcile.
</Accordion>

### Step 8: Payment & Reconciliation

<Accordion icon="circle-dollar" title="Process payments">
  Automatically handle payments, refunds, and retries with integrated payment gateways, while updating payment status in real time. Billing, collection, and financial data remain consistent, providing a reliable foundation for revenue recognition and reconciliation.
</Accordion>

## One system that integrates billing, payments, and compliance

Through the above process, EasyBilling helps businesses achieve:\
**Usage Collection → Pricing & Billing → Invoice Generation → Global Payments → Financial Reconciliation** A fully automated closed-loop.\
Enable AI teams to have global commercialization capabilities without the need to build complex systems in-house.
