$0.0054
per call · USD Coin on Base
Pick k of your items with or without replacement, optionally weighted by integer weights (raffles, lotteries, sortition, A/B splits). One verified randomness draw, cumulative-weight search over a rejection-sampled uniform value, up to 10000 items. The exact rule and the raw draw ride along so you can recompute the winners.
Endpoint
POST https://animica.dev/x402/random/pick2
Calls / 30d
1
Unique payers / 30d
Aug 20
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://animica.dev/x402/random/pick", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"items": [
"a",
"b",
"c"
]
}),
});
const data = await res.json();curl -X POST \
"https://animica.dev/x402/random/pick" \
-H "Content-Type: application/json" \
-d '{"items":["a","b","c"]}' \
-H "X-PAYMENT: <signed x402 payment>"Payment details
0x5d17c40fd6b119dc6006c4ab3c20a917fcab2acdUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Games & Fun and the homepage with a featured placement.
More from Animica & similar services
Animica · Qrng Draw
animica.dev
Random bytes from the Animica node's randomness service with a signed digest attestation and an entropy-health report, 1..1024 bytes per draw. Current trust model, stated up front and in every response: the entropy source is a software CSPRNG (os.urandom) and the signer is a software key, so source.is_quantum=false and attestation.attested=false today; those fields flip truthfully if a hardware/quantum provider is ever connected. The free catalog entry carries the same live entropy block, so you can check the source before paying.
Animica · Chat Completions
animica.dev
Standard-tier chat/completions (OpenAI-compatible), served by Animica's network. Cheaper than priority, standard latency — priced at 3x settlement gas.
Animica · Chat Completions
animica.dev
OpenAI-compatible chat completions with capacity-gated admission, no per-IP rate limit, direct upstream routing and a 180 s timeout. Only sold while enough workers are live-serving; disabled by default.