REFERENCE
Responses
Run Rowe 1.0 on spatial input through POST /api/v1/responses. Four Cad uses this endpoint after converting uploaded CAD geometry into structured spatial input.
POST /api/v1/responses
The Responses API is the main inference endpoint.
POST →
https://fourechelon.com/api/v1/responsesTerminal
const response = await fetch("https://fourechelon.com/api/v1/responses", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FOUR_ECHELON_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "rowe-1.0",
input: {
task_type: "fit",
object_id: "case",
secondary_id: "shelf",
point_cloud_scene: {
point_clouds: [
{
object_id: "case",
kind: "box",
points: [
{ x: 0, y: 0, z: 0 },
{ x: 1, y: 0, z: 0 },
{ x: 0, y: 1, z: 1 },
],
},
],
},
},
}),
});
const result = await response.json();