{"uid":"cap_86qIbXIng0BvSXaX8kxAC","slug":"animica-qrng-quantum-random-number-generator-cc9b6f8c","name":"Animica QRNG — Quantum Random Number Generator","description":"Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.","url":"https://animica.dev/x402/qrng","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":{"bytes":{"type":"integer","description":"number of random bytes, 1..1024 (default 32); alias: n"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json","example":{"bytes":32,"health":{"passed":true,"min_entropy_per_byte":7.8106},"source":{"name":"software-fallback","model":"os.urandom CSPRNG","notes":"non-attested fallback for testing/degraded mode","vendor":"os","attested":false,"is_quantum":false,"device_path":null,"is_hardware":false},"product":"qrng","encoding":"hex","randomness":"6950d0ba85a3c0a03b193a50e998c6c6b16b53447d0e0ccb68e2a5722ac526ea","attestation":{"alg":"ed25519","backend":"software","attested":false,"digest_hex":"ae7686343e9459d0ddaabb3b80cbdb9d28599eec501ffefe4736b60355f8bf29","signature_hex":"cb219cdb424f395b664076ee57cae6a1245544b53306d35860de4a689ff410dc79d27ffbcfaa927268db47da2c155e06bf0eaf2d838083f81ad1450c1a7cb904","public_key_hex":"8a2228f4bde8f72964a7ff4aa759f24932ae1cccd9462ad94ca6e508d6b87a64"},"verification":{"rules":["attestation.digest_hex == sha3_256(bytes(randomness))","ed25519_verify(pubkey=attestation.public_key_hex, message=raw_bytes(attestation.digest_hex), signature=attestation.signature_hex)"],"method":"signed-digest-attestation","attested":false,"verifier":"randomness/beacon_api/static/verify.js in the animica repo (gitlab.com/Animica) — dependency-free Node module exporting sha3_256; pair with any ed25519 verifier","trust_model":"signed by the serving node, not client-recomputable: you trust the node's entropy source, then verify it signed exactly these bytes. Check health.passed and attestation.attested before relying on it."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001794","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.001794/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001794","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001794","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3TmAaoqmIMj5lTvKa7rco","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001794","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns cryptographically-attested quantum random bytes (up to 1024) as hex, with entropy health checks and a verifiable digital signature.","exampleAgentPrompt":"Can you fetch 64 bytes of quantum random data from Animica's QRNG endpoint — I need the hex output along with the entropy health report and the attestation signature so I can verify it independently?","exampleUseCases":[{"title":"Cryptographic key seed generation","prompt":"I need 128 bytes of quantum random data with a verifiable attestation signature to use as a seed for generating a cryptographic key — can you pull that from Animica's QRNG and give me the hex along with the public key and digest so I can verify it?"},{"title":"Fair lottery draw randomness","prompt":"I'm running a lottery draw and need provably fair randomness — can you get 32 quantum random bytes from Animica's QRNG with the full attestation so participants can independently verify the draw wasn't tampered with?"},{"title":"Entropy health audit for security system","prompt":"Can you fetch 256 bytes of quantum randomness from Animica's QRNG and specifically show me the entropy health report — I want to confirm the min entropy per byte passes and see the attestation details for our security audit logs?"}],"resultDescription":"A JSON object containing: a hex-encoded random byte string, the number of bytes generated, the randomness source identifier, a health report (pass/fail flag and minimum entropy per byte), a full attestation object (algorithm, public key hex, digest hex, signature hex, and whether it was attested), verification rules for independent validation, and payment metadata.","failureModes":["bytes parameter out of range (must be 1–1024): returns error","payment not provided or rejected via x402 protocol: HTTP 402 with payment instructions","service unavailable or quantum source unhealthy: entropy health check fails","invalid parameter type (non-integer bytes): returns validation error"],"whenToPreferThis":"Choose this endpoint when you need quantum-sourced randomness with cryptographic attestation and independent verifiability, rather than pseudo-random or software-based random number generators. Ideal for security-critical applications — key generation, fair draws, nonce creation — where you need a signed proof that the randomness came from a quantum source and passed minimum entropy thresholds. Prefer over standard RNG APIs when auditability and attestation are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:16.627Z","isFirstParty":false}