# 24K Labs Financial Ratios Calculator

> 24K Labs Financial Ratios Calculator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Computes liquidity, leverage, profitability, and efficiency ratios from supplied financial statement line items

## Facts

- Endpoint: POST https://api.24klabs.ai/api/financial-ratios
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-financial-ratios-calculator-6aef9957
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y88TSHJ7CeHGKJwpCAf_i

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 24k-labs-financial-ratios-calculator-6aef9957 -d '<json body>'
```

Example prompt: Calculate the full set of financial ratios for this company: current assets $500K, current liabilities $200K, quick assets $300K, total debt $800K, total equity $1M, net income $150K, gross profit $400K, revenue $1M, total assets $2M, and EBIT $200K with interest expense $40K.

## When to prefer this

Choose this endpoint when you need instant, structured computation of multiple standard financial ratios from raw statement inputs without building your own formula layer. It is ideal for financial agents, investment screening tools, credit underwriting bots, or reporting pipelines that already have parsed balance sheet and income statement figures and need normalized ratio outputs in a single call. Prefer it over manual computation or general-purpose code execution when auditability and consistent ratio definitions (WCAG-style standardization) matter.

## Known failure modes

- Missing required line items (e.g. no current liabilities) cause division errors or null ratio values
- Division by zero if equity, revenue, or assets are supplied as zero
- Mismatched units or scale (e.g. mixing thousands and millions) produce nonsensical ratio outputs
- Negative equity or revenue edge cases may yield ratios that need contextual interpretation
- Invalid or non-numeric input values return a 400-level error

## How this service works

Liquidity, leverage, profitability and efficiency ratios (current, quick, debt-to-equity, ROE, ROA, gross/net margin, interest coverage) from supplied statement line items.

## Output

Returns a structured object containing computed financial ratios including current ratio, quick ratio, debt-to-equity ratio, ROE, ROA, gross profit margin, net profit margin, and interest coverage ratio, each as a numeric value derived from the supplied statement line items.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cogs": {
   "type": "number"
  },
  "ebit": {
   "type": "number"
  },
  "revenue": {
   "type": "number"
  },
  "inventory": {
   "type": "number"
  },
  "net_income": {
   "type": "number"
  },
  "total_debt": {
   "type": "number"
  },
  "total_assets": {
   "type": "number"
  },
  "total_equity": {
   "type": "number"
  },
  "current_assets": {
   "type": "number"
  },
  "interest_expense": {
   "type": "number"
  },
  "current_liabilities": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "roe_pct": 15,
  "current_ratio": 2,
  "debt_to_equity": 0.67
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-financial-ratios-calculator-6aef9957/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)
