CLOUDFLARE WORKER
Primary API gateway handling all public endpoints. Built on Cloudflare Workers for edge deployment.
brightbet.tech/api/*
VIEW ENDPOINTS →
Real-time predictive markets & AI-powered analysis
Primary API gateway handling all public endpoints. Built on Cloudflare Workers for edge deployment.
brightbet.tech/api/*
VIEW ENDPOINTS →
Python FastAPI backend for data aggregation. Scrapes Polymarket, Finnhub, Wikipedia, and computes confidence scores.
localhost:8000/api/*
VIEW ARCHITECTURE →
Stripe-based payment gateway implementing the x402 protocol for micropayments and paywalled content.
/api/rickroll (paywalled)
VIEW PROTOCOL →
Cloudflare Workers AI for cinematic image builds and meme synthesis using Stable Diffusion XL.
/api/generate-image
VIEW AI ENDPOINTS →
curl -X POST https://brightbet.tech/api/get-ai-opinion \
-H "Content-Type: application/json" \
-d '{"question": "Will Tesla hit $500 by 2026?"}'
{
"confidence_score": 72,
"sentiment": "bullish",
"reasoning": "Based on current trajectory...",
"sources": { ... }
}
curl -X POST https://brightbet.tech/api/generate-image \
-H "Content-Type: application/json" \
-d '{"question": "Visualize a neon planet surrounded by auroras", "sentiment": "neutral", "confidence": 64}'
{
"type": "image",
"prompt": "A glowing planet floating in deep space...",
"sentiment": "neutral",
"confidence": 64,
"imageData": "data:image/png;base64,...."
}
The solar-system metaphor maps each planet to a unique data provider:
| METHOD | ENDPOINT | DESCRIPTION |
|---|---|---|
| GET | /api/health | Health check with status metadata. |
| POST | /api/get-ai-opinion | Multi-source AI market reasoning. |
| POST | /api/visualize | Build planet visualization payload (GET with ?question= supported). |
| GET | /api/planet-categories | Retrieve UI category metadata. |
| POST | /api/generate-image | AI visualization image (alias: /api/generate-video). |
| POST | /api/generate-meme | Premium AI meme generator after x402 payment. |
| POST | /api/candles | OHLC + prediction series for charting. |