Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Generate cryptographically secure random passwords on demand. Bunny’s Password Generator lets you control length and character sets (uppercase, lowercase, numbers, and symbols) and returns the password alongside its charset size and entropy in bits so you can enforce your own strength policy.Use cases
- Generate temporary passwords for new user accounts
- Power password suggestion UI in signup flows
- Create secure API tokens and secret keys
- Automate credential generation in DevOps pipelines
Details
Length range: 4–256 characters. Entropy is calculated asfloor(log2(charset_size) * length). If no character sets are specified, lowercase and numbers are used by default. All randomness is sourced from the platform’s cryptographically secure RNG.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
length | integer | No | Password length (default: 16, range: 4–256) |
uppercase | boolean | No | Include uppercase letters (default: true) |
lowercase | boolean | No | Include lowercase letters (default: true) |
numbers | boolean | No | Include digits (default: true) |
symbols | boolean | No | Include special characters (default: false) |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
password | string | The generated password |
length | integer | Actual length of the password |
charset_size | integer | Number of unique characters in the pool used for generation |
entropy_bits | integer | Password entropy in bits: floor(log2(charset_size) * length) |

