# ForgeMesh Matrix Math API

> ForgeMesh Matrix Math API 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-15).

Performs exact linear algebra operations (determinant, inverse, transpose, eigenvalues, multiply, add) on matrices up to 50x50

## Facts

- Endpoint: POST https://x402.forgemesh.io/math-matrix
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-matrix-math-api-666745b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N0VyNbPPUD1mltt8vL5a_

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-math-api-666745b9 -d '<json body>'
```

Example prompt: Can you compute the eigenvalues of this 3x3 matrix: [[4,1,0],[2,3,1],[0,1,2]]? Use exact computation, not approximation.

## When to prefer this

Choose this endpoint when you need exact, reliable linear algebra computation that LLMs cannot do accurately in-context — especially for determinants, inverses, or eigenvalues of non-trivial matrices. Ideal for engineering, scientific, or graphics agent workflows needing precision math on matrices up to 50x50.

## Known failure modes

- Matrix dimensions exceed 50x50 — operation rejected
- matrix_b missing for multiply/add operations
- Singular matrix has no inverse — error returned
- Invalid or non-numeric values in array input
- Unsupported operation string provided

## How this service works

Linear algebra API: determinant, inverse, transpose, eigenvalues, multiply, or add matrices up to 50x50 with structured array inputs — exact computation, instant. The linear algebra LLMs can't do reliably in-context. For engineering, graphics, and scientific agents.

## Output

Returns exact numerical results for the requested matrix operation — e.g. a scalar determinant, a 2D inverse matrix, a transposed array, a list of eigenvalues, or a resulting product/sum matrix.

## 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-math-api-666745b9/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)
