# x402.forgemesh.io Financial Math API

> x402.forgemesh.io Financial Math API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Calculates compound interest, monthly loan/mortgage payments with total interest, or ROI — exact and deterministic, with configurable compounding frequency.

## Facts

- Endpoint: POST https://x402.forgemesh.io/compound-interest
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-forgemesh-io-financial-math-api-8ca7d981
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p-t0YHP4-nrw4Orq5BmzN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-forgemesh-io-financial-math-api-8ca7d981 -d '<json body>'
```

Example prompt: Calculate the monthly loan payment and total interest for a $250,000 mortgage at 6.5% annual interest, compounded monthly over 30 years.

## When to prefer this

Choose this endpoint when you need precise, deterministic financial math — compound interest at any compounding frequency, loan or mortgage payment schedules, or ROI — without relying on a general-purpose LLM that may approximate. Ideal when the agent needs an authoritative numeric answer to embed in a report, recommendation, or follow-up calculation.

## Known failure modes

- Missing required fields for the chosen calculation type — e.g. no principal or rate provided
- Invalid or unrecognized calculation type string (must be compound_interest, loan_payment, or roi)
- Non-numeric strings passed for numeric fields like principal or annual_rate_percent
- Division by zero scenarios such as zero compounds_per_year
- Missing final or initial values when roi calculation is requested

## How this service works

Financial math API: compound interest with any compounding frequency, monthly loan/mortgage payment and total interest, or ROI. Exact, deterministic.

## Output

Returns an exact, deterministic numeric result for the requested financial calculation — compound interest earned, monthly loan payment amount plus total interest paid over the life of the loan, or ROI percentage — based on the provided principal, rate, compounding frequency, and term.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "final": {
   "type": "string"
  },
  "years": {
   "type": "string"
  },
  "initial": {
   "type": "string"
  },
  "principal": {
   "type": "string"
  },
  "calculation": {
   "type": "string",
   "description": "compound_interest | loan_payment | roi"
  },
  "compounds_per_year": {
   "type": "string"
  },
  "annual_rate_percent": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "total_interest": 382632.9,
  "monthly_payment": 1896.2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-forgemesh-io-financial-math-api-8ca7d981/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
