# RelayStation Data to XLSX Converter

> RelayStation Data to XLSX Converter is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts tabular data into styled, multi-sheet Excel (.xlsx) files with formula-injection protection

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/data/to-xlsx
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-data-to-xlsx-converter-892dbed7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6u8RvpXM5rB5Geii6tMNR

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 relaystation-data-to-xlsx-converter-892dbed7 -d '<json body>'
```

Example prompt: Take this JSON table of monthly sales figures and export it as a styled Excel file with a sheet named 'Sales Summary' — make sure it's safe against formula injection.

## When to prefer this

Choose this endpoint when you need to programmatically generate real Excel (.xlsx) files — not CSV — with styling, multiple sheets, and formula-injection safety. Prefer it over generic CSV export when recipients expect formatted spreadsheets, or when user-submitted data must be sanitized before writing to Excel cells. The per-MB pricing ($0.0002/MB) with a 1¢ minimum makes it cost-effective for small to medium datasets.

## Known failure modes

- Malformed or empty input table data returns a 400 error
- Oversized payload exceeding MB limits may be rejected or incur higher charges
- Invalid sheet names or column configurations may cause a processing error
- Insufficient x402 payment (below 1¢ minimum) results in payment rejection
- Network timeout on very large datasets

## How this service works

$0.0002/MB. Write tables to styled, multi-sheet Excel (.xlsx) — formula-injection-safe. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a binary .xlsx file (Excel workbook) containing the submitted tabular data formatted across one or more styled sheets, with cell values sanitized to prevent formula injection attacks. The file is ready to open in Excel, Google Sheets, or any compatible spreadsheet application.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      },
      "from": {
       "type": "string",
       "enum": [
        "csv",
        "tsv",
        "json",
        "ndjson"
       ]
      },
      "sheetName": {
       "type": "string",
       "minLength": 1,
       "maxLength": 31
      },
      "sheets": {
       "type": "array",
       "minItems": 1,
       "maxItems": 20,
       "description": "Multi-sheet workbook; each entry is its own tabular source.",
       "items": {
        "type": "object",
        "required": [
         "name",
         "file"
        ],
        "properties": {
         "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 31
         },
         "file": {
          "type": "object",
          "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
         },
         "from": {
          "type": "string",
          "enum": [
           "csv",
           "tsv",
           "json",
           "ndjson"
          ]
         }
        }
       }
      },
      "style": {
       "type": "object",
       "description": "Optional workbook styling.",
       "properties": {
        "headerBold": {
         "type": "boolean"
        },
        "freezeHeader": {
         "type": "boolean"
        },
        "columnWidths": {
         "oneOf": [
          {
           "type": "array",
           "items": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1000
           }
          },
          {
           "type": "object",
           "additionalProperties": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1000
           }
          }
         ],
         "description": "Per-column widths by index (array) or by col
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-data-to-xlsx-converter-892dbed7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
