{"uid":"cap_Pu3SucZIZfYdiD5XH4pkQ","slug":"openverbs-random-string-generator-cba12702","name":"OpenVerbs Random String Generator","description":"Generate a random string of a given length from a named charset (alphanumeric, alpha, lower, upper, numeric, hex, base58) or a custom alphabet. Unbiased character selection.","url":"https://random.openverbs.com/v1/string","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["length"],"properties":{"length":{"type":"integer","maximum":4096,"minimum":1,"description":"Length of the string."},"charset":{"enum":["alphanumeric","alpha","lower","upper","numeric","hex","base58"],"type":"string","description":"Named charset (alphanumeric, alpha, lower, upper, numeric, hex, base58). Default alphanumeric."},"alphabet":{"type":"string","maxLength":256,"minLength":2,"description":"Custom alphabet; overrides charset. Duplicate characters are collapsed."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g8qYvX3qQ0mPkTEtSTcTd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a random string of a specified length using a named charset or custom alphabet, with unbiased character selection.","exampleAgentPrompt":"Generate a random alphanumeric string that's 32 characters long — I need it as a session token.","exampleUseCases":[{"title":"Session token for web app","prompt":"I need a random 64-character alphanumeric string to use as a session token for my web app."},{"title":"Base58 wallet address seed","prompt":"Can you generate a 34-character random string using the base58 charset? I'm building a wallet identifier."},{"title":"Custom alphabet coupon code","prompt":"Generate a random 8-character string using only the characters ACDEFGHJKLMNPQRTUVWXY34679 — I want something that avoids ambiguous characters for a coupon code."}],"resultDescription":"Returns a randomly generated string of the requested length, composed of characters drawn uniformly from the specified named charset (alphanumeric, alpha, lower, upper, numeric, hex, or base58) or a custom alphabet. The selection is unbiased, meaning each character position is independently and uniformly sampled.","failureModes":["Length out of range (must be 1–4096) returns a validation error","Custom alphabet shorter than 2 characters is rejected","Invalid charset enum value returns an error","Missing required 'length' field returns a validation error","Payment failure (x402) if USDC funds are insufficient"],"whenToPreferThis":"Choose this endpoint when you need a random string with a specific charset or custom alphabet and require unbiased character distribution. It is ideal for generating tokens, nonces, IDs, passwords, coupon codes, or any string-based random value where character set control matters. Prefer it over UUID generators when you need non-UUID formats, custom lengths, or specific character sets like base58 or hex.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:40.059Z","isFirstParty":false}