Billing¶
EpsimoAI uses a token-based billing model. You purchase tokens, and they are consumed as you interact with assistants. Payments are processed securely through Stripe.
How Tokens Work¶
Every time you send a message and receive a response, tokens are consumed. Token usage depends on:
- The length of your message and the assistant's response
- The AI model used (larger models cost more tokens)
- Whether tools are invoked during the run
Your current token balance is visible in the Settings page.
Purchasing Tokens¶
- Go to Settings in the sidebar.
- Choose the number of tokens you'd like to purchase (1–100,000).
- Click Buy Tokens — you'll be redirected to a Stripe checkout page.
- Complete payment (credit card, supported by Stripe).
- After successful payment, tokens are credited to your account automatically.
You'll be redirected to a success page after payment. If you cancel, no charge is made.
Pricing¶
Token pricing is configured server-side via Stripe. The unit price is fetched from the Stripe product at checkout time, ensuring you always see the current price.
Currency: EUR
What Happens When Tokens Run Out¶
- You will not be able to create new runs (send messages) until you purchase more tokens.
- Existing threads and conversation history remain accessible.
- Your assistants and configuration are preserved.
Payment Security¶
- All payments are processed by Stripe — EpsimoAI never sees your card details.
- Webhook verification ensures tokens are only credited for legitimate payments.
- Each payment event is processed exactly once (idempotency protection).
API Reference¶
| Operation | Endpoint |
|---|---|
| Create checkout session | POST /checkout/create-checkout-session |
| Stripe webhook (internal) | POST /checkout/webhook |
See the full API documentation at /docs#Checkout.