Quickstart
From zero to a working request in three steps.
1. Create an API key
Sign in, open the Dashboard → API Keys page, and generate a new key. Store it somewhere safe — you will only see it once.
2. Export it locally
export MAROB_API_KEY="mk_..."3. Make a request
curl https://api.marob.ai/v1/ai/translate \
-H "Authorization: Bearer $MAROB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, world",
"target_language": "de"
}'Node.js
const res = await fetch("https://api.marob.ai/v1/ai/translate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MAROB_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
text: "Hello, world",
target_language: "de",
}),
});
const data = await res.json();
console.log(data.translated_text);Python
import os, requests
res = requests.post(
"https://api.marob.ai/v1/ai/translate",
headers={"Authorization": f"Bearer {os.environ['MAROB_API_KEY']}"},
json={"text": "Hello, world", "target_language": "de"},
)
print(res.json()["translated_text"])