How FlipIQ Works

FlipIQ uses Stable Diffusion, an AI image generation model, to create verifiably fair coin flips. Every flip is cryptographically secured using a commit-reveal scheme, making it impossible for anyone (including us) to manipulate the outcome.

The Process

1

Seed Generation

When you start a flip, we generate a random seed using multiple entropy sources: cryptographic random bytes, your payment ID (for paid flips), and a server timestamp.

2

Commitment

Before generation begins, we store a cryptographic commitment (SHA-256 hash) of the seed. This is recorded before the AI runs, so we cannot change the seed after seeing the result.

3

AI Generation

Stable Diffusion 1.5 generates a coin image using the seed and fixed parameters. You can watch the progress in real-time as the image forms over 50 steps.

4

Outcome & Reveal

The outcome is determined by the seed using a simple rule: if the last bit is 0, it's heads; otherwise, it's tails. The seed is revealed after completion so you can verify.

Fairness Guarantee

Outcome Rule (Public)

(seed & 1) == 0 → heads, else tails

Why This Is Fair

  • • The seed is generated using cryptographic randomness before any generation happens
  • • The commitment is stored publicly before the AI runs, so we cannot change the seed
  • • The outcome rule is deterministic and public - anyone can verify
  • • You can rerun the generation yourself with our open rerun script

Technical Details

ModelStable Diffusion 1.5
Resolution512 × 512
Steps50
Samplereuler_a
CFG Scale7.5
Seed DerivationSHA-256(RNG || PI_ID || timestamp)
CommitmentSHA-256(seed)

Verify Any Flip

Every completed flip includes a rerun command. Download our verification script and run it with the seed from your flip:

python rerun.py --seed YOUR_SEED --model sd15 --steps 50 --sampler euler_a --cfg 7.5 --size 512x512

The script will regenerate the exact same image and outcome, confirming the fairness of the flip.

FAQ

Can you manipulate the outcome?
No. The seed commitment is stored before generation begins. We cannot change the seed after seeing what image the AI would produce. The outcome rule is deterministic and public.
Why use AI for a coin flip?
AI image generation is deterministic - the same seed always produces the same image. This makes it perfect for verifiable randomness. Plus, it's fun to watch the coin materialize!
What if I get a refund?
If the generation fails or times out, you'll automatically receive a refund or credit restoration. We only charge for successful flips.
Is my flip history private?
Yes. Your flips are private by default. You can choose to share individual flips to the community feed, but this is opt-in only.