API pricing

One endpoint, pay per call in USDC on Base (x402). You send the question and your documents — PRAMANA answers with citations and stores nothing.

Prices

  • $0.10 — one call, up to 20 documents / 60,000 characters total
  • $0.25 — long documents (over 60,000 characters)
  • $7.90 — 100 calls (about $0.079 per call)

The price is computed from the actual payload size, so a small request never pays the long-document rate. No subscription required.

Status

Paid calls are being switched on. Until the mainnet settlement rail is available, the API is free: 3 trial calls per IP per day on POST /api/v1/qa/trial, plus a beta allowance.

  • Trial: free, POST /api/v1/qa/trial, 3 calls/day per IP
  • Paid mode: HTTP 402 with payment requirements, retry with X-PAYMENT
  • Network: eip155:8453 (Base mainnet) or eip155:84532 (Base Sepolia)
  • Asset: USDC

Check before you pay

POST /api/v1/qa/verify is free and deterministic: it tells you whether your question is answerable from your documents (accept / review / reject), the price for your payload, and a request fingerprint. No model is called.

Every call returns a receipt you can check independently at GET /api/v1/receipt/<id>. The receipt is not signed by us: it is a hash chain you can recompute yourself.

What you get

  • Answer grounded in your documents, with citations and source fragments
  • Hybrid retrieval: BM25 + local embeddings + cross-encoder reranking
  • Honest refusals: low evidence is reported, not invented
  • Document text is chunked in memory and discarded after the answer
  • Russian and English; mode=local runs entirely on local models

Limits

  • 20 documents per call, 20,000 characters per document
  • 60,000 characters total per call (beta)
  • 10 calls per minute per IP
  • Interactive API docs: /docs

Call

curl -X POST https://YOUR-HOST/api/v1/qa \
  -H "Content-Type: application/json" \
  -d '{
    "question": "What are the payment terms?",
    "documents": [{"name": "contract.pdf", "text": "Payment is due within 14 calendar days..."}],
    "language": "en"
  }'

In paid mode the first response is 402 Payment Required with an x402 PaymentRequired header. Pay it and repeat the request with the X-PAYMENT header set.