{"uid":"cap_DS_VS7nnPSERT37sf00Ny","slug":"swift-bot-labs-toolbox-random-value-generator-789c2a8e","name":"Swift Bot Labs Toolbox – Random Value Generator","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/random?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","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":[],"properties":{"kind":{"enum":["bytes","password","pin"],"type":"string"},"count":{"type":"string"},"length":{"type":"string","description":"bytes for kind=bytes, characters otherwise"},"symbols":{"type":"string"},"encoding":{"enum":["hex","base64","base64url","base58"],"type":"string"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"random","result":{"kind":"password","values":["q7#Vt!pZ2m@Lx9$wR4kE"],"entropyBits":130.1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GCA9V1yQpzY1mwAtoIOpl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates cryptographically random bytes, passwords, or PINs with configurable length, count, encoding, and symbol set, returning entropy bits alongside the values","exampleAgentPrompt":"Generate 3 strong random passwords, each 20 characters long with symbols included, using the Swift Bot Labs Toolbox random endpoint — pay per call in USDC.","exampleUseCases":[{"title":"Secure password generation for new accounts","prompt":"Can you generate 5 random passwords, each 24 characters long with symbols, for new user accounts I'm setting up?"},{"title":"Cryptographic nonce for signing","prompt":"I need a single 32-byte random value encoded in hex to use as a nonce for a cryptographic signing operation."},{"title":"PIN generation for two-factor auth","prompt":"Generate 10 random 6-digit PINs for sending to users as one-time codes for two-factor authentication."}],"resultDescription":"Returns a JSON object with ok=true, the tool name ('random'), and a result object containing the kind (bytes/password/pin), an array of generated values, and an entropyBits number indicating the strength of randomness.","failureModes":["Invalid 'kind' value (not bytes/password/pin) returns validation error","Invalid 'encoding' value (not hex/base64/base64url/base58) returns validation error","Non-numeric or out-of-range 'count' or 'length' may return error","Payment failure via x402 protocol returns 402 status before generation occurs"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call random value generation without account setup — ideal for agents that need secure passwords, PINs, or raw random bytes on demand with configurable encoding (hex, base64, base58) and no recurring subscription. Prefer over local generation when auditability or a trusted external entropy source matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:42.450Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-random-value-generator-789c2a8e"}