{"uid":"cap_yv4dSrpnTzDEgp4UTpCuS","slug":"nanoid-generator-for-agents-87a84c5a","name":"NanoID Generator for Agents","description":"NanoID-style public IDs. Generate short URL-safe IDs for jobs, drafts, or idempotency keys without installing nanoid. Returns a random URL-safe id (size 4–64, default 21). $0.001 USDC per successful call via x402 on Base—first-party JSON from Delx (fresh each call; not a deterministic transform), no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/nanoid","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","maximum":64,"minimum":4,"description":"Optional NanoID length (4–64). Default 21 when omitted."}}},"responseSchema":{"type":"json","example":{"id":"V1StGXR8_Z5jdHi6B-myT","size":21,"schema":"delx/nanoid/v1"}},"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_g6sJkGIEzQuxnmfeSzlgv","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 a random URL-safe NanoID string of configurable length (4–64 chars, default 21) for use as job IDs, draft keys, or idempotency tokens","exampleAgentPrompt":"Generate a 21-character URL-safe NanoID I can use as the idempotency key for this job submission.","exampleUseCases":[{"title":"Idempotency key for API calls","prompt":"I need a fresh 21-character NanoID to use as the idempotency key before I submit this payment request — can you grab one?"},{"title":"Short ID for a new draft document","prompt":"Generate a 12-character URL-safe NanoID I can use as the public ID for a new draft I'm creating in the database."},{"title":"Unique job ID for a background task","prompt":"I'm queuing a background processing job and need a random 16-character URL-safe ID to track it — generate one for me."}],"resultDescription":"Returns a single randomly generated URL-safe NanoID string of the requested length (default 21 characters if size not specified), formatted as JSON. Each call produces a fresh, non-deterministic result.","failureModes":["Size out of range (below 4 or above 64) returns a structured validation error and no charge is applied","Network timeout or service unavailability returns an HTTP error with no ID generated","Malformed request body returns a validation error without billing"],"whenToPreferThis":"Choose this endpoint when your agent needs a URL-safe random ID at runtime without installing or bundling the nanoid library, especially in serverless or constrained environments. It is ideal for generating idempotency keys, job IDs, or draft identifiers on the fly. Prefer it over UUID generators when you want shorter, URL-safe strings with configurable length.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:33.843Z","isFirstParty":false}