# RelayStation CSV/TSV/JSON/NDJSON Format Converter

> RelayStation CSV/TSV/JSON/NDJSON Format 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 between CSV, TSV, JSON, and NDJSON formats while preserving structure, billed per MB.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/csv/convert
- 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-csv-tsv-json-ndjson-format-converter-bdcfce09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1gkK0SDrc7FaEJTJzdgBY

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-csv-tsv-json-ndjson-format-converter-bdcfce09 -d '<json body>'
```

Example prompt: Take this CSV data and convert it to JSON format — keep all the columns and rows intact.

## When to prefer this

Choose this endpoint when you need a fast, cheap, serverless conversion between CSV, TSV, JSON, and NDJSON without standing up your own ETL tooling. Ideal for AI agents processing tabular data mid-pipeline where format compatibility is needed. At $0.0002/MB it is extremely cost-effective for small-to-medium files. Prefer this over general-purpose code execution when you want a deterministic, structure-preserving conversion with no risk of transformation bugs.

## Known failure modes

- Invalid or malformed input data (e.g. broken CSV quoting, invalid JSON) returns a parse error
- Unsupported format combination returns a 400 Bad Request
- Empty input body returns an error indicating no data to convert
- Oversized payload may be rejected or time out
- Payment failure via x402 protocol returns a 402 Payment Required

## How this service works

$0.0002/MB. Convert tabular data between CSV, TSV, JSON, and NDJSON — structure preserved. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the converted tabular data in the requested target format (CSV, TSV, JSON, or NDJSON) with structure and column ordering preserved. Billing is $0.0002 per MB of input data processed, with a 1¢ minimum per call; any unused portion of that minimum is auto-credited.

## 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",
     "properties": {
      "to": {
       "enum": [
        "csv",
        "tsv",
        "json",
        "ndjson"
       ],
       "type": "string",
       "description": "A tabular file format: csv, tsv, json (array of objects), or ndjson."
      },
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      },
      "from": {
       "enum": [
        "csv",
        "tsv",
        "json",
        "ndjson"
       ],
       "type": "string",
       "description": "A tabular file format: csv, tsv, json (array of objects), or ndjson."
      },
      "delimiter": {
       "type": "string",
       "maxLength": 4,
       "minLength": 1
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-csv-tsv-json-ndjson-format-converter-bdcfce09/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)
