← Supernova API Open all-engine playground
API documentation
Every engine, ready to use
Use one API key for language detection, tokenizer encode/decode/count, and text normalization.
Base URL
https://v0-supernova11c.vercel.appKeep your key on a server. Send Authorization: Bearer snv_live_... on every request.
MethodEndpoint
POST
/api/v1/language/detectDetect language, confidence, and script.
{"text":"नेपाल राम्रो छ।"}POST
/api/v1/tokenizer/encodeConvert text into token IDs.
{"text":"नेपाल राम्रो छ।"}POST
/api/v1/tokenizer/decodeConvert token IDs back into text.
{"tokens":[12,34,56]}POST
/api/v1/tokenizer/countReturn the real token count for text.
{"text":"नेपाल राम्रो छ।"}POST
/api/v1/text/normalizeNormalize whitespace and text.
{"text":" नेपाल राम्रो छ। "}Python: call every engine
import requests
BASE_URL = "https://v0-supernova11c.vercel.app"
API_KEY = "snv_live_your_key"
HEADERS = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
}
def call(path, payload):
response = requests.post(BASE_URL + path, headers=HEADERS, json=payload, timeout=30)
response.raise_for_status()
return response.json()
print(call("/api/v1/language/detect", {"text": "नेपाल राम्रो छ।"}))
print(call("/api/v1/tokenizer/encode", {"text": "नेपाल राम्रो छ।"}))
print(call("/api/v1/tokenizer/decode", {"tokens": [12, 34, 56]}))
print(call("/api/v1/tokenizer/count", {"text": "नेपाल राम्रो छ।"}))
print(call("/api/v1/text/normalize", {"text": " नेपाल राम्रो छ। "}))JavaScript: call every engine
const base = "https://v0-supernova11c.vercel.app";
const headers = {
"Authorization": "Bearer snv_live_your_key",
"Content-Type": "application/json"
};
async function call(path, body) {
const response = await fetch(base + path, {
method: "POST", headers, body: JSON.stringify(body)
});
if (!response.ok) throw new Error(await response.text());
return response.json();
}
await call("/api/v1/language/detect", { text: "नेपाल राम्रो छ।" });
await call("/api/v1/tokenizer/encode", { text: "नेपाल राम्रो छ।" });
await call("/api/v1/tokenizer/decode", { tokens: [12, 34, 56] });
await call("/api/v1/tokenizer/count", { text: "नेपाल राम्रो छ।" });
await call("/api/v1/text/normalize", { text: " नेपाल राम्रो छ। " });