# Loan Repayment Calculator

> Loan Repayment Calculator is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Computes monthly repayment amount, total interest paid, and total loan cost given principal, annual interest rate, and term in years.

## Facts

- Endpoint: GET https://api.gadgethumans.com/loan?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loan-repayment-calculator-e6e1ff6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X5fh4AtU3qzNbLRp5gsEN

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 loan-repayment-calculator-e6e1ff6e
```

Example prompt: How much would my monthly payment be on a $25,000 personal loan at 7.5% annual interest over 5 years, and what's the total interest I'd end up paying?

## When to prefer this

Use this endpoint when you need a fast, serverless computation of standard loan repayment figures with no authentication overhead. Ideal for comparing multiple loan offers in rapid succession or embedding loan cost estimates in financial workflows. Prefer this over building your own amortization logic when you need a quick, reliable, pay-per-call calculation without spinning up infrastructure.

## Known failure modes

- Missing required parameters (principal, rate, or years) return an error
- Non-numeric or negative values for principal, rate, or years may cause computation errors
- Zero interest rate edge case may or may not be handled gracefully
- Very large principal or very long terms may produce unexpected floating point results

## How this service works

Compute monthly repayment, total interest and total cost for a loan. Pure CPU, instant. Use to compare offers.

## Output

Returns a JSON object with the computed monthly repayment amount, total interest paid over the loan term, and the total cost of the loan (principal plus interest).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "principal",
      "rate",
      "years"
     ],
     "properties": {
      "rate": {
       "type": "number",
       "description": "Annual interest percent"
      },
      "years": {
       "type": "number",
       "description": "Term in years"
      },
      "principal": {
       "type": "number",
       "description": "Amount borrowed"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loan-repayment-calculator-e6e1ff6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
