# ForgeMesh Secret Key Generator

> ForgeMesh Secret Key Generator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates cryptographically secure random secrets — alphanumeric strings, hex strings, or UUIDs — from OS-grade entropy with configurable length and batch size.

## Facts

- Endpoint: POST https://x402.forgemesh.io/secret-key-generator
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-secret-key-generator-040e91a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wO-nteeuhVZAazPCE-ZgZ

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 forgemesh-secret-key-generator-040e91a9 -d '<json body>'
```

Example prompt: Generate a batch of 10 cryptographically secure hex secrets, each 64 characters long, for use as signing keys in our deployment pipeline.

## When to prefer this

Prefer this endpoint when you need genuine OS-grade entropy rather than model-generated or pseudo-random strings — especially for signing keys, temporary credentials, session tokens, API keys, or database identifiers in automated pipelines. Choose over a UUID library when you want hex or alphanumeric secrets of configurable length, or when you need a stateless external source of randomness in a serverless or sandboxed environment.

## Known failure modes

- Invalid type value (not uuid/hex/alphanumeric) returns an error
- Length out of range (below 8 or above 128) returns a validation error
- Count exceeding 20 for UUID batch returns an error
- Malformed request body returns a 400-level error
- Payment not received or insufficient USDC balance returns a 402 error

## How this service works

Generates unambiguous alphanumeric secrets, hex strings, and UUIDs from OS-grade entropy in a single call, with length and batch size configurable. For provisioning temporary credentials, signing keys, and identifiers in automated pipelines that need real randomness rather than a plausible-looking string guessed by a model.

## Output

Returns one or more randomly generated secrets of the specified type (hex, alphanumeric, or UUID), at the requested length, derived from OS-grade entropy. For UUID batches, up to 20 UUIDs are returned in a single response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "type": "string",
   "description": "uuid | hex (default) | alphanumeric"
  },
  "count": {
   "type": "string",
   "description": "uuid batch size, max 20"
  },
  "length": {
   "type": "string",
   "description": "8-128, default 32"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "uuid",
  "tokens": [
   "4fa2f1f6-1e6f-4b1c-9c3a-2b8f0e6d4a11",
   "0b8e2c44-7a2e-4f6e-8e11-d2b9c1a0f9e2"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-secret-key-generator-040e91a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
