{"slug": "remini-hd-without-rate-limit", "title": "Remini HD Without Rate Limit", "summary": "A developer reverse-engineered the Remini HD API to create an unofficial Node.js client that bypasses rate limits. The script generates device IDs, authenticates with the Remini servers, and processes images through the enhance feature without official API restrictions.", "body_md": "| const crypto = require('crypto') | |\n| const fs = require('fs') | |\n| const path = require('path') | |\n| const sharp = require('sharp') | |\n| const API = 'https://a.android.api.remini.ai/v1/mobile' | |\n| const ORACLE = 'https://api.remini.ai/v1/mobile/oracle' | |\n| function genId() { | |\n| const a = crypto.randomUUID().replace(/-/g, '').slice(0, 16) | |\n| return { android_id: a, aaid: crypto.randomUUID(), backup_persistent_id: a + '_com.bigwinepot.nwdn.international', non_backup_persistent_id: crypto.randomUUID() } | |\n| } | |\n| let dev = genId() | |\n| let token = null | |\n| function bh(extra) { | |\n| return { | |\n| 'bsp-id': 'com.bigwinepot.nwdn.international.android', | |\n| 'build-number': '202514479', 'build-version': '3.7.1020', | |\n| 'country': 'US', 'device-manufacturer': 'Samsung', 'device-model': 'SM-G998B', | |\n| 'device-type': '6.8', 'language': 'en', 'locale': 'en_US', | |\n| 'os-version': '33', 'platform': 'Android', 'timezone': 'America/New_York', | |\n| 'android-id': dev.android_id, 'aaid': dev.aaid, | |\n| 'accept-encoding': 'gzip', 'user-agent': 'okhttp/4.12.0', | |\n| ...(extra || {}), | |\n| } | |\n| } | |\n| function ah(extra) { | |\n| const h = bh(extra) | |\n| if (token) h['identity-token'] = token | |\n| return h | |\n| } | |\n| async function auth() { | |\n| dev = genId() | |\n| const r = await fetch(ORACLE + '/setup', { | |\n| headers: bh({ | |\n| 'first-install-timestamp': Math.floor(Date.now()/1000)+'E9', | |\n| 'backup-persistent-id': dev.backup_persistent_id, | |\n| 'non-backup-persistent-id': dev.non_backup_persistent_id, | |\n| 'environment': 'Production', 'settings-response-version': 'v2', | |\n| 'is-app-running-in-background': 'false', 'is-old-user': 'true', | |\n| 'app-set-id': 'd44bd45a-a45d-4470-9674-7348a8e3fb71', | |\n| }) | |\n| }) | |\n| const d = await r.json() | |\n| token = d.settings.__identity__.token | |\n| if (!token) throw new Error('No token') | |\n| await fetch(API + '/users/@me', { headers: ah() }) | |\n| } | |\n| async function reminiHD(imagePath) { | |\n| try { | |\n| if (!fs.existsSync(imagePath)) return { error: 'File not found' } | |\n| await auth() | |\n| const ext = path.extname(imagePath).toLowerCase() | |\n| const mm = { '.jpg':'image/jpeg','.jpeg':'image/jpeg','.png':'image/png','.webp':'image/webp','.bmp':'image/bmp' } | |\n| const mime = mm[ext] || 'image/jpeg' | |\n| const cont = fs.readFileSync(imagePath) | |\n| const md5 = crypto.createHash('md5').update(cont).digest('base64') | |\n| let meta = { size: fs.statSync(imagePath).size } | |\n| try { const m = await sharp(imagePath).metadata(); meta.width=m.width; meta.height=m.height } catch {} | |\n| const taskR = await fetch(API + '/tasks', { | |\n| method: 'POST', | |\n| headers: ah({'content-type':'application/json; charset=UTF-8'}), | |\n| body: JSON.stringify({ | |\n| image_content_type: mime, image_md5: md5, | |\n| feature: { type: 'enhance', models: [] }, | |\n| metadata: meta, | |\n| options: { high_quality_output: false, save_input: true }, | |\n| }) | |\n| }) | |\n| const taskD = await taskR.json() | |\n| if (!taskD.task_id || !taskD.upload_url || !taskD.upload_headers) throw new Error('Missing fields') | |\n| await fetch(taskD.upload_url, { | |\n| method: 'PUT', | |\n| headers: { ...taskD.upload_headers, 'Content-Length': cont.length, 'User-Agent': 'okhttp/4.12.0' }, | |\n| body: cont, | |\n| }) | |\n| await fetch(API + '/tasks/' + taskD.task_id + '/process', { | |\n| method: 'POST', | |\n| headers: ah({'content-length':'0'}), | |\n| }) | |\n| let cdnUrl = null | |\n| for (let i=0; i<40; i++) { | |\n| await new Promise(r => setTimeout(r, 5000)) | |\n| const pr = await fetch(API + '/tasks/' + taskD.task_id, { headers: ah() }) | |\n| const pd = await pr.json() | |\n| if (pd.status === 'completed') { | |\n| const outs = pd.result && pd.result.outputs | |\n| if (outs && Array.isArray(outs) && outs[0] && outs[0].url) cdnUrl = outs[0].url | |\n| break | |\n| } | |\n| if (pd.status === 'failed' || pd.status === 'error') throw new Error('Task failed') | |\n| } | |\n| if (!cdnUrl) return { error: 'No output URL' } | |\n| let iw=0, ih=0 | |\n| try { const m=await sharp(imagePath).metadata(); iw=m.width; ih=m.height } catch {} | |\n| return { | |\n| status:'completed', | |\n| input:{path:path.resolve(imagePath),size:fs.statSync(imagePath).size,width:iw,height:ih}, | |\n| output:{url:cdnUrl}, | |\n| upscale: iw ? '2x-4x' : 'N/A', | |\n| } | |\n| } catch (e) { | |\n| const detail = e.message || String(e) | |\n| return { error: detail } | |\n| } | |\n| } | |\n| reminiHD('image.jpg').then(console.log) |", "url": "https://wpnews.pro/news/remini-hd-without-rate-limit", "canonical_source": "https://gist.github.com/Raflixyz/9534ccfff9dc6d4a198489b404778de3", "published_at": "2026-06-30 03:16:32+00:00", "updated_at": "2026-06-30 05:18:24.884199+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "computer-vision"], "entities": ["Remini", "Node.js", "Samsung", "Android", "Sharp", "crypto"], "alternates": {"html": "https://wpnews.pro/news/remini-hd-without-rate-limit", "markdown": "https://wpnews.pro/news/remini-hd-without-rate-limit.md", "text": "https://wpnews.pro/news/remini-hd-without-rate-limit.txt", "jsonld": "https://wpnews.pro/news/remini-hd-without-rate-limit.jsonld"}}