Skip to main content
Memvid tracks query usage against your plan’s monthly quota. Every find and ask operation counts toward your limit, regardless of whether you use the CLI, Python SDK, or Node.js SDK.

How Query Tracking Works

  1. Each find or ask operation counts as 1 query
  2. Usage is tracked per API key
  3. Quota resets on your monthly billing date
  4. Tracking happens server-side (requires API key)

Plan Limits

Queries are counted even for local .mv2 files when an API key is configured. This enables usage tracking across all your memories.

Checking Your Usage

CLI

Output:
JSON output for scripting:

Dashboard

Visit memvid.com/dashboard/plan to see:
  • Real-time usage graphs
  • Historical usage trends
  • Billing information
  • Upgrade options

Quota Exceeded Error

When you exceed your monthly quota, queries will fail with error MV023:

SDK Error Handling

Python

The QuotaExceededError includes:
  • used: Queries used this period
  • limit: Plan query limit
  • remaining: Queries remaining (0 when exceeded)
  • reset_date: When quota resets (ISO 8601)
  • upgrade_url: Link to upgrade page

Node.js


Rate Limiting

In addition to monthly quotas, there are per-minute rate limits to prevent abuse: Rate limit errors return HTTP 429 with headers:

Handling Rate Limits


Optimizing Query Usage

1. Use Batch Operations

Instead of multiple individual queries, batch when possible:

2. Cache Results

Cache search results for repeated queries:

3. Use Appropriate Top-K

Don’t fetch more results than needed:

4. Filter Before Querying

Use scopes and filters to narrow searches:

Monitoring Usage Programmatically

Check Before Querying

Track Usage in Applications


Without API Key

If no API key is configured:
  • Query tracking is skipped
  • No quota limits apply
  • Usage isn’t recorded
This is useful for:
  • Local development
  • Offline usage
  • Testing
Without an API key, you can’t access dashboard features like usage history, team sharing, or paid plan capacity.

Syncing Plan Status

If your plan was recently upgraded, sync to get new limits:

Common Issues

”Quota exceeded” but dashboard shows remaining

  1. Cache lag: Wait 1-2 minutes for sync
  2. Wrong API key: Verify key matches dashboard
  3. Multiple keys: Each API key has separate quota

Queries not being tracked

  1. No API key: Set one:
  2. Network issues: Check connectivity to memvid.com
  3. Tracking is best-effort: Network failures don’t block queries

Rate limited but under quota

Rate limits are per-minute, quotas are per-month:
  • You can hit rate limits while having quota remaining
  • Wait a minute or implement exponential backoff

Enterprise Options

For high-volume usage:
  • Custom quotas: Tailored to your needs
  • Dedicated infrastructure: No shared rate limits
  • Priority support: Direct engineering access
  • SLA guarantees: Uptime commitments
Contact enterprise@memvid.com for details.

Next Steps

Capacity & Plans

Storage limits and plan features

CLI Configuration

Set up API keys and configuration