# LogiGrain Financial Calculator API

> LogiGrain Financial Calculator API is a paid API for AI agents from logigrain.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes financial calculations (e.g. compound interest or loan results) given a principal, interest rate, and time period in years

## Facts

- Endpoint: GET https://logigrain.net/api/:var1
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logigrain-financial-calculator-api-21caeb2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ivfPSEbs6rFv5wq5JiFL3

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 logigrain-financial-calculator-api-21caeb2f
```

Example prompt: Can you calculate the compound interest result for a principal of $5000 at a rate of 6% over 10 years?

## When to prefer this

Use this endpoint when you need a quick, low-cost numeric financial computation involving a principal amount, an interest rate, and a duration in years — particularly in automated agent workflows where paying per-call via x402 is acceptable and no external financial data source is required.

## Known failure modes

- Missing required query parameter (principal, rate, or years) returns an error
- Non-numeric values passed for numeric parameters may cause computation failure
- Negative or zero values for principal or years may return unexpected results
- Service unavailability due to x402 payment gateway issues

## How this service works

LogiGrain API access

## Output

A numeric result representing the computed financial value (e.g. future value, total interest, or final amount) based on the provided principal, rate, and years.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "rate": {
       "type": "string",
       "description": "Numeric input parameter"
      },
      "years": {
       "type": "string",
       "description": "Numeric input parameter"
      },
      "principal": {
       "type": "string",
       "description": "Numeric input parameter"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logigrain-financial-calculator-api-21caeb2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logigrain.net](https://www.zero.xyz/host/logigrain.net/llms.txt)
