# 24K Labs Mock Data Generator

> 24K Labs Mock Data Generator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Generates deterministic, reproducible fake test data rows (names, emails, phones, addresses, dates, ints, bools) from a field-type spec and seed, in JSON, CSV, or NDJSON format.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/mock-data-generate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-mock-data-generator-1da071d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BkRB9MPPFaahQssCVKifE

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 24k-labs-mock-data-generator-1da071d3 -d '<json body>'
```

Example prompt: Generate 50 fake user records with fields for first_name (name), email (email), phone (phone), signup_date (date), and is_active (bool), using seed 42, and give me the output as CSV.

## When to prefer this

Choose this endpoint when you need reproducible, deterministic fake data for testing — especially when consistent fixtures across test runs matter (same seed = same output). Prefer it over random data generators when you need stable snapshots, or over manual fixture files when you want to vary field types or row counts programmatically. Also ideal when you need multiple output formats (JSON, CSV, NDJSON) from the same spec without format-conversion steps.

## Known failure modes

- Invalid or unrecognized field type in spec — returns error indicating unsupported type
- Missing required fields (spec or seed) — returns 400-level validation error
- Malformed field specification schema — parsing error returned
- Requesting an unsupported output format — error indicating valid options are JSON, CSV, or NDJSON
- Payment not attached or insufficient — 402 Payment Required

## How this service works

Generate deterministic fake test rows from a field->type spec plus a seed (names, emails, phones, addresses, dates, ints, bools). Output JSON, CSV, or NDJSON. Same seed always yields the same data -- reproducible fixtures.

## Output

Returns a structured mock dataset in the requested format (JSON array, CSV, or NDJSON) containing the specified number of rows. Each row has the requested fields populated with deterministic fake values (names, emails, phones, addresses, dates, integers, booleans) that are always identical for the same seed and spec.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "number"
  },
  "count": {
   "type": "number"
  },
  "fields": {
   "type": "object"
  },
  "format": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": 0
   }
  ],
  "rows": 3,
  "format": "json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-mock-data-generator-1da071d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
