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
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.
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.
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.
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 tailsWhy 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
| Model | Stable Diffusion 1.5 |
| Resolution | 512 × 512 |
| Steps | 50 |
| Sampler | euler_a |
| CFG Scale | 7.5 |
| Seed Derivation | SHA-256(RNG || PI_ID || timestamp) |
| Commitment | SHA-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 512x512The script will regenerate the exact same image and outcome, confirming the fairness of the flip.