# x402 Password Generator API

> x402 Password Generator API is a paid API for AI agents from x402-crypto.vercel.app, paid per call via x402, $0.053979/call, status unknown (last checked 2026-09-15).

Generates cryptographically configurable random passwords with options for length, numbers, symbols, and uppercase letters, billed via x402 micropayments

## Facts

- Endpoint: POST https://x402-crypto.vercel.app/api/password-gen/%7Bpath%7D
- Price: $0.053979/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-password-generator-api-d6ef31ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zKXk0BSuGNlDuq4SPJQRN

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 x402-password-generator-api-d6ef31ca -d '<json body>'
```

Example prompt: Generate me a secure 24-character password that includes numbers, uppercase letters, and special symbols.

## When to prefer this

Choose this endpoint when you need a programmatically generated password on-demand within an agent workflow that already uses x402 micropayment infrastructure, especially when you want fine-grained control over character composition (numbers, symbols, uppercase) and length without storing credentials or managing an OAuth-based password service.

## Known failure modes

- Invalid or missing payment header results in 402 Payment Required response
- Non-integer or out-of-range length value may cause a 400 Bad Request
- Micropayment transaction failure or insufficient USDC balance blocks access
- Malformed request body returns validation error
- Upstream generation service timeout returns 5xx error

## How this service works

Paid cryptocurrency API endpoints via x402 micropayments

## Output

Returns a JSON object with a 'data' field containing the generated password payload, including the randomly generated password string matching the requested configuration (length, character set options).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "length": {
   "type": "integer",
   "description": "Password length (default 16)"
  },
  "numbers": {
   "type": "boolean",
   "description": "Include numbers"
  },
  "symbols": {
   "type": "boolean",
   "description": "Include special symbols"
  },
  "uppercase": {
   "type": "boolean",
   "description": "Include uppercase letters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response payload from the upstream API (structure varies by endpoint)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-password-generator-api-d6ef31ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-crypto.vercel.app](https://www.zero.xyz/host/x402-crypto.vercel.app/llms.txt)
