# Script Master Labs Matrix Solve — Linear Algebra Computation Endpoint

> Script Master Labs Matrix Solve — Linear Algebra Computation Endpoint is a paid API for AI agents from squeezeos-api.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Solves a linear system by computing the solution vector for a given matrix and vector pair, payable per call via USDC/RLUSD on XRPL, Base, or Xahau.

## Facts

- Endpoint: POST https://squeezeos-api.onrender.com/v1/compute/matrix-solve
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-matrix-solve-linear-algebra-computation-endpoint-ad446370
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CScu7L0UVhhPzYXft-F-D

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 script-master-labs-matrix-solve-linear-algebra-computation-endpoint-ad446370 -d '<json body>'
```

Example prompt: Solve the linear system where the matrix is [[2,1],[5,7]] and the vector is [11,13] — pay for it using USDC via the SqueezeOS matrix-solve endpoint.

## When to prefer this

Choose this endpoint when you need a pay-per-call, crypto-native linear system solver that integrates directly with XRPL, Base, or Xahau payment rails and you want micropayment settlement in USDC or RLUSD at $0.005 per call. Prefer it in agentic workflows where x402 payment protocol is already in use and you need lightweight, on-demand matrix computation without standing up your own numerical library.

## Known failure modes

- Matrix is singular or non-invertible — system has no unique solution, likely a 400 or computation error
- Mismatched dimensions between matrix and vector — schema validation failure
- Payment failure or insufficient USDC/RLUSD balance — 402 Payment Required response
- Malformed array input (non-numeric values, jagged arrays) — input validation error
- Service unavailability on Render.com free-tier hosting — 503 or timeout

## How this service works

SCRIPTMASTERLABS SqueezeOS: agent-native APIs, MCP discovery, verifiable x402 payments, market intelligence, and machine-commerce infrastructure. Truth First. Proof Always. Pay Only for Accepted Delivery.

## Output

Returns a JSON object containing the computed solution vector (x) satisfying the equation Ax = b, along with any additional metadata about the computation result. The exact response schema is open (additionalProperties: true), so extra diagnostic or state fields may also be present.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "matrix": {
   "type": "array"
  },
  "vector": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "solution": [
    2,
    1
   ],
   "dimension": 2,
   "residual_l2": 0
  },
  "status": "accepted_delivery"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-matrix-solve-linear-algebra-computation-endpoint-ad446370/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from squeezeos-api.onrender.com](https://www.zero.xyz/host/squeezeos-api.onrender.com/llms.txt)
