{
  "demo": true,
  "endpoint": "/api/v1/context/token-budget-planner",
  "protocol": "L402",
  "price_sats": 10,
  "preview": {
    "tool": "context_token_budget_planner",
    "total_input_tokens_est": 371,
    "available_input_budget": 123904,
    "within_budget": true,
    "overflow_tokens": 0,
    "segments": [
      {
        "index": 0,
        "name": "system_instructions",
        "priority": 10,
        "tokens_est": 16,
        "share_pct": 4.31,
        "attention_zone": "PRIMACY_ANCHOR"
      },
      {
        "index": 1,
        "name": "rag_retrieved_docs",
        "priority": 5,
        "tokens_est": 340,
        "share_pct": 91.64,
        "attention_zone": "MIDDLE_TROUGH"
      },
      {
        "index": 2,
        "name": "core_user_task",
        "priority": 10,
        "tokens_est": 15,
        "share_pct": 4.04,
        "attention_zone": "RECENCY_ANCHOR"
      }
    ],
    "lost_in_the_middle_warnings": [],
    "optimal_primacy_recency_order": [
      "system_instructions",
      "rag_retrieved_docs"
    ],
    "multi_model_cost_comparison": [
      {
        "model": "gemini-3.1-flash",
        "estimated_total_usd": 0.002513,
        "estimated_sats": 3
      },
      {
        "model": "gemini-3.1-pro",
        "estimated_total_usd": 0.020944,
        "estimated_sats": 22
      },
      {
        "model": "claude-4.5-sonnet",
        "estimated_total_usd": 0.062553,
        "estimated_sats": 66
      },
      {
        "model": "gpt-5",
        "estimated_total_usd": 0.041887,
        "estimated_sats": 44
      },
      {
        "model": "deepseek-r1",
        "estimated_total_usd": 0.009174,
        "estimated_sats": 10
      }
    ]
  },
  "notice": "Pay 10 sats via L402 (or call via /mcp/context-code-solver) to execute live deterministic computation.",
  "upsell": {
    "message": "Upgrade to production tier for unlimited high-concurrency execution and live edge model compute.",
    "supported_payment_rails": [
      "Bitcoin Lightning (L402 / LSAT)",
      "Solana (x402 / SPL tokens)",
      "Base Ethereum (MPP / USDC)",
      "Garlicoin (L1 0-Conf / BSC WGRLC)"
    ],
    "starting_price_sats": 10,
    "portal_checkout": "https://diogenesgateway.com#payments",
    "free_developer_tier": "15 100% free coding tools available at https://diogenesgateway.com#one-click-connectors"
  }
}