Choose a context budget before an agent run
Choose a context budget before an agent run. Compare five extractive compilation budgets with token estimates and source coverage. Price basis: five compiler runs, the comparison table and the receipt digest. Uses caller-supplied documents; no answer generation, factual verification or guaranteed token-billing savings.
12000 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-13
updated
Provider
www.mahastrategies.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "12000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"budgetMode": "guaranteed",
"clientRequestId": "req_budget_ladder_001",
"documents": [
{
"id": "release",
"text": "The release may proceed only after the security owner approves the evidence packet.\n\nThe rollback begins when the error rate exceeds two percent for five minutes.\n\nRoutine status notes describe staffing and meeting schedules.",
"title": "Release rule"
},
{
"id": "operations",
"text": "The operator must preserve the request digest and approval identity.\n\nRoutine status notes describe staffing and meeting schedules.",
"title": "Operations note"
}
],
"provenance": "compact",
"scoring": "bm25",
"task": "Preserve the release authority and rollback condition.",
"tokenBudgets": [
64,
96,
128,
192,
256
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"boundaries": [
"Five deterministic compilations of the same supplied documents; …"
],
"clientRequestId": "req_budget_ladder_001",
"comparison": [
{
"compiledEstimatedTokens": 29,
"includedPassageIds": [
"operations:1"
],
"outputHash": "sha256:dc2e058d484882af8b60dd1150a0d7de0d77fb2d6e919d913c35ea2e8…",
"sourceCoveragePercent": 50,
"tokenBudget": 64,
"tokensSaved": 28
}
],
"compiledContextStored": false,
"economicBasis": {
"componentOfferId": "context-compression",
"componentPriceBaseUnits": "1000",
"componentRuns": 5,
"priceBaseUnits": "5000"
},
"inputDigest": "sha256:971bb547c8bbfb88e93cc4cd3644b476a589a60341671fe06aeee0242…",
"offerId": "context-budget-ladder",
"receiptDigest": "sha256:69cde9faca3b195bc8a1c465ce0b5309aec342e1e276bbba8b8965da4…",
"runs": [
{
"contextPack": {
"clientRequestId": "req_budget_ladder_001",
"context": "# Context Pack\n\nTask: Preserve the release authority and rollbac…",
"includedPassages": [
{
"passageHash": "sha256:60013bc3e8109806d697d7859823725653961b89f1460e2bcc9a91bc4…",
"passageId": "operations:1",
"sourceId": "operations",
"text": "The operator must preserve the request digest and approval ident…"
}
],
"inputHash": "sha256:fcf75e8713e8e458f42d7b46c9831d1407544e49df606708ba5ec2a58…",
"metrics": {
"compiledBytes": 163,
"compiledEstimatedTokens": 29,
"duplicatePassagesRemoved": 1,
"estimatedReductionPercent": 49.1,
"originalBytes": 358,
"originalEstimatedTokens": 57,
"sourceCount": 2,
"sourceCoveragePercent": 50,
"tokensSaved": 28
},
"outputHash": "sha256:dc2e058d484882af8b60dd1150a0d7de0d77fb2d6e919d913c35ea2e8…",
"packId": "ctxpack_85a631811b7f99e1e091b9f365aa6735",
"retentionBoundaries": {
"claimVerificationPerformed": false,
"completenessGuaranteed": false,
"evidenceRetention": "best_effort",
"hallucinationPreventionGuaranteed": false,
"selectionType": "extractive",
"tokenCountType": "model_neutral_estimate"
},
"sources": [
{
"includedEstimatedTokens": 0,
"includedPassageIds": [],
"originalEstimatedTokens": 37,
"passageCount": 3,
"sourceHash": "sha256:e100472342b640276bf489453adba008e167f4039a5e8202528403f3a…",
"sourceId": "release",
"title": "Release rule"
}
],
"task": "Preserve the release authority and rollback condition.",
"tokenBudget": 64,
"version": "0.1.0",
"warningCodes": [
"model_neutral_token_estimates",
"extractive_selection_not_verification"
],
"warnings": [
"Token counts are model-neutral estimates, not provider tokenizer…"
]
},
"tokenBudget": 64
}
],
"sourceTextStored": false,
"version": "0.1"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"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"
},
"scoring": {
"enum": [
"bm25",
"keyword"
],
"type": "string"
},
"task": {
"maxLength": 1200,
"minLength": 8,
"type": "string"
},
"tokenBudgets": {
"maxItems": 5,
"minItems": 1,
"type": "array"
}
},
"required": [
"clientRequestId",
"task",
"tokenBudgets",
"documents"
],
"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": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"boundaries": {
"type": "array"
},
"clientRequestId": {
"type": "string"
},
"comparison": {
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"compiledContextStored": {
"const": false,
"type": "boolean"
},
"economicBasis": {
"type": "object"
},
"inputDigest": {
"type": "string"
},
"offerId": {
"const": "context-budget-ladder",
"type": "string"
},
"receiptDigest": {
"type": "string"
},
"runs": {
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"sourceTextStored": {
"const": false,
"type": "boolean"
},
"version": {
"const": "0.1",
"type": "string"
}
},
"required": [
"version",
"offerId",
"clientRequestId",
"inputDigest",
"economicBasis",
"runs",
"comparison",
"boundaries",
"sourceTextStored",
"compiledContextStored",
"receiptDigest"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"declaration-integrity": {
"canonicalResource": "https://www.mahastrategies.com/api/v1/context/budget-ladder",
"declarationDigest": "sha256:3e193ea9512a73d4a383c37d0e4bdb4f19209c21ab1f808b856ded8550fea151",
"metadataVersion": "2026-08-10"
},
"maha-offer": {
"amount": "12000",
"asset": "USDC",
"assetDecimals": 6,
"canonicalResource": "https://www.mahastrategies.com/api/v1/context/budget-ladder",
"declarationInline": "compact",
"declarationUrl": "https://www.mahastrategies.com/api/discovery/x402-offers/context-budget-ladder",
"fullSourceTextStored": false,
"maxRequestBytes": 450000,
"method": "POST",
"network": "eip155:8453",
"offerId": "context-budget-ladder",
"payableInProduction": true,
"status": "available",
"verbatimExcerptsRetained": false
}
}Use it
curl
curl "https://www.mahastrategies.com/api/v1/context/budget-ladder" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://www.mahastrategies.com/api/v1/context/budget-ladder");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://www.mahastrategies.com/api/v1/context/budget-ladder")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1425.json, and this resource appears in /discovery/resources and /discovery/search.