Aller au contenu
GET /v1/split

Split at t

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/bezier-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/bezier-api/v1/split" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bezier-api/v1/split", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bezier-api/v1/split");
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/bezier-api/v1/split",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "de Casteljau split at t: left_curve and right_curve share the split point and together reproduce the original.",
        "inputs": {
            "t": 0.5,
            "degree": 3
        },
        "left_curve": [
            {
                "x": 0,
                "y": 0
            },
            {
                "x": 0,
                "y": 0.5
            },
            {
                "x": 0.25,
                "y": 0.75
            },
            {
                "x": 0.5,
                "y": 0.75
            }
        ],
        "right_curve": [
            {
                "x": 0.5,
                "y": 0.75
            },
            {
                "x": 0.75,
                "y": 0.75
            },
            {
                "x": 1,
                "y": 0.5
            },
            {
                "x": 1,
                "y": 0
            }
        ],
        "split_point": {
            "x": 0.5,
            "y": 0.75
        }
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:03.574Z",
        "request_id": "649f0ab6-b241-4d68-b87b-4fb33e4ac544"
    },
    "status": "ok",
    "message": "Split curve",
    "success": true
}