# DataVault Random String Generator

> DataVault Random String Generator is a paid API for AI agents from zetdatavault.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates a cryptographically random string of a specified length and encoding on demand.

## Facts

- Endpoint: POST https://zetdatavault.vercel.app/api/random-string
- 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/datavault-random-string-generator-fd6446b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ee1jawYMnYjF9hQrbfy-A

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 datavault-random-string-generator-fd6446b8 -d '<json body>'
```

Example prompt: Generate a random string that is 32 characters long using hex encoding.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call random string generation without setting up your own RNG infrastructure. Useful for generating tokens, nonces, session IDs, or test data on demand with configurable length and encoding.

## Known failure modes

- Invalid encoding type specified — returns error or unexpected output
- Length parameter missing or zero — may return empty or error
- Payment not completed — 402 response blocking access
- Server-side generation failure — success: false with no data

## How this service works

54 endpoints spanning local tools, live data feeds, and AI-powered text processing. Pay-per-call with USDC on Base.

## Output

Returns a JSON object with a 'success' boolean and a 'data' object containing the generated random string of the requested length and encoding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "length": {
   "type": "integer"
  },
  "encoding": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datavault-random-string-generator-fd6446b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zetdatavault.vercel.app](https://www.zero.xyz/host/zetdatavault.vercel.app/llms.txt)
