# Compound Interest Projection API

> Compound Interest Projection API is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Calculates the future value of a lump sum investment plus recurring contributions over time, returning a balance growth curve, total contributed, and total interest earned.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/compound-interest-projection
- 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/compound-interest-projection-api-6c4ed3ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ncy2JFpDI7U8-Wo06Ld0E

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 compound-interest-projection-api-6c4ed3ee -d '<json body>'
```

Example prompt: Project how my $10,000 investment will grow over 20 years with a 7% annual rate compounded monthly, and assume I'm adding $200 every month on top of that.

## When to prefer this

Choose this endpoint when you need a structured, period-by-period breakdown of compound interest growth including recurring contributions — not just a single final value. Ideal for building savings dashboards, retirement projections, or financial planning tools where the balance curve over time is needed rather than a one-time calculation.

## Known failure modes

- Invalid or negative interest rate returns a validation error
- Non-positive compounding frequency causes a bad request response
- Missing required fields (principal, rate, years) result in a 400 error
- Extremely large numbers or infinite values may cause computation errors
- Unsupported compounding frequency string returns an error

## How this service works

Future value of a lump sum plus recurring contributions: principal, annual rate, compounding frequency, contribution and years; returns balance curve, total contributed, total interest.

## Output

Returns a time-series balance curve showing the projected account balance at each period, along with the total amount contributed (principal plus all recurring deposits) and total interest earned over the investment horizon.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "number"
  },
  "principal": {
   "type": "number"
  },
  "annual_rate": {
   "type": "number"
  },
  "contribution": {
   "type": "number"
  },
  "compounds_per_year": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "final_balance": 55172.5,
  "total_interest": 21172.5,
  "total_contributed": 34000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compound-interest-projection-api-6c4ed3ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
