What this API does
POST Lua source, get obfuscated one-line Lua back. Every request made with an API key runs the full protection stack automatically: Bytecode VM, Anti Env Logs and Anti Tamper. All obfuscation happens on this server; the browser or client never sees the source or the algorithms.
Base URL: https://venturion-4u5.pages.dev
Quick start
- Get a key:
POST /keys/generate(one key per IP address, free, no login, no email). - Send your Lua:
POST /v1/obfuscatewith the headerX-API-Key: <key>and the raw Lua source as the request body. - Read the answer: JSON with the obfuscated code in
code, or plain text with?raw=1. Very large files answer202withstatus:"processing", ajobid and apollURL instead of timing out: pollGET /job/<id>untilstatusisdone, then fetchGET /job/<id>/download.
curl -s -X POST "https://venturion-4u5.pages.dev/v1/obfuscate?raw=1" \ -H "X-API-Key: YOUR_KEY" \ --data-binary @script.lua \ -o obfuscated.lua
Authentication
| Endpoint | What it does |
|---|---|
| POST /keys/generate | Returns {"ok": true, "key": "vent_..."}. One key per IP; calling it again returns the same key. |
| GET /keys/mine | Returns every key generated from your IP, with creation dates. |
| POST /keys/relink | Re-links an existing key to the caller (JSON body {"key": "vent_..."}), so the My keys panel finds it again after a network or device change. |
Send the key on every /v1/obfuscate request as the X-API-Key header, or as Authorization: Bearer <key>; both are accepted. A wrong or missing key answers 401.
POST /v1/obfuscate
Body: raw Lua source (Content-Type text/plain or application/json with {"source": "..."}). Max 1,000,000 bytes.
With a valid key the full stack is forced on automatically: vm=1, env=1, tamper=1. Query flags are ignored; the response always reports modes so you can confirm. Without a key, asking for env or tamper forces the Bytecode VM too, since both shields run inside the VM blob.
| Option | Values | Default with key |
|---|---|---|
| raw | raw=1 returns text/plain instead of JSON | JSON |
| level | level=1|2|3 sets every VM option and both shields at once, what the site dropdown uses: Level 1 is VM only, Level 2 adds both shields plus hardcode globals, static environment and small integers, Level 3 adds FFI and vector width 4 | not set |
JSON response:
{
"ok": true,
"code": "<obfuscated one-line lua>",
"bytes_in": 1234,
"bytes_out": 56789,
"modes": {"vm": true, "anti_env_logs": true, "anti_tamper": true}
}
Errors are {"ok": false, "error": "<human readable>"} with status
400 (bad Lua source), 401 (bad or missing key), 411 (empty body),
413 (too large), 429 (rate limit), 500 (server).
POST /obfuscate (no key, protection optional)
No key? Use POST /obfuscate with the raw Lua source as the body. Protection is optional here: no query flags at all gives standard obfuscation, or opt in with vm=1 (Bytecode VM), env=1 (Anti Env Logs), tamper=1 (Anti Tamper), or level=1|2|3 to set everything at once, what the site dropdown uses. env and tamper force the VM, since both shields run inside the VM blob. VM options intense, ffi, compat, hardcode, staticenv, smallint, vmcompress, debuglib and vector=2|3|4 can also be set directly.
POST https://venturion-4u5.pages.dev/obfuscate?level=2
Content-Type: text/plain
<your lua source here>
{"ok": true, "job": "<id>"}
GET /job/<id> {"ok": true, "id": ..., "status": "done", "bytes_in": ..., "bytes_out": ...}
GET /job/<id>/download the obfuscated Lua, text/plain
Poll every second or two until status is done or error, then download. A job result is readable only by the IP that submitted it, and a 429 means you still have a job running.
Use it from your own website
CORS is fully open: any website can call the API from browser JavaScript. Preflight OPTIONS echoes whatever headers your request declares and is cached for a day, so custom headers never break the call. No origin allowlist, no referrer checks.
const res = await fetch("https://venturion-4u5.pages.dev/v1/obfuscate", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "text/plain" },
body: luaSource
});
const data = await res.json();
if (data.ok) runMyScript(data.code);
The protection-level dropdown is optional: leave it out of the markup and the widget obfuscates at standard level, hardcode a level by fixing the level= choice in the URL, or let your visitors pick, as below. No API key is needed in browser code; the keyless endpoint uses the per-visitor rate limit. Copy this anywhere on your page, then edit the markup, the styling and the text however you like. Every id and class is yours to rename.
<textarea id="vent-src" rows="8" placeholder="Paste your Lua here"></textarea>
<select id="vent-level">
<option value="">Standard (no VM)</option>
<option value="1">Level 1 VM</option>
<option value="2" selected>Level 2 VM</option>
<option value="3">Level 3 VM</option>
</select>
<button id="vent-go">Obfuscate</button>
<textarea id="vent-out" rows="8" readonly placeholder="Obfuscated Lua appears here"></textarea>
<script>
document.getElementById("vent-go").addEventListener("click", async function () {
var btn = this, src = document.getElementById("vent-src").value,
lvl = document.getElementById("vent-level").value,
out = document.getElementById("vent-out"), base = "https://venturion-4u5.pages.dev";
btn.disabled = true; out.value = "";
try {
var j = await (await fetch(base + "/obfuscate" + (lvl ? "?level=" + lvl : ""),
{ method: "POST", body: src })).json();
if (!j.ok) throw new Error(j.error || "Request failed");
for (var i = 0; i < 180; i++) {
var s = await (await fetch(base + "/job/" + j.job)).json();
if (s.status === "done") break;
if (s.status === "error") throw new Error(s.error || "Obfuscation failed");
await new Promise(function (r2) { setTimeout(r2, 1000); });
}
out.value = await (await fetch(base + "/job/" + j.job + "/download")).text();
} catch (e) { out.value = "Error: " + e.message; }
btn.disabled = false;
});
</script>
Python example
import requests
r = requests.post(
"https://venturion-4u5.pages.dev/v1/obfuscate",
headers={"X-API-Key": "YOUR_KEY"},
data=open("script.lua", "rb").read(),
)
print(r.json()["code"])
Rate limits and runtime
60 requests per minute per IP. An obfuscate costs 4 requests of that budget, key generation 1, everything else 0. Over the limit answers 429, wait a minute.
Obfuscated output runs on Lua 5.1, LuaJIT, Lua 5.4, Luau and Roblox executors. Big files take a while; the server may need up to three minutes per obfuscation.
