# Relaystation Data Cast

> Relaystation Data Cast 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-15).

Coerces CSV/tabular column values into specified types (string, integer, number, boolean, date) to eliminate stringly-typed data problems

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/data/cast
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-data-cast-cc6f7d8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tw2kEeBBwRd0-EeU88WN1

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-cast-cc6f7d8b -d '<json body>'
```

Example prompt: Cast the 'age' column to integer, 'active' column to boolean, and 'created_at' column to date in this dataset — it's all stored as strings right now and I need proper types before loading it into our database.

## When to prefer this

Choose this endpoint when you have tabular or CSV data where columns are stored as strings but need to be proper typed values before downstream processing, database ingestion, or analytics. It is ideal for ETL pipelines, data cleaning steps, and any scenario where stringly-typed data causes type errors. At $0.0002/MB it is cost-effective for moderate data volumes. Prefer it over general LLM-based data extraction when you need deterministic type coercion rather than semantic understanding.

## Known failure modes

- Unparseable values for the target type (e.g. 'hello' cast to integer) may return nulls or errors per value
- Malformed input data structure returns a 4xx error
- Ambiguous date formats may be misinterpreted or rejected
- Very large payloads may incur unexpected costs above the minimum
- Missing or invalid type specification for a column returns a validation error

## How this service works

$0.0002/MB. Coerce column types (string, integer, number, boolean, date) — stop fighting stringly-typed data. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the input data records with specified columns coerced to their target types (string, integer, number, boolean, or date). Values that cannot be converted may be returned as null or accompanied by error indicators. Priced at $0.0002/MB of data processed, with a 1¢ minimum charge via x402 and remainder auto-credited.

## 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> }."
      },
      "columns": {
       "type": "array",
       "minItems": 1,
       "items": {
        "type": "object",
        "required": [
         "column",
         "to"
        ],
        "properties": {
         "column": {
          "type": "string"
         },
         "to": {
          "type": "string",
          "enum": [
           "string",
           "integer",
           "number",
           "boolean",
           "date"
          ]
         }
        }
       }
      },
      "from": {
       "type": "string",
       "enum": [
        "csv",
        "tsv",
        "json",
        "ndjson"
       ],
       "description": "A tabular file format: csv, tsv, json (array of objects), or ndjson."
      },
      "to": {
       "type": "string",
       "enum": [
        "csv",
        "tsv",
        "json",
        "ndjson"
       ],
       "description": "A tabular file format: csv, tsv, json (array of objects), or ndjson."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-data-cast-cc6f7d8b/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)
