Tokens & Billing
Understand how Refine's token system works. Learn what tokens cost, how to use them efficiently, and when to upgrade.
Tokens power AI generation in Refine. This page explains how they work.
How Tokens Work
Every time you send a message to the AI, tokens are consumed. The amount depends on:
- Prompt length — Longer, more detailed prompts use slightly more tokens
- Response complexity — Generating a full dashboard uses more than adding a column
- Iterations — Each back-and-forth message counts
One token roughly equals one AI interaction. Simple requests (add a field, change a color) use fewer tokens than complex ones (build a dashboard, create a multi-step form).
Plans and Limits
| Plan | Monthly Tokens | Price |
|---|---|---|
| Free | 300 | $0 |
| Pro | 1,500 | $20/mo |
| Pro 3K | 3,000 | $40/mo |
| Pro 6K | 6,000 | $80/mo |
| Pro 9K | 9,000 | $120/mo |
| Pro 15K | 15,000 | $200/mo |
| Pro 20K | 20,000 | $266/mo |
| Pro 40K | 40,000 | $533/mo |
Tokens reset monthly on your billing date.
Free: Experimenting, publish. No code export.
Pro (all tiers): Full apps, publish, code export.
Free tier
The free tier is for experimenting and learning how Refine works. You can:
- Build a single CRUD page
- Try out prompts and see what's possible
- Publish your app with a shareable link
Free does not include code export.
Pro tier
Pro is for building real applications:
- Build and publish full apps
- Export source code to self-host
- Multiple projects per month
- Frequent iteration and refinement
Checking Your Balance
To see your remaining tokens:
- Click your avatar in the top right corner
- Your token balance displays in the menu
You'll receive a warning when running low.
Using Tokens Efficiently
1. Write detailed first prompts
A specific prompt generates better code with fewer iterations.
❌ Costs more tokens:
Create a table
→ Add name column
→ Add email column
→ Add status column
→ Make status a badge
→ Add sorting✅ Costs fewer tokens:
Create a users table with columns: name, email, status (as colored badge).
Add sorting on all columns.2. Use the Editor for small changes
Editing code directly is free. Save tokens for structural changes.
Use the Editor for:
- Color changes
- Text updates
- Spacing adjustments
- Small style tweaks
Use AI for:
- Adding new features
- Changing data structure
- Complex interactions
3. Batch related requests
Instead of:
Change header to blue
→ Add card shadows
→ Increase font sizeDo:
Update styling: blue header (#2563eb), subtle shadows on cards,
and 16px body text.4. Rollback instead of fixing
If the AI went in a wrong direction, rollback and retry with a clearer prompt. This often costs fewer tokens than asking for multiple fixes.
→ See Prompting Guide for more tips.
Upgrading to Pro
When to upgrade:
- You want to publish your app with a shareable link
- You want to export the source code
- You're building multiple applications
- You hit the free limit before finishing
How to upgrade
- Go to account settings
- Select Pro plan
- Enter payment details
- Tokens are added immediately
Downgrading
You can downgrade anytime. You keep Pro until your current billing period ends.
FAQ
Do unused tokens roll over?
No. Tokens reset monthly on your billing date.
What happens when I run out?
AI chat pauses until your tokens reset or you upgrade. You can still use the Editor to modify code directly.
Do publishing and exports cost tokens?
No. Publishing your app and exporting code (Pro) don't consume tokens.
Does editing code cost tokens?
No. Only AI chat uses tokens. Direct code editing in the Editor is free.
Can I buy more tokens mid-month?
Currently, tokens are tied to your plan. Upgrade to Pro for more monthly tokens.
How do refunds work?
We offer refunds within 7 days of purchase if you haven't used Pro features extensively. Contact support.
Next Steps
- Prompting Guide — Use tokens efficiently
- Using the Console — Learn the workspace
- Getting Started — Build your first app