# ForgeMesh Matrix Operations API

> ForgeMesh Matrix Operations 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-13).

Performs exact linear algebra operations (determinant, inverse, transpose, eigenvalues, multiplication, addition) on matrices up to 50×50

## Facts

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

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-operations-api-c73b960c -d '<json body>'
```

Example prompt: Can you compute the eigenvalues of this 3x3 matrix: [[4, 1, 0], [2, 3, 1], [0, 1, 2]]?

## When to prefer this

Choose this endpoint when you need exact, reliable linear algebra results for matrices up to 50×50 via a simple REST call, without setting up a local math library. Ideal for agents needing on-demand matrix computation without a Python/numpy runtime, or when integrating numerical math into a workflow that doesn't have a math engine built in.

## Known failure modes

- Non-square matrix passed to determinant or inverse operation — returns error
- matrix_b missing when operation is multiply or add
- Matrix dimensions incompatible for multiplication (columns of A ≠ rows of B)
- Matrix is singular (non-invertible) when inverse is requested
- Matrix dimensions exceed 50×50 limit
- Invalid operation string not matching allowed enum values

## How this service works

Matrix math API: determinant, inverse, transpose, eigenvalues, multiplication, and addition for matrices up to 50x50 — exact linear algebra.

## Output

Returns the result of the requested matrix operation: a scalar (determinant), a 2D array (inverse, transpose, product, or sum), or an array of eigenvalues, computed exactly for matrices up to 50×50.

## 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-operations-api-c73b960c/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)
