Generators ulid
Generatedgenerators_ulidValid by construction but non-reproducible — a fresh call returns new values.
Generate ULIDs — 26-char Crockford-base32 IDs that sort lexicographically by creation time. Use count for many. Non-reproducible unless seeded (tests only).
Parameters
countintegeroptionalHow many to generate.
seedintegeroptionalReproducible (insecure) output for testing.
Call it
curl -X POST https://api.snipget.ai/v1/generators/ulid \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"count":3}'FAQ
What makes a ULID different from a random ID?
A ULID has the time it was created built into the front, so if you sort a list of them they come out in the order they were made. You get uniqueness and a rough timestamp in one 26-character value.
Why not let the AI generate one?
The time-ordering and the exact 26-character Crockford base32 format are easy to get subtly wrong by hand. This builds them correctly every time from a real random source, so they sort properly and do not collide.
Will I get the same ULID twice?
No. Every call returns fresh values, so you cannot reproduce an earlier one. Save it when you create it. A seed option exists for tests only and is not secure.
Can I make several at once?
Yes. Set count to get many in a single call (up to 1000). They will be unique and still sort by creation time.
Is the timestamp exact?
It is the moment of creation down to the millisecond, embedded for sorting. It is meant for ordering, not as a precise audit clock, and you cannot edit it after the fact.