/v1/predict
Predict from a line
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/regression-api/v1/predict" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/regression-api/v1/predict", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/regression-api/v1/predict");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/regression-api/v1/predict",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"y": 5.8,
"note": "y = intercept + slope·x.",
"inputs": {
"x": 6,
"slope": 0.6,
"intercept": 2.2
}
},
"meta": {
"timestamp": "2026-06-05T19:50:22.725Z",
"request_id": "9c451dac-5225-4771-8f61-d358f3c85930"
},
"status": "ok",
"message": "Predict from line",
"success": true
}