Evaluate state against typed questions (TypeSafe System One)
curl --request POST \
--url https://api.impossibl.com/v1/systemone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "typesafe-ai/jev",
"state": "<string>",
"questions": {}
}
'import requests
url = "https://api.impossibl.com/v1/systemone"
payload = {
"model": "typesafe-ai/jev",
"state": "<string>",
"questions": {}
}
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({model: 'typesafe-ai/jev', state: '<string>', questions: {}})
};
fetch('https://api.impossibl.com/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://api.impossibl.com/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' => 'typesafe-ai/jev',
'state' => '<string>',
'questions' => [
]
]),
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.impossibl.com/v1/systemone"
payload := strings.NewReader("{\n \"model\": \"typesafe-ai/jev\",\n \"state\": \"<string>\",\n \"questions\": {}\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.impossibl.com/v1/systemone")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"typesafe-ai/jev\",\n \"state\": \"<string>\",\n \"questions\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.impossibl.com/v1/systemone")
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 \"model\": \"typesafe-ai/jev\",\n \"state\": \"<string>\",\n \"questions\": {}\n}"
response = http.request(request)
puts response.read_body{
"model": "jev-1.13.0",
"answers": {},
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"request_id": "<string>"
}{
"error": {
"message": "`model` and `messages` are required",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid API key",
"type": "authentication_error"
}
}{
"error": {
"message": "Insufficient credits. Top up to continue.",
"type": "insufficient_quota"
}
}{
"error": {
"message": "Unknown model: foo/bar",
"type": "invalid_request_error"
}
}{
"error": {
"message": "permission-denied: ...",
"type": "upstream_error"
}
}{
"error": {
"message": "Provider not configured: missing OPENAI_API_KEY",
"type": "provider_not_configured"
}
}API Reference
Evaluate state against typed questions (TypeSafe System One)
Mirrors TypeSafe AI’s native POST /v1/systemone exactly, so the official TypeSafe SDKs work by pointing TYPESAFE_BASE_URL at this API. Send a state plus a map of typed questions (noul, choice, score) and receive one typed answer per question with probabilities and confidence. Requires a model whose output_modality is evaluation (typesafe-ai/jev, convaiinnovations/laya, convaiinnovations/laya-multilingual, supersoniclabs/julia-1); text models return 400. Billed on usage.input_tokens only, and both convaiinnovations/laya ids are free in both directions; output tokens are never billed. State and questions share the model’s token budget (about 32,000 for jev, 8,192 for laya).
POST
/
v1
/
systemone
Evaluate state against typed questions (TypeSafe System One)
curl --request POST \
--url https://api.impossibl.com/v1/systemone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "typesafe-ai/jev",
"state": "<string>",
"questions": {}
}
'import requests
url = "https://api.impossibl.com/v1/systemone"
payload = {
"model": "typesafe-ai/jev",
"state": "<string>",
"questions": {}
}
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({model: 'typesafe-ai/jev', state: '<string>', questions: {}})
};
fetch('https://api.impossibl.com/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://api.impossibl.com/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' => 'typesafe-ai/jev',
'state' => '<string>',
'questions' => [
]
]),
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.impossibl.com/v1/systemone"
payload := strings.NewReader("{\n \"model\": \"typesafe-ai/jev\",\n \"state\": \"<string>\",\n \"questions\": {}\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.impossibl.com/v1/systemone")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"typesafe-ai/jev\",\n \"state\": \"<string>\",\n \"questions\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.impossibl.com/v1/systemone")
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 \"model\": \"typesafe-ai/jev\",\n \"state\": \"<string>\",\n \"questions\": {}\n}"
response = http.request(request)
puts response.read_body{
"model": "jev-1.13.0",
"answers": {},
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"request_id": "<string>"
}{
"error": {
"message": "`model` and `messages` are required",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid API key",
"type": "authentication_error"
}
}{
"error": {
"message": "Insufficient credits. Top up to continue.",
"type": "insufficient_quota"
}
}{
"error": {
"message": "Unknown model: foo/bar",
"type": "invalid_request_error"
}
}{
"error": {
"message": "permission-denied: ...",
"type": "upstream_error"
}
}{
"error": {
"message": "Provider not configured: missing OPENAI_API_KEY",
"type": "provider_not_configured"
}
}Authorizations
Gateway API key (imp-rt-...) from POST /v1/accounts or /v1/keys.
Body
application/json
⌘I

