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

# Subscriptions

> Understanding Winnie's Subscription Models

Winnie offers flexible subscription models to suit different development needs, from solo developers to enterprise teams.

## Subscription Tiers

<CardGroup cols={2}>
  <Card title="Free" icon="gift" iconType="duotone">
    Perfect for testing and exploration with basic features
  </Card>

  <Card title="Developer" icon="code" iconType="duotone">
    Ideal for individual developers and small projects
  </Card>

  <Card title="Business" icon="briefcase" iconType="duotone">
    For teams and production applications
  </Card>

  <Card title="Professional" icon="rocket" iconType="duotone">
    For high-volume applications and advanced needs
  </Card>

  <Card title="Enterprise" icon="building" iconType="duotone">
    Custom solutions for large organizations
  </Card>
</CardGroup>

## Plan Comparison

<Table>
  <Thead>
    <Tr>
      <Th>Feature</Th>
      <Th>Free</Th>
      <Th>Developer</Th>
      <Th>Business</Th>
      <Th>Professional</Th>
    </Tr>
  </Thead>

  <Tbody>
    <Tr>
      <Td>Monthly Credits</Td>
      <Td>500,000</Td>
      <Td>10,000,000</Td>
      <Td>100,000,000</Td>
      <Td>200,000,000</Td>
    </Tr>

    <Tr>
      <Td>Rate Limit (req/s)</Td>
      <Td>10</Td>
      <Td>50</Td>
      <Td>200</Td>
      <Td>500</Td>
    </Tr>

    <Tr>
      <Td>API Keys</Td>
      <Td>1</Td>
      <Td>3</Td>
      <Td>5</Td>
      <Td>15</Td>
    </Tr>

    <Tr>
      <Td>Webhooks</Td>
      <Td>1</Td>
      <Td>5</Td>
      <Td>20</Td>
      <Td>Unlimited</Td>
    </Tr>

    <Tr>
      <Td>WebSockets</Td>
      <Td>Limited</Td>
      <Td>Standard</Td>
      <Td>Enhanced</Td>
      <Td>Enhanced</Td>
    </Tr>

    <Tr>
      <Td>Support</Td>
      <Td>Community</Td>
      <Td>Email</Td>
      <Td>Priority</Td>
      <Td>Dedicated</Td>
    </Tr>
  </Tbody>
</Table>

## Credit System

Winnie uses a credit system to charge for API usage. Different request types consume different amounts of credits:

| Request Type         | Credit Cost     |
| -------------------- | --------------- |
| Standard RPC         | 1 credit        |
| Enhanced RPC         | 2 credits       |
| WebSocket Connection | 10 credits/hour |
| Webhook Delivery     | 5 credits       |
| Archive Data         | 10 credits      |

You can check your current credit usage in the dashboard:

```typescript theme={null}
// Check current subscription credits programmatically
const credits = await client.subscription.getCredits();
console.log(`Remaining credits: ${credits.remaining}`);
```

## Billing Cycles

Subscriptions are billed monthly or annually (with a discount). The billing cycle starts on the day you subscribe.

<Tip>
  Annual subscriptions typically come with a 10% discount compared to monthly billing.
</Tip>

## Auto-scaling

For paid plans, Winnie offers auto-scaling to handle traffic spikes:

<Steps>
  <Step title="Set Auto-scaling Preferences">
    Configure auto-scaling in your dashboard settings
  </Step>

  <Step title="Define Limits">
    Set a maximum credit limit for auto-scaling
  </Step>

  <Step title="Monitor Usage">
    Track auto-scaling usage in real-time
  </Step>
</Steps>

<Note>
  Auto-scaling usage is billed at the end of your billing cycle at a 20% premium over your standard rate.
</Note>

## Upgrading and Downgrading

You can change your plan at any time through the dashboard:

* **Upgrades** take effect immediately
* **Downgrades** take effect at the end of the current billing cycle
* **Pro-rated billing** applies when upgrading mid-cycle

## Enterprise Options

Enterprise plans offer additional features:

* **Custom infrastructure** tailored to your needs
* **Dedicated support** with guaranteed response times
* **SLA guarantees** for uptime and performance
* **Custom rate limits** based on your requirements
* **Volume pricing** for high-volume users

<Info>
  Contact our sales team for more information about Enterprise plans.
</Info>

## Billing and Payment

Winnie supports multiple payment methods:

<CardGroup cols={2}>
  <Card title="Credit Card" icon="credit-card" iconType="duotone">
    All major credit cards accepted
  </Card>

  <Card title="Crypto" icon="bitcoin" iconType="duotone">
    Pay with USDC, ETH, and other cryptocurrencies
  </Card>

  <Card title="Wire Transfer" icon="money-check" iconType="duotone">
    Available for annual Enterprise plans
  </Card>

  <Card title="Invoice" icon="file-invoice" iconType="duotone">
    Net-30 terms available for Enterprise customers
  </Card>
</CardGroup>
