Credit Wallet
The credit wallet covers the cost of AI token consumption when your application makes requests through the Vexrail API. Each API request consumes tokens from the underlying LLM, and these costs are billed against your credit wallet.
How Credits Work
When your AI application sends a request through Vexrail:
- The request is forwarded to the LLM provider.
- The LLM processes the request, consuming prompt and completion tokens.
- The token cost is deducted from your credit wallet.
This is separate from your earnings wallet, which tracks revenue from ad placements.
Credit Wallet Balance
Your credit wallet shows:
- Current balance -- Your remaining credit for token consumption.
Your credit balance must be positive for chat completion requests to succeed. If your credit balance reaches zero, API requests will be rejected until you add more funds.
Adding Credits
- Go to Billing from the sidebar.
- Switch to the Credit Wallet tab.
- Click Add Funds.
- Select or enter an amount.
- Complete the payment.
Funds are typically available within minutes after a successful payment.
Transaction History
The credit transaction history shows:
| Type | Description |
|---|---|
| Top-up | Funds you added to your credit wallet. |
| Consumption | Token usage charges from API requests. |
Managing Costs
- Choose the right model -- Different models have different token costs. Using a smaller model for simple queries can reduce consumption.
- Monitor usage -- Check your credit transaction history to understand your consumption patterns.
- Set up alerts -- Keep an eye on your credit balance and top up before it runs out to avoid service interruptions.
If your credit balance reaches zero, chat completion requests through the Vexrail API will fail. Make sure to maintain a positive balance for uninterrupted service.