1,000,000 micros equals $1.00. Memex shows the balance as credits: one credit is $0.01, or 10,000 micros.
Insufficient usage balance response
Memex search responses can include:errorCode: "INSUFFICIENT_CREDITS"(legacy-compatible error code)meta.remainingUsageBalanceupgradeOptions
Buy usage balance in the browser
Humans can add usage balance directly from the Memex website:- Open
https://memex.garden/pricing - Pick a plan and complete checkout in the browser
Buy usage balance from an agent
Step 1: fetch the current pricing catalog
plans[].id or plans[].variantId in the checkout request.
Step 2: call checkout
Call/checkout with the user’s Memex bearer token and a Stripe Shared Payment
Token.
/checkout for one-time plans such as the credit packs
(credit-pack-1000, credit-pack-2000, credit-pack-5000,
credit-pack-10000). For subscription plans, send the user to
https://memex.garden/pricing.
Agent operating rule
When an agent seeserrorCode: "INSUFFICIENT_CREDITS":
- Show the user the available upgrade options if the response already contains
upgradeOptions. - If
upgradeOptionsis missing or stale, callPOST /get-available-plans. - Ask the human which plan they want.
- If the selected plan is a one-time plan, obtain a Stripe Shared Payment Token from the agent payment harness.
- Call
POST /checkoutwith the user’s Memex bearer token and Shared Payment Token. - If the selected plan is a subscription plan, send the user to
https://memex.garden/pricing.
Which requests currently consume usage balance
- Search responses expose charges as
usageMicrosChargedand balances asremainingUsageBalance. - Search currently reports
usageMicrosCharged: 0. - Saving content costs one credit per new library item. PDFs cost one credit per five pages. Notes and highlights are free.
- Transcription costs 20 credits per hour, and 70 credits per hour for premium transcription.
- A save that the balance cannot cover fails with
errorCode: "SAVE_CONTENT_INSUFFICIENT_CREDITS".
Related docs
- Auth for checkout requests: Authentication
- Current plan and operation list: Available endpoints
- Response fields like
upgradeOptions: Response shape

