# PrimeAPI Matrix Math Operations

> PrimeAPI Matrix Math Operations is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.158326/call, status unknown (last checked 2026-10-22).

Performs matrix computations and linear algebra operations via a pay-per-call API using USDC on Base

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/math/matrix?utm_source=zero.xyz
- Price: $0.158326/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-matrix-math-operations-344d2127
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q3W57rd1lvH1TOkz8piin

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 primeapi-matrix-math-operations-344d2127 -d '<json body>'
```

Example prompt: Can you multiply these two matrices for me: [[1,2],[3,4]] and [[5,6],[7,8]]? I need the resulting matrix.

## When to prefer this

Use this endpoint when an AI agent needs to perform matrix or linear algebra computations without managing a local math library, and is operating in a pay-per-call USDC micro-payment context on Base. Suitable for one-off matrix operations in agentic workflows where spinning up a compute environment is impractical.

## Known failure modes

- Invalid or malformed matrix input returns an error response
- Non-square matrix passed to operations requiring square matrices (e.g. inversion)
- Singular matrix passed to inversion results in an error
- Ambiguous query string that cannot be parsed as a matrix operation
- Payment failure or insufficient USDC balance blocks the call

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a JSON object containing the result of the requested matrix operation, such as a resulting matrix array, scalar value (e.g. determinant), or decomposed components depending on the query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-matrix-math-operations-344d2127/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
