# 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 fake test data rows from a field-to-type schema and a seed value, returning reproducible fixtures in JSON, CSV, or NDJSON format.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/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-eda301fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rMfg7tzNwYbss5Ppt2aEJ

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

Example prompt: Generate 50 rows of fake user data with fields for full name, email, phone, address, and birthdate using seed 42, and return it as CSV.

## When to prefer this

Choose this endpoint when you need reproducible, seed-controlled fake data for automated tests, CI pipelines, or UI prototypes. It is ideal when determinism matters — the same seed must always yield the same rows. Prefer it over live data generators or LLM-based fake data when you need structured output in JSON, CSV, or NDJSON with typed fields like names, emails, phones, addresses, dates, ints, and bools.

## Known failure modes

- Invalid field type spec returns a 400 error
- Unrecognized output format returns a validation error
- Missing seed causes non-deterministic behavior or error
- Overly large row counts may time out or exceed limits
- Malformed field schema returns a parsing error

## 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 an array of fake data rows in the requested format (JSON, CSV, or NDJSON). Each row conforms to the field-to-type schema provided. Because a fixed seed is used, the same inputs always produce identical output, making fixtures fully reproducible across runs.

## 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-eda301fd/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)
