# DataVault Random String Generator

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

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

## Facts

- Endpoint: POST https://zetavault.vercel.app/api/random-string
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datavault-random-string-generator-9b9df07a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y3v3orWh6k8X3PfFNyZ62

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

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

## When to prefer this

Use this endpoint when you need a random string of a specific length and encoding format, such as for generating tokens, nonces, session IDs, or test data, and are already using the DataVault pay-per-call USDC ecosystem on Base.

## Known failure modes

- Invalid or missing 'length' parameter returns error
- Unsupported 'encoding' value returns error
- Zero or negative length values may return error
- Server-side failure returns success: false

## 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 containing a 'data' field with the generated random string and a 'success' boolean indicating whether the generation was successful.

## 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-9b9df07a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zetavault.vercel.app](https://www.zero.xyz/host/zetavault.vercel.app/llms.txt)
