# Relaystation Mock Data Generator

> Relaystation Mock Data Generator 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-13).

Generates realistic fake rows of structured test data from a user-defined field→type schema, returning results as JSON, CSV, or NDJSON.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/generate/mock-data
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-mock-data-generator-7d406c02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_01tsZIO41JBf2Uv90lxHD

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-mock-data-generator-7d406c02 -d '<json body>'
```

Example prompt: Generate 50 rows of fake user records with fields: id (UUID), first_name (string), email (email), age (integer), signup_date (date) — give it to me as CSV.

## When to prefer this

Choose this endpoint when you need on-demand, schema-driven synthetic data generation with multiple output formats (JSON/CSV/NDJSON) at very low cost ($0.0002/call). It is ideal for seeding development databases, creating API test fixtures, or populating UIs with realistic placeholder records without managing a local data generation library.

## Known failure modes

- Invalid or unrecognized field type causes schema validation error
- Unsupported output format returns 400 bad request
- Very large row counts may time out or hit payload size limits
- Malformed schema JSON returns parse error
- Missing required schema field causes error response

## How this service works

$0.0002/call. Generate realistic fake rows from a field→type schema (JSON/CSV/NDJSON) — test data on demand. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a structured dataset of synthetic rows in the requested format (JSON array, CSV with headers, or newline-delimited JSON), where each row conforms to the user-specified field→type schema with realistic-looking generated values per field type.

## 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": {
      "schema": {
       "type": "object",
       "minProperties": 1,
       "description": "Field name → generator type.",
       "additionalProperties": {
        "type": "string",
        "enum": [
         "name",
         "firstName",
         "lastName",
         "email",
         "uuid",
         "int",
         "float",
         "bool",
         "date",
         "address",
         "city",
         "country",
         "phone",
         "company",
         "url",
         "word",
         "sentence",
         "paragraph"
        ]
       }
      },
      "count": {
       "type": "integer",
       "minimum": 1,
       "description": "Runtime-capped at cputools.generate.mock-data.max_rows."
      },
      "format": {
       "type": "string",
       "enum": [
        "json",
        "csv",
        "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-mock-data-generator-7d406c02/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)
