Catalog/gen-short-hash-id

Generators

Seed to base62 id API

Derives a stable short base62 id of a chosen length from a seed using SHA-256 (uniform, collision-resistant). The value-add: deterministic short slugs/keys reproducible across languages. Answers 'How do I shorten a seed into a short id?', 'Give me a stable base62 key for this string.'.

Price$0.01per request
MethodPOST
Route/v1/generate/short-hash-id
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
short-idbase62hashdeterministicsha256slugidgenerate
API URLhttps://x402.hexl.dev/v1/generate/short-hash-id
Integration docs
Example request
{
  "seed": "user-42",
  "length": 8
}
Example response
{
  "id": "LdcDQ4Bb",
  "length": 8,
  "seed": "user-42",
  "alphabet": "base62",
  "deterministic": true,
  "interpretation": "Stable base62 id derived from SHA-256(seed); collision space 62^8."
}
Input schema
{
  "type": "object",
  "required": [
    "seed"
  ],
  "properties": {
    "seed": {
      "type": [
        "string",
        "number"
      ],
      "examples": [
        "user-42"
      ]
    },
    "length": {
      "type": "integer",
      "minimum": 1,
      "maximum": 64,
      "examples": [
        8
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}