Create System One typed decision
curl --request POST \
--url https://grid.x402compute.cc/v1/systemone \
--header 'Content-Type: application/json' \
--data '
{
"model": "convaiinnovations/laya",
"state": {},
"questions": {
"route": {
"type": "choice",
"instructions": "Pick the best team.",
"criteria": {
"billing": "Billing or refund issue",
"support": "Technical support issue"
}
}
}
}
'import requests
url = "https://grid.x402compute.cc/v1/systemone"
payload = {
"model": "convaiinnovations/laya",
"state": {},
"questions": { "route": {
"type": "choice",
"instructions": "Pick the best team.",
"criteria": {
"billing": "Billing or refund issue",
"support": "Technical support issue"
}
} }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'convaiinnovations/laya',
state: {},
questions: {
route: {
type: 'choice',
instructions: 'Pick the best team.',
criteria: {billing: 'Billing or refund issue', support: 'Technical support issue'}
}
}
})
};
fetch('https://grid.x402compute.cc/v1/systemone', 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://grid.x402compute.cc/v1/systemone",
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([
'model' => 'convaiinnovations/laya',
'state' => [
],
'questions' => [
'route' => [
'type' => 'choice',
'instructions' => 'Pick the best team.',
'criteria' => [
'billing' => 'Billing or refund issue',
'support' => 'Technical support issue'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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://grid.x402compute.cc/v1/systemone"
payload := strings.NewReader("{\n \"model\": \"convaiinnovations/laya\",\n \"state\": {},\n \"questions\": {\n \"route\": {\n \"type\": \"choice\",\n \"instructions\": \"Pick the best team.\",\n \"criteria\": {\n \"billing\": \"Billing or refund issue\",\n \"support\": \"Technical support issue\"\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://grid.x402compute.cc/v1/systemone")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"convaiinnovations/laya\",\n \"state\": {},\n \"questions\": {\n \"route\": {\n \"type\": \"choice\",\n \"instructions\": \"Pick the best team.\",\n \"criteria\": {\n \"billing\": \"Billing or refund issue\",\n \"support\": \"Technical support issue\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://grid.x402compute.cc/v1/systemone")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"convaiinnovations/laya\",\n \"state\": {},\n \"questions\": {\n \"route\": {\n \"type\": \"choice\",\n \"instructions\": \"Pick the best team.\",\n \"criteria\": {\n \"billing\": \"Billing or refund issue\",\n \"support\": \"Technical support issue\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "systemone.result",
"model": "convaiinnovations/laya",
"answers": {},
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cost_usd": 123
}
}SGL Grid
System One typed decisions
Run Laya/System One typed decisions. Current model: convaiinnovations/laya. This is not an OpenAI chat-completions endpoint; use it for choice, score, and noul questions. Authenticate with X-API-Key (prepaid credits) or pay per request with x402 after a 402 challenge. For end-to-end private Laya, first reserve a node with POST /v1/systemone/reserve, encrypt locally to the returned node key, then submit the sealed payload here.
POST
/
v1
/
systemone
Create System One typed decision
curl --request POST \
--url https://grid.x402compute.cc/v1/systemone \
--header 'Content-Type: application/json' \
--data '
{
"model": "convaiinnovations/laya",
"state": {},
"questions": {
"route": {
"type": "choice",
"instructions": "Pick the best team.",
"criteria": {
"billing": "Billing or refund issue",
"support": "Technical support issue"
}
}
}
}
'import requests
url = "https://grid.x402compute.cc/v1/systemone"
payload = {
"model": "convaiinnovations/laya",
"state": {},
"questions": { "route": {
"type": "choice",
"instructions": "Pick the best team.",
"criteria": {
"billing": "Billing or refund issue",
"support": "Technical support issue"
}
} }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'convaiinnovations/laya',
state: {},
questions: {
route: {
type: 'choice',
instructions: 'Pick the best team.',
criteria: {billing: 'Billing or refund issue', support: 'Technical support issue'}
}
}
})
};
fetch('https://grid.x402compute.cc/v1/systemone', 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://grid.x402compute.cc/v1/systemone",
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([
'model' => 'convaiinnovations/laya',
'state' => [
],
'questions' => [
'route' => [
'type' => 'choice',
'instructions' => 'Pick the best team.',
'criteria' => [
'billing' => 'Billing or refund issue',
'support' => 'Technical support issue'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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://grid.x402compute.cc/v1/systemone"
payload := strings.NewReader("{\n \"model\": \"convaiinnovations/laya\",\n \"state\": {},\n \"questions\": {\n \"route\": {\n \"type\": \"choice\",\n \"instructions\": \"Pick the best team.\",\n \"criteria\": {\n \"billing\": \"Billing or refund issue\",\n \"support\": \"Technical support issue\"\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://grid.x402compute.cc/v1/systemone")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"convaiinnovations/laya\",\n \"state\": {},\n \"questions\": {\n \"route\": {\n \"type\": \"choice\",\n \"instructions\": \"Pick the best team.\",\n \"criteria\": {\n \"billing\": \"Billing or refund issue\",\n \"support\": \"Technical support issue\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://grid.x402compute.cc/v1/systemone")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"convaiinnovations/laya\",\n \"state\": {},\n \"questions\": {\n \"route\": {\n \"type\": \"choice\",\n \"instructions\": \"Pick the best team.\",\n \"criteria\": {\n \"billing\": \"Billing or refund issue\",\n \"support\": \"Technical support issue\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "systemone.result",
"model": "convaiinnovations/laya",
"answers": {},
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cost_usd": 123
}
}Use this endpoint for Laya/System One typed decisions. For conceptual guidance and private sealed
mode, see Laya / System One.
Headers
Compute/Grid API key (billed to prepaid credits). Omit to pay per request via x402 X-Payment.
Example:
"x402c_..."
Body
application/json
Example:
"convaiinnovations/laya"
JSON-serializable state for the decision. Max 64 KiB.
Object keyed by question id. Max 32 questions.
Show child attributes
Show child attributes
Example:
{
"route": {
"type": "choice",
"instructions": "Pick the best team.",
"criteria": {
"billing": "Billing or refund issue",
"support": "Technical support issue"
}
}
}
Was this page helpful?
