Chargement...
Chargement...
Öffentliche OpenAPI 3.1-Spezifikation — Endpoints, Schemas, Beispiele.
Jede Anfrage muss Ihren API-Schlüssel enthalten. Zwei akzeptierte Header:
# Option 1 — X-API-Key header
curl https://www.tevaxia.lu/api/v1/estimation \
-H "X-API-Key: tvx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"commune":"Luxembourg","surface":90}'
# Option 2 — Authorization Bearer
curl https://www.tevaxia.lu/api/v1/estimation \
-H "Authorization: Bearer tvx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"commune":"Luxembourg","surface":90}'Ihre API-Schlüssel verwalten Sie unter /profil/api (Erstellung, Widerruf, 30-Tage-Nutzungsverfolgung).
Verwenden Sie den öffentlichen Sandbox-Schlüssel unten, um die API ohne Konto zu testen. Rate-limitiert auf 60 Anfragen pro Minute, Antworten identisch mit Produktion, aber nicht abgerechnet.
tvx_sandbox_public_demo_key_read_onlySandbox⚠ Die Sandbox ist nur lesbar und kann ohne Vorankündigung deaktiviert werden. Für dauerhafte Nutzung erstellen Sie Ihren eigenen Schlüssel über /profil/api (Free-Plan: 10.000 Anfragen/Monat).
Zwei KI-Endpoints mit Ihrem tevaxia API-Schlüssel zugänglich (Standard-Rate-Limit):
# POST /api/v1/ai/analyze
curl https://www.tevaxia.lu/api/v1/ai/analyze \
-H "X-API-Key: tvx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"context": "Commune: Luxembourg\nSurface: 90m²\nEstimation: 950000 EUR",
"prompt": "Comment this estimate vs market."
}'
# → { "text": "...", "model": "llama3.1-8b", "provider": "cerebras", "remaining": -1 }
# POST /api/v1/ai/chat
curl https://www.tevaxia.lu/api/v1/ai/chat \
-H "X-API-Key: tvx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "role": "user", "content": "How is LU 3% VAT computed?" }
]
}'
# → { "text": "...", "model": "...", "provider": "...", "remaining": -1 }Der Server nutzt standardmäßig Cerebras (Llama 3.1 8B, Fallback Groq Llama 3.3). Wenn Sie einen BYOK OpenAI/Anthropic-Schlüssel in Ihrem Profil konfiguriert haben, wird dieser automatisch verwendet. Limit: Rate-Limit-Stufe Ihres API-Schlüssels (Free: 10/Min, 200/Tag).
const response = await fetch(
"https://www.tevaxia.lu/api/v1/estimation/batch",
{
method: "POST",
headers: {
"X-API-Key": process.env.TEVAXIA_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
items: myPortfolio.map((asset) => ({
commune: asset.commune,
surface: asset.surface,
classeEnergie: asset.epc,
etat: asset.condition,
})),
}),
}
);
const { results, succeeded, failed } = await response.json();
console.log(`${succeeded}/${results.length} assets estimated`);