Maha utility / local-first estimation

Measure the payload before it becomes a bill.

Estimate bytes, tokens, provider input cost, and an evidence-aware context-compression scenario. No sign-in or payload upload required.

Token estimate uses a local cl100k-style character heuristic: no payload is uploaded.

Raw bytes

0

Estimated tokens

0

Compression scenario

0

Start an integration

Export an executable request.

curl

curl https://www.mahastrategies.com/api/v1/compress \
+  -H "Authorization: Bearer YOUR_MAHA_API_KEY" \
+  -H "Content-Type: application/json" \
+  -d '{"clientRequestId":"replace-with-unique-request-id","task":"Extract the decision, constraints, and evidence gaps.","tokenBudget":600,"documents":[{"id":"brief-1","title":"Planning brief","text":"Paste your source text here."}]}'

python

import requests

response = requests.post(
    "https://www.mahastrategies.com/api/v1/compress",
    headers={"Authorization": "Bearer YOUR_MAHA_API_KEY"},
    json={"clientRequestId":"replace-with-unique-request-id","task":"Extract the decision, constraints, and evidence gaps.","tokenBudget":600,"documents":[{"id":"brief-1","title":"Planning brief","text":"Paste your source text here."}]},
    timeout=30,
)
print(response.json())

Enterprise ROI auditor / browser-local

Audit a request-log export without uploading it.

Drop an OpenAI-style JSONL export or LangChain/LangSmith JSON trace. Parsing and estimates stay in this browser. Select how many months the file represents to normalize the dashboard.