diff --git a/api/generate-key.js b/api/generate-key.js new file mode 100644 index 0000000..e30044d --- /dev/null +++ b/api/generate-key.js @@ -0,0 +1,264 @@ +/** + * 🔑 Sovereign AIRA API Key Generation Gateway (Vercel Serverless - ES Module) + * Generates verified API keys for Free & Pro Aira Models + * Engineered for Aira Group of Technology (airaaigroup.in) + * Founder & CEO: Er. Adam Eehan + */ + +import crypto from "crypto"; + +const SECRET = process.env.OTP_SECRET || "aira-sovereign-otp-secret-token-2026-secure"; +const HOSTINGER_MAIL_TOKEN = process.env.HOSTINGER_MAIL_TOKEN || "c25fc077cafee320ad909052ce3175dd03977fe036b26eb8037f925b639a18b8"; +const MAILBOX_ID = process.env.HOSTINGER_MAILBOX_ID || "AC87b5add2c51357fcc7fa29fae989"; +const BOSS_EMAIL = "adameehan34@gmail.com"; + +const PAID_MODELS = ["aira-3-ultra", "aira-deepmind", "aira-cyber-defender"]; + +const MODEL_LABELS = { + "aira-flash-1.5": "Aira Flash 1.5 (Free Community)", + "aira-flash-lite": "Aira Flash Lite (Free High-Speed)", + "aira-3-ultra": "Aira 3 Ultra (Flagship Engine v3.6 - Pro)", + "aira-deepmind": "AiraDeepMind (550B MoE Swarm - Pro)", + "aira-cyber-defender": "Aira Cyber Defender AI (7B Core - Pro)" +}; + +function getKeyDeliveryHtml(name, apiKey, model, expiryDate, tier) { + const modelName = MODEL_LABELS[model] || model; + return ` + +
+ + +| + + | +
| + + | +
+ Deploy sovereign neural intelligence directly into your production pipelines. High-speed inference streaming, zero third-party telemetry, and instant key issuance with verified OTP security. +
+curl https://airaai-8ibs.onrender.com/v1/chat/completions \
+ -H "Authorization: Bearer airaaixak..." \
+ -H "Content-Type: application/json" \
+ -d '{
+ "model": "aira-flash-1.5",
+ "messages": [
+ {"role": "user", "content": "Hello Aira!"}
+ ]
+ }'
+ Instant key generation with cryptographic OTP verification
+