# Matrix Transpose

> Matrix Transpose is a paid API for AI agents from matrix.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Transposes an m×n matrix by swapping its rows and columns, returning the n×m result.

## Facts

- Endpoint: POST https://matrix.openverbs.com/v1/transpose
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/matrix-transpose-c13ed251
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-x2aYi5Ce3ogbp7qt6M0i

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 matrix-transpose-c13ed251 -d '<json body>'
```

Example prompt: Transpose this matrix for me: [[1, 2, 3], [4, 5, 6]] — swap its rows and columns so the result is a 3×2 matrix.

## When to prefer this

Use this endpoint when you need a fast, reliable cloud-based matrix transpose without running local math libraries. Ideal for agents that need to reshape numerical data on-the-fly, prepare matrices for multiplication, or convert between row-major and column-major representations without setting up a compute environment.

## Known failure modes

- Ragged matrix (rows of unequal length) returns a 400 error
- Empty matrix (zero rows or zero columns) returns a 400 error
- Non-numeric values in matrix cells may cause a validation error
- Malformed JSON body returns a 400 error
- Missing required 'matrix' field returns a 400 error

## How this service works

Transpose a matrix, swapping rows and columns. A ragged/empty matrix is a clean 400.

## Output

Returns the transposed n×m matrix as a 2D numeric array, with the original rows now as columns and original columns now as rows. A ragged or empty matrix input returns a 400 error with a descriptive message.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "matrix"
     ],
     "properties": {
      "matrix": {
       "type": "array",
       "items": {
        "type": "array",
        "items": {
         "type": "number"
        },
        "minItems": 1
       },
       "minItems": 1,
       "description": "Matrix (m×n)."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/matrix-transpose-c13ed251/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from matrix.openverbs.com](https://www.zero.xyz/host/matrix.openverbs.com/llms.txt)
