Api Endpoint

Maha Context Compiler

Compile 1-8 documents into a token-budgeted context pack, then measure exact retention of 1-32 caller-labelled evidence spans. Returns the pack, source-linked passages, input and output hashes, original and compiled token estimates, tokensSaved, source coverage, and requiredEvidenceRetentionPercent. Retention is exact span matching only: not accuracy, answer quality, verification, or hallucination prevention. Extractive and budget-bound. Request content is not stored.

Open interactive test console

Offering

Provider
www.mahastrategies.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://www.mahastrategies.com/api/v1/compress/evaluate
MIME type
Not provided
First seen
2026-10-16T01:51:30.109Z
Last seen
Tags
AI, context-compression, LLM, RAG, evidence-retention

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28"
  }
]

Observed health

Status
Healthy
Latest latency
54 ms
Average latency
58 ms
HTTP status
204
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "properties": {
        "budgetMode": {
          "enum": [
            "guaranteed",
            "estimated"
          ],
          "type": "string"
        },
        "clientRequestId": {
          "maxLength": 120,
          "minLength": 8,
          "type": "string"
        },
        "documents": {
          "maxItems": 8,
          "minItems": 1,
          "type": "array"
        },
        "provenance": {
          "enum": [
            "full",
            "compact",
            "none"
          ],
          "type": "string"
        },
        "requiredEvidence": {
          "maxItems": 32,
          "minItems": 1,
          "type": "array"
        },
        "scoring": {
          "enum": [
            "bm25",
            "keyword"
          ],
          "type": "string"
        },
        "task": {
          "maxLength": 1200,
          "minLength": 8,
          "type": "string"
        },
        "tokenBudget": {
          "maximum": 16000,
          "minimum": 64,
          "type": "integer"
        }
      },
      "required": [
        "clientRequestId",
        "task",
        "tokenBudget",
        "documents",
        "requiredEvidence"
      ],
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "additionalProperties": false,
      "properties": {
        "clientRequestId": {
          "maxLength": 120,
          "minLength": 8,
          "type": "string"
        },
        "compiledContextStored": {
          "const": false,
          "type": "boolean"
        },
        "contextPack": {
          "type": "object"
        },
        "evaluationId": {
          "type": "string"
        },
        "evidence": {
          "maxItems": 32,
          "minItems": 1,
          "type": "array"
        },
        "inputHash": {
          "type": "string"
        },
        "metrics": {
          "type": "object"
        },
        "offerId": {
          "const": "deep-context-evaluation",
          "type": "string"
        },
        "outputHash": {
          "type": "string"
        },
        "requiredEvidenceTextStored": {
          "const": false,
          "type": "boolean"
        },
        "retentionBoundaries": {
          "type": "object"
        },
        "sourceTextStored": {
          "const": false,
          "type": "boolean"
        },
        "version": {
          "const": "0.1.0",
          "type": "string"
        },
        "warningCodes": {
          "type": "array"
        },
        "warnings": {
          "type": "array"
        }
      },
      "required": [
        "version",
        "offerId",
        "evaluationId",
        "clientRequestId",
        "contextPack",
        "evidence",
        "metrics",
        "inputHash",
        "outputHash",
        "warnings",
        "warningCodes",
        "retentionBoundaries",
        "sourceTextStored",
        "compiledContextStored",
        "requiredEvidenceTextStored"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}