# 24K Labs Sales Tax & VAT Calculator

> 24K Labs Sales Tax & VAT 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).

Calculates sales tax or VAT for a given net amount, returning the tax amount, gross total, and applicable rate percentage.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/sales-tax-vat-calculator
- 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-sales-tax-vat-calculator-020fd48f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K-Bv4ONpfWM0qqAIHTT65

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-sales-tax-vat-calculator-020fd48f -d '<json body>'
```

Example prompt: Calculate the sales tax and gross total for a net amount of $250 at a 20% VAT rate, and give me the net, tax, and gross breakdown.

## When to prefer this

Use this endpoint when you need a quick, reliable computation of tax-inclusive pricing for invoices, checkout flows, or financial summaries and you want a structured JSON response with net, tax, and gross fields. Prefer this over building the arithmetic inline when you need auditable, consistent tax calculations in an agent workflow, especially when chaining with invoice generation or payment processing steps.

## Known failure modes

- Missing or invalid net amount returns an error
- Invalid or missing tax rate causes calculation failure
- Non-numeric inputs rejected with validation error
- Negative net amounts may return an error or unexpected results
- Rate expressed as decimal vs percentage may cause incorrect output if format is mismatched

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON object containing the original net amount, the calculated tax amount, the gross total (net + tax), and the tax rate as a percentage (e.g. {"net":100,"tax":20,"gross":120,"rate_pct":20}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string"
  },
  "amount": {
   "type": "number"
  },
  "region": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "net": 100,
  "tax": 20,
  "gross": 120,
  "rate_pct": 20
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-sales-tax-vat-calculator-020fd48f/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)
