# Generate Password

> Generate Password is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-20).

Generates a cryptographically strong random password of a specified length with optional symbol characters, plus its entropy score.

## Facts

- Endpoint: GET https://api.gadgethumans.com/password?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/generate-password-3ef4edc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kX3MwV75UrR1Pjy3cLAlw

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 generate-password-3ef4edc8
```

Example prompt: Can you generate a strong random password that's 24 characters long and includes symbols?

## When to prefer this

Use this endpoint when you need an instant, server-side random password with a known entropy value and no storage risk. Prefer this over client-side generators when you want an auditable, stateless API call with configurable length and character classes. Ideal for automation pipelines, account provisioning scripts, or any agent workflow that needs to programmatically mint new credentials on the fly.

## Known failure modes

- Missing required 'length' parameter returns an error
- Length value of zero or negative integer may cause a validation error
- Extremely large length values may time out or be rejected
- Non-integer length type returns a schema validation error

## How this service works

Generate a strong random password with a chosen length and character classes, plus its entropy. Pure CPU, instant, and nothing is stored.

## Output

Returns a randomly generated password string of the requested length using the selected character classes (uppercase, lowercase, digits, and optionally symbols), along with the calculated entropy in bits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "length"
     ],
     "properties": {
      "length": {
       "type": "integer",
       "description": "Length (default 20)"
      },
      "symbols": {
       "type": "boolean",
       "description": "Include symbols"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/generate-password-3ef4edc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
