Batch System 1 Decisions
curl --request POST \
--url https://api.inevitableco.ai/v1/systemone/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"state": "Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.",
"question": "Should credit limit be expanded, maintained, or constrained?",
"options": [
"EXPAND",
"MAINTAIN",
"CONSTRAIN"
],
"model": "inevitable-senatus-1.0",
"reasons": true,
"domain": "finance"
}
]
}
'import requests
url = "https://api.inevitableco.ai/v1/systemone/batch"
payload = { "requests": [
{
"state": "Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.",
"question": "Should credit limit be expanded, maintained, or constrained?",
"options": ["EXPAND", "MAINTAIN", "CONSTRAIN"],
"model": "inevitable-senatus-1.0",
"reasons": True,
"domain": "finance"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requests: [
{
state: 'Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.',
question: 'Should credit limit be expanded, maintained, or constrained?',
options: ['EXPAND', 'MAINTAIN', 'CONSTRAIN'],
model: 'inevitable-senatus-1.0',
reasons: true,
domain: 'finance'
}
]
})
};
fetch('https://api.inevitableco.ai/v1/systemone/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.inevitableco.ai/v1/systemone/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'state' => 'Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.',
'question' => 'Should credit limit be expanded, maintained, or constrained?',
'options' => [
'EXPAND',
'MAINTAIN',
'CONSTRAIN'
],
'model' => 'inevitable-senatus-1.0',
'reasons' => true,
'domain' => 'finance'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.inevitableco.ai/v1/systemone/batch"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"state\": \"Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.\",\n \"question\": \"Should credit limit be expanded, maintained, or constrained?\",\n \"options\": [\n \"EXPAND\",\n \"MAINTAIN\",\n \"CONSTRAIN\"\n ],\n \"model\": \"inevitable-senatus-1.0\",\n \"reasons\": true,\n \"domain\": \"finance\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.inevitableco.ai/v1/systemone/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"state\": \"Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.\",\n \"question\": \"Should credit limit be expanded, maintained, or constrained?\",\n \"options\": [\n \"EXPAND\",\n \"MAINTAIN\",\n \"CONSTRAIN\"\n ],\n \"model\": \"inevitable-senatus-1.0\",\n \"reasons\": true,\n \"domain\": \"finance\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.inevitableco.ai/v1/systemone/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"state\": \"Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.\",\n \"question\": \"Should credit limit be expanded, maintained, or constrained?\",\n \"options\": [\n \"EXPAND\",\n \"MAINTAIN\",\n \"CONSTRAIN\"\n ],\n \"model\": \"inevitable-senatus-1.0\",\n \"reasons\": true,\n \"domain\": \"finance\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"total_scenarios": 250,
"batch_latency_ms": 1420.5,
"results": [
{
"model": "inevitable-senatus-1.0",
"answers": {},
"latency_ms": 107.2,
"audit": {
"hash": "sha256:1d80d1d47aea41c43a3060f99478f793eef92e92da3072bd94553315a6b7d0a2",
"standard": "OCC SR 11-7 / Federal Reserve SR 11-7",
"receipt": "Deterministic linear weight trace verified against SR 11-7 regulatory standard."
}
}
]
}{
"detail": "Decision JSON requires string keys"
}{
"detail": "Invalid Bearer token"
}{
"detail": "Inference engine timeout"
}API Reference
POST /v1/systemone/batch
Process up to 1,000 independent scenarios in a high-throughput pipelined batch
POST
/
v1
/
systemone
/
batch
Batch System 1 Decisions
curl --request POST \
--url https://api.inevitableco.ai/v1/systemone/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"state": "Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.",
"question": "Should credit limit be expanded, maintained, or constrained?",
"options": [
"EXPAND",
"MAINTAIN",
"CONSTRAIN"
],
"model": "inevitable-senatus-1.0",
"reasons": true,
"domain": "finance"
}
]
}
'import requests
url = "https://api.inevitableco.ai/v1/systemone/batch"
payload = { "requests": [
{
"state": "Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.",
"question": "Should credit limit be expanded, maintained, or constrained?",
"options": ["EXPAND", "MAINTAIN", "CONSTRAIN"],
"model": "inevitable-senatus-1.0",
"reasons": True,
"domain": "finance"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requests: [
{
state: 'Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.',
question: 'Should credit limit be expanded, maintained, or constrained?',
options: ['EXPAND', 'MAINTAIN', 'CONSTRAIN'],
model: 'inevitable-senatus-1.0',
reasons: true,
domain: 'finance'
}
]
})
};
fetch('https://api.inevitableco.ai/v1/systemone/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.inevitableco.ai/v1/systemone/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'state' => 'Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.',
'question' => 'Should credit limit be expanded, maintained, or constrained?',
'options' => [
'EXPAND',
'MAINTAIN',
'CONSTRAIN'
],
'model' => 'inevitable-senatus-1.0',
'reasons' => true,
'domain' => 'finance'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.inevitableco.ai/v1/systemone/batch"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"state\": \"Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.\",\n \"question\": \"Should credit limit be expanded, maintained, or constrained?\",\n \"options\": [\n \"EXPAND\",\n \"MAINTAIN\",\n \"CONSTRAIN\"\n ],\n \"model\": \"inevitable-senatus-1.0\",\n \"reasons\": true,\n \"domain\": \"finance\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.inevitableco.ai/v1/systemone/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"state\": \"Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.\",\n \"question\": \"Should credit limit be expanded, maintained, or constrained?\",\n \"options\": [\n \"EXPAND\",\n \"MAINTAIN\",\n \"CONSTRAIN\"\n ],\n \"model\": \"inevitable-senatus-1.0\",\n \"reasons\": true,\n \"domain\": \"finance\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.inevitableco.ai/v1/systemone/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"state\": \"Borrower debt-to-equity ratio reached 3.42x at Q3 close. Covenant ceiling is 3.50x. EBITDA dropped 14% year-over-year. Unrestricted cash is $4.2M.\",\n \"question\": \"Should credit limit be expanded, maintained, or constrained?\",\n \"options\": [\n \"EXPAND\",\n \"MAINTAIN\",\n \"CONSTRAIN\"\n ],\n \"model\": \"inevitable-senatus-1.0\",\n \"reasons\": true,\n \"domain\": \"finance\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"total_scenarios": 250,
"batch_latency_ms": 1420.5,
"results": [
{
"model": "inevitable-senatus-1.0",
"answers": {},
"latency_ms": 107.2,
"audit": {
"hash": "sha256:1d80d1d47aea41c43a3060f99478f793eef92e92da3072bd94553315a6b7d0a2",
"standard": "OCC SR 11-7 / Federal Reserve SR 11-7",
"receipt": "Deterministic linear weight trace verified against SR 11-7 regulatory standard."
}
}
]
}{
"detail": "Decision JSON requires string keys"
}{
"detail": "Invalid Bearer token"
}{
"detail": "Inference engine timeout"
}Body
application/json