How Pricing Works
- Each dataset has a price per chunk (e.g.,
$0.001) - A small platform fee is added per chunk
- You’re charged for each result actually returned, not the
top_kestimate - Cost =
chunk_count × (price_per_chunk + platform_fee)per dataset
Cost Estimation
Before a query executes, Datagate checks your balance against the max possible cost (topK × price per dataset). If your balance is too low, you get a402 Insufficient Balance error with your current balance and the estimated cost.
Deposits
Add funds via Stripe Checkout from the dashboard:- Go to Billing → Deposit
- Enter amount and complete Stripe Checkout
- Funds are credited immediately after payment
Auto-Deposit
Configure automatic refills so your agent never runs out of balance:- Go to Billing → Auto-Deposit in the dashboard
- Set a threshold (e.g., $5.00) — when balance drops below this, auto-refill triggers
- Set a refill amount (e.g., $25.00) — how much to deposit
- Requires a saved payment method (set up during your first deposit)
Monitoring Balance
Check your balance from the dashboard or programmatically via the API:Tips for Cost Management
- Use lower
top_kvalues when you don’t need many results (default is 10) - Use metadata filters to narrow results — fewer irrelevant chunks = lower cost
- Set up auto-deposit with a comfortable threshold for unattended agents
- Check
price_per_chunkinlist_datasets()to understand per-dataset pricing before querying