# ForgeMesh Matrix Calculator

> ForgeMesh Matrix Calculator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Computes determinant, inverse, transpose, eigenvalues, multiplication, or addition for matrices up to 50×50 with exact numeric output

## Facts

- Endpoint: POST https://x402.forgemesh.io/matrix-calculator
- 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/forgemesh-matrix-calculator-fc20fb43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QO2Q23dkfcUSH4FUEpAEK

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 forgemesh-matrix-calculator-fc20fb43 -d '<json body>'
```

Example prompt: Calculate the inverse of this 3×3 matrix: [[2,1,0],[1,3,1],[0,1,2]] — I need the exact numeric result, not an approximation.

## When to prefer this

Use this endpoint whenever a workflow needs mathematically exact matrix operations — especially in graphics pipelines, engineering simulations, or ML preprocessing — where relying on an LLM's internal arithmetic would introduce unacceptable numerical error. Prefer this over general-purpose code execution when you need a lightweight, single-call, pay-per-use solution without spinning up a compute environment.

## Known failure modes

- Matrix is singular (determinant = 0) when inverse is requested — returns error indicating non-invertible matrix
- Dimension mismatch between matrix_a and matrix_b for multiply or add operations
- Matrix exceeds 50×50 size limit — returns size error
- Invalid operation string not matching allowed enum values
- Non-numeric values in matrix arrays — schema validation error

## How this service works

Matrix math calculator for determinant, inverse, transpose, eigenvalues, and matrix multiplication or addition, on arrays up to 50x50. Built for graphics transforms, engineering simulations, and any workflow where a language model's mental arithmetic on matrices can't be trusted. Exact numeric output every call.

## Output

Exact numeric result of the requested matrix operation: a scalar for determinant, a 2D array for inverse/transpose/multiply/add, and a list of eigenvalues for eigenvalue decomposition — all computed precisely, no floating-point approximation from LLM reasoning.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "matrix_a": {
   "type": "array",
   "description": "2D array of numbers"
  },
  "matrix_b": {
   "type": "array",
   "description": "2D array (multiply/add)"
  },
  "operation": {
   "type": "string",
   "description": "determinant|inverse|transpose|eigenvalues|multiply|add"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": 10,
  "operation": "determinant"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-matrix-calculator-fc20fb43/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
