Generators
Deterministic nanoid API
Generates a reproducible nanoid from a seed, custom alphabet, and size using a seeded mulberry32 PRNG. The value-add: stable URL-safe IDs for snapshot tests (unlike random nanoid). Answers 'How do I make a deterministic nanoid?', 'Give me a reproducible short ID from a seed.'.
Price$0.01per request
MethodPOST
Route/v1/generate/nanoid
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
nanoiddeterministicseedidurl-safeprngalphabetgenerate
API URL
Integration docshttps://x402.hexl.dev/v1/generate/nanoidExample request
{
"seed": "abc",
"size": 10
}Example response
{
"id": "hqA5ue5nuY",
"size": 10,
"alphabetSize": 64,
"seed": "abc",
"deterministic": true,
"interpretation": "Reproducible nanoid; same seed+alphabet+size always yields hqA5ue5nuY."
}Input schema
{
"type": "object",
"required": [
"seed"
],
"properties": {
"seed": {
"type": [
"string",
"number"
],
"examples": [
"abc"
]
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 255,
"examples": [
10,
21
]
},
"alphabet": {
"type": "string",
"examples": [
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}