{"uid":"cap_0hzZ3m1cjI3ZPH2b4ETfk","slug":"x402-utils-random-id-generator-238f4e53","name":"x402 Utils – Random ID Generator","description":"Generate random IDs from a cryptographic source: UUID v4, UUID v7 (time ordered), ULID or nanoid, up to 100 at a time.","url":"https://utils.kagurazaka.dev/v1/id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"type":{"enum":["uuid4","uuid7","ulid","nanoid"],"type":"string","description":"kind of ID (default uuid4)"},"count":{"type":"integer","description":"how many (1-100, default 1)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ids":{},"type":{}}}}}}},"responseSchema":{"type":"json","example":{"ids":["019a1b2c-3d4e-7f00-8a1b-2c3d4e5f6a7b"],"type":"uuid7"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H_clVQyFFEpd3VdaismM6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates cryptographically random IDs in UUID v4, UUID v7 (time-ordered), ULID, or nanoid format, returning up to 100 at a time.","exampleAgentPrompt":"Generate 10 time-ordered UUID v7s so I can use them as database primary keys for new records I'm about to insert.","exampleUseCases":[{"title":"Batch primary keys for database inserts","prompt":"I need 50 UUID v4s to use as primary keys for a batch of new customer records I'm inserting into Postgres — can you generate them now?"},{"title":"Time-ordered IDs for event logging","prompt":"Generate 20 ULID identifiers for me so I can assign them to log events in time-sortable order."},{"title":"Short random IDs for shareable links","prompt":"Create 5 nanoid identifiers I can use as short, URL-safe identifiers for shareable invite links."}],"resultDescription":"A JSON object containing a 'type' field (the ID format used) and an 'ids' array with 1–100 randomly generated identifiers of the requested format.","failureModes":["Invalid 'type' value (not one of uuid4, uuid7, ulid, nanoid) returns an error","count outside 1–100 range returns a validation error","Missing required parameters may return a 400-level error","Payment failure (x402 protocol) blocks the request"],"whenToPreferThis":"Use this endpoint when you need cryptographically secure random IDs in a standard format (UUID4, UUID7, ULID, or nanoid) and want to generate up to 100 at a time in a single call without running local code. Prefer UUID v7 or ULID when time-ordering matters for database indexing; prefer nanoid for short, URL-safe identifiers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:08:40.844Z","isFirstParty":false,"canonicalSlug":"x402-utils-random-id-generator-238f4e53"}