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, box) and receive one typed answer per question with probabilities and confidence. Images go in assets (base64 JSON, or multipart/form-data with the JSON in a request part) and, like box questions, need the TypeSafe-Danger-Zone-Images: true header; TypeSafe-Danger-Zone-Long-Context: true raises Jev’s budget to 262k tokens. Both headers are passed through to TypeSafe. 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)
Images, keyed by the reference string written wherever each image belongs in state, instructions or criteria. Each has data_base64 + format (png or jpg), or part naming a multipart file part. Needs the TypeSafe-Danger-Zone-Images: true header.
Show child attributes
Response
One answer per question, keyed by the ids you chose, plus the concrete model version and token usage.
{"docsConfig":{"theme":"willow","$schema":"https://mintlify.com/docs.json","name":"impossibl","description":"Use one API key for models across providers. Get started, connect your app, and manage usage and billing.","colors":{"primary":"#000000","light":"#FFFFFF","dark":"#000000"},"logo":{"light":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/logo-light-v2.png?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=c8f499ee9ee34ad48d6237725054f6d5","dark":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/logo-dark-v2.png?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=3d2870508f4e1d38ce884314bc45bf93"},"favicon":{"light":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/favicon-light.svg?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=e2f99d84d17cfc0ce1e8a69fa9ce22d7","dark":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/favicon-dark.svg?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=1478ca16d79753dfb3afa484f449af86"},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://impossibl.com/models","label":"Models"}],"primary":{"type":"button","label":"Console","href":"https://impossibl.com/dashboard"}},"seo":{"metatags":{"canonical":"https://impossibl.com/docs","og:site_name":"impossibl","twitter:site":"@Impossiblai","og:image":"https://impossibl.com/opengraph-image","twitter:image":"https://impossibl.com/opengraph-image","twitter:card":"summary_large_image"},"organization":{"name":"impossibl","url":"https://impossibl.com","logo":"https://impossibl.com/brand/impossibl-icon.png","sameAs":["https://x.com/Impossiblai","https://github.com/impossiblco"]}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"impossibl","hasAudioNarration":false,"actualSubdomain":"impossibl","customDomains":["impossibl.com"],"gitSource":{"type":"github","owner":"impossiblco","repo":"imp-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"c3292231-1b34-4e3f-8585-5bedf8c02381","liveDeploymentHistoryId":"6adfa93e1421c8c54a042a7e","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adfa93e1421c8c54a042a7e"},"entitlements":{},"buildId":"6ae81dd721b4422fadc6a09e","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"Build","count":8},{"language":"default","tag":"Modalities","count":8},{"language":"default","tag":"Get started","count":6},{"language":"default","tag":"Manage","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/evaluate-state-against-typed-questions-typesafe-system-one","slug":"/api-reference/evaluate-state-against-typed-questions-typesafe-system-one","pageMetadata":{"title":"Evaluate state against typed questions (TypeSafe System One)","description":"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, box) and receive one typed `answer` per question with probabilities and confidence. Images go in `assets` (base64 JSON, or multipart/form-data with the JSON in a `request` part) and, like box questions, need the `TypeSafe-Danger-Zone-Images: true` header; `TypeSafe-Danger-Zone-Long-Context: true` raises Jev's budget to 262k tokens. Both headers are passed through to TypeSafe. 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).","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/systemone","href":"/api-reference/evaluate-state-against-typed-questions-typesafe-system-one","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Mirrors TypeSafe AI’s native \", _jsx(_components.code, {\n children: \"POST /v1/systemone\"\n }), \" exactly, so the official TypeSafe SDKs work by pointing \", _jsx(_components.code, {\n children: \"TYPESAFE_BASE_URL\"\n }), \" at this API. Send a \", _jsx(_components.code, {\n children: \"state\"\n }), \" plus a map of typed \", _jsx(_components.code, {\n children: \"questions\"\n }), \" (noul, choice, score, box) and receive one typed \", _jsx(_components.code, {\n children: \"answer\"\n }), \" per question with probabilities and confidence. Images go in \", _jsx(_components.code, {\n children: \"assets\"\n }), \" (base64 JSON, or multipart/form-data with the JSON in a \", _jsx(_components.code, {\n children: \"request\"\n }), \" part) and, like box questions, need the \", _jsx(_components.code, {\n children: \"TypeSafe-Danger-Zone-Images: true\"\n }), \" header; \", _jsx(_components.code, {\n children: \"TypeSafe-Danger-Zone-Long-Context: true\"\n }), \" raises Jev’s budget to 262k tokens. Both headers are passed through to TypeSafe. Requires a model whose \", _jsx(_components.code, {\n children: \"output_modality\"\n }), \" is \", _jsx(_components.code, {\n children: \"evaluation\"\n }), \" (typesafe-ai/jev, convaiinnovations/laya, convaiinnovations/laya-multilingual, supersoniclabs/julia-1); text models return 400. Billed on \", _jsx(_components.code, {\n children: \"usage.input_tokens\"\n }), \" 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).\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Evaluate state against typed questions (TypeSafe System One)","description":"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, box) and receive one typed `answer` per question with probabilities and confidence. Images go in `assets` (base64 JSON, or multipart/form-data with the JSON in a `request` part) and, like box questions, need the `TypeSafe-Danger-Zone-Images: true` header; `TypeSafe-Danger-Zone-Long-Context: true` raises Jev's budget to 262k tokens. Both headers are passed through to TypeSafe. 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).","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/systemone","href":"/api-reference/evaluate-state-against-typed-questions-typesafe-system-one","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/impossibl/c75059c84ec01199/analytics.js"],"openApiReferenceData":{"operation":{"operationId":"evaluateSystemOne","summary":"Evaluate state against typed questions (TypeSafe System One)","description":"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, box) and receive one typed `answer` per question with probabilities and confidence. Images go in `assets` (base64 JSON, or multipart/form-data with the JSON in a `request` part) and, like box questions, need the `TypeSafe-Danger-Zone-Images: true` header; `TypeSafe-Danger-Zone-Long-Context: true` raises Jev's budget to 262k tokens. Both headers are passed through to TypeSafe. 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).","requestBody":"7f21bc09-71c5-4d31-b7eb-e522b567a2de","responses":{"200":"26eddbb3-dbe6-4d5a-b76c-fe5ba89422fb","400":"7fd70c6f-d866-4b28-8ea6-eba3c98f0499","401":"c3219ab5-939a-4410-8d34-9ad77a817834","402":"704f5b7f-1279-4e14-ac5c-d98dd9eed302","404":"d01d7a14-0125-45d4-bfaa-c281b5e1c67a","502":"672c87d1-6e0f-4663-9640-96b2e70e31b3","503":"423c3847-7a7d-4fbb-99ba-42629a6f4912"},"method":"post","type":"path","servers":["56354270-4d43-4a36-9df8-087ce55ddbb8","b9326fa1-d188-49aa-a659-8ec127b80a40"],"security":["b9e249f0-508d-49aa-b644-e83d1e514b84"],"path":"/v1/systemone","baseUrlOptions":["https://api.impossibl.com","http://localhost:8787"],"title":"Evaluate state against typed questions (TypeSafe System One)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","state","questions"],"properties":{"model":{"type":"string","example":"typesafe-ai/jev","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"state":{"oneOf":[{"type":"string","description":"The content to evaluate — a plain string, or structured data such as a record or chat log.","isRequired":true,"uniqueKey":"state.oneOf.0","typeLabel":"string"},{"type":"object","description":"The content to evaluate — a plain string, or structured data such as a record or chat log.","additionalProperties":true,"isRequired":true,"uniqueKey":"state.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"state.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"The content to evaluate — a plain string, or structured data such as a record or chat log.","isRequired":true,"uniqueKey":"state.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"state","typeLabel":"string | object | any[]"},"questions":{"type":"object","minProperties":1,"description":"Question ids you choose; answers come back under the same ids.","additionalProperties":{"type":"object","required":["type","instructions"],"description":"A typed question. `noul` is yes/no (criteria optional, `{true, false}` descriptions); `choice` picks one option (criteria required, option -> description or null); `score` rates along an ordered rubric (criteria required, array of at least 2 levels, low to high); `box` finds where something is in an image (no criteria; typesafe-ai/jev-1.14.0 only).","properties":{"type":{"type":"string","enum":["noul","choice","score","box"],"isRequired":true,"uniqueKey":"questions.additionalProperties.type","typeLabel":"enum\u003cstring>"},"instructions":{"oneOf":[{"type":"string","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","isRequired":true,"uniqueKey":"questions.additionalProperties.instructions.oneOf.0","typeLabel":"string"},{"type":"object","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","additionalProperties":true,"isRequired":true,"uniqueKey":"questions.additionalProperties.instructions.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","isRequired":true,"uniqueKey":"questions.additionalProperties.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","isRequired":true,"uniqueKey":"questions.additionalProperties.instructions.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"questions.additionalProperties.instructions","typeLabel":"string | object | any[] | null"},"criteria":{"oneOf":[{"type":"object","description":"Shape depends on `type` — see the description above.","additionalProperties":{"oneOf":[{"type":"string","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","uniqueKey":"questions.additionalProperties.criteria.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","additionalProperties":true,"uniqueKey":"questions.additionalProperties.criteria.oneOf.0.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.criteria.oneOf.0.additionalProperties.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","uniqueKey":"questions.additionalProperties.criteria.oneOf.0.additionalProperties.oneOf.2","typeLabel":"any[]"},{"type":"null","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","uniqueKey":"questions.additionalProperties.criteria.oneOf.0.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.criteria.oneOf.0.additionalProperties","typeLabel":"string | object | any[] | null"},"uniqueKey":"questions.additionalProperties.criteria.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{"type":"string","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","uniqueKey":"questions.additionalProperties.criteria.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","additionalProperties":true,"uniqueKey":"questions.additionalProperties.criteria.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.criteria.oneOf.1.items.[INDEX].oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","uniqueKey":"questions.additionalProperties.criteria.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"any[]"},{"type":"null","description":"Free-form content the model reads. A string, or JSON structure (object/array) when the content is already structured.","uniqueKey":"questions.additionalProperties.criteria.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.criteria.oneOf.1.items.[INDEX]","typeLabel":"string | object | any[] | null"},"description":"Shape depends on `type` — see the description above.","minItems":2,"uniqueKey":"questions.additionalProperties.criteria.oneOf.1","typeLabel":"(string | object | any[] | null)[]"}],"uniqueKey":"questions.additionalProperties.criteria","typeLabel":"object | (string | object | any[] | null)[]"}},"uniqueKey":"questions.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"questions","typeLabel":"object"},"assets":{"type":"object","description":"Images, keyed by the reference string written wherever each image belongs in `state`, `instructions` or `criteria`. Each has `data_base64` + `format` (png or jpg), or `part` naming a multipart file part. Needs the `TypeSafe-Danger-Zone-Images: true` header.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["image"],"uniqueKey":"assets.additionalProperties.type","typeLabel":"enum\u003cstring>"},"format":{"type":"string","enum":["png","jpg","jpeg"],"uniqueKey":"assets.additionalProperties.format","typeLabel":"enum\u003cstring>"},"data_base64":{"type":"string","uniqueKey":"assets.additionalProperties.data_base64","typeLabel":"string"},"part":{"type":"string","uniqueKey":"assets.additionalProperties.part","typeLabel":"string"}},"uniqueKey":"assets.additionalProperties","typeLabel":"object"},"uniqueKey":"assets","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"typesafe-ai/jev","state":"\u003cstring>","questions":{},"assets":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"26eddbb3-dbe6-4d5a-b76c-fe5ba89422fb":{"description":"One answer per question, keyed by the ids you chose, plus the concrete model version and token usage.","content":{"application/json":{"schema":{"type":"object","required":["model","answers","usage"],"properties":{"model":{"type":"string","example":"jev-1.13.0","description":"The concrete model version that answered.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"answers":{"type":"object","additionalProperties":{"type":"object","required":["type"],"description":"Matches its question's `type`. `noul` carries `noul` (0..1, probability of yes) and no confidence. `choice` carries `choice`, `confidence` and `probabilities`. `score` carries `score`, `confidence`, `legend` (level index -> description) and `probabilities`. `box` carries `box` (`top`, `bottom`, `left`, `right`, fractions of the image) and `confidence`.","properties":{"type":{"type":"string","enum":["noul","choice","score","box"],"isRequired":true,"uniqueKey":"answers.additionalProperties.type","typeLabel":"enum\u003cstring>"},"noul":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.noul","typeLabel":"number"},"choice":{"type":"string","uniqueKey":"answers.additionalProperties.choice","typeLabel":"string"},"score":{"type":"number","uniqueKey":"answers.additionalProperties.score","typeLabel":"number"},"confidence":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.confidence","typeLabel":"number"},"legend":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"answers.additionalProperties.legend.additionalProperties","typeLabel":"string"},"uniqueKey":"answers.additionalProperties.legend","typeLabel":"object"},"box":{"type":"object","properties":{"top":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.box.top","typeLabel":"number"},"bottom":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.box.bottom","typeLabel":"number"},"left":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.box.left","typeLabel":"number"},"right":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.box.right","typeLabel":"number"}},"uniqueKey":"answers.additionalProperties.box","typeLabel":"object"},"probabilities":{"type":"object","additionalProperties":{"type":"number","uniqueKey":"answers.additionalProperties.probabilities.additionalProperties","typeLabel":"number"},"uniqueKey":"answers.additionalProperties.probabilities","typeLabel":"object"}},"uniqueKey":"answers.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"answers","typeLabel":"object"},"usage":{"type":"object","required":["input_tokens","output_tokens"],"properties":{"input_tokens":{"type":"integer","minimum":0,"description":"The billed count.","isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","minimum":0,"description":"Reported by TypeSafe; not billed.","isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"usage","typeLabel":"object"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"jev-1.13.0","answers":{},"usage":{"input_tokens":1,"output_tokens":1},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"7fd70c6f-d866-4b28-8ea6-eba3c98f0499":{"description":"Malformed request (bad JSON, or missing required fields).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"`model` and `messages` are required","type":"invalid_request_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"`model` and `messages` are required","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c3219ab5-939a-4410-8d34-9ad77a817834":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Invalid API key","type":"authentication_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid API key","type":"authentication_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"704f5b7f-1279-4e14-ac5c-d98dd9eed302":{"description":"Available credits or postpaid headroom cannot cover the request's balance check, which can include estimated input cost. Top up or reduce the request size.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Insufficient credits. Top up to continue.","type":"insufficient_quota"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Insufficient credits. Top up to continue.","type":"insufficient_quota"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d01d7a14-0125-45d4-bfaa-c281b5e1c67a":{"description":"The requested `model` id is not in the registry (see GET /v1/models).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Unknown model: foo/bar","type":"invalid_request_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Unknown model: foo/bar","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"672c87d1-6e0f-4663-9640-96b2e70e31b3":{"description":"The upstream provider returned an error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"permission-denied: ...","type":"upstream_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"permission-denied: ...","type":"upstream_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"423c3847-7a7d-4fbb-99ba-42629a6f4912":{"description":"The provider for this model has no API key configured on the gateway.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Provider not configured: missing OPENAI_API_KEY","type":"provider_not_configured"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Provider not configured: missing OPENAI_API_KEY","type":"provider_not_configured"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"b9e249f0-508d-49aa-b644-e83d1e514b84":{"BearerKey":{"type":"http","scheme":"bearer","description":"Gateway API key (`imp-rt-...`) from POST /v1/accounts or /v1/keys.","scopes":[],"schemeName":"BearerKey"}}},"servers":{"56354270-4d43-4a36-9df8-087ce55ddbb8":{"url":"https://api.impossibl.com","description":"Production"},"b9326fa1-d188-49aa-a659-8ec127b80a40":{"url":"http://localhost:8787","description":"Local dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Gateway API key (`imp-rt-...`) from POST /v1/accounts or /v1/keys.","scopes":[],"schemeName":"BearerKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Gateway API key (`imp-rt-...`) from POST /v1/accounts or /v1/keys.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerKey","name":"Authorization"}],"title":"BearerKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"impossibl","siteName":"impossibl","title":"Evaluate state against typed questions (TypeSafe System One) - impossibl","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T00:28:49.711Z","originalFileLocation":"api-reference/evaluate-state-against-typed-questions-typesafe-system-one.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Mirrors TypeSafe AI\u0026#x27;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, box) and receive one typed answer per question with probabilities and confidence. Images go in assets (base64 JSON, or multipart/form-data with the JSON in a request part) and, like box questions, need the TypeSafe-Danger-Zone-Images: true header; TypeSafe-Danger-Zone-Long-Context: true raises Jev\u0026#x27;s budget to 262k tokens. Both headers are passed through to TypeSafe. 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\u0026#x27;s token budget (about 32,000 for jev, 8,192 for laya).\">\u003cmeta data-mint-head name=\"application-name\" content=\"impossibl\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Evaluate state against typed questions (TypeSafe System One) - impossibl\">\u003cmeta data-mint-head property=\"og:description\" content=\"Mirrors TypeSafe AI\u0026#x27;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, box) and receive one typed answer per question with probabilities and confidence. Images go in assets (base64 JSON, or multipart/form-data with the JSON in a request part) and, like box questions, need the TypeSafe-Danger-Zone-Images: true header; TypeSafe-Danger-Zone-Long-Context: true raises Jev\u0026#x27;s budget to 262k tokens. Both headers are passed through to TypeSafe. 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\u0026#x27;s token budget (about 32,000 for jev, 8,192 for laya).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"impossibl\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://impossibl.com/opengraph-image\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Evaluate state against typed questions (TypeSafe System One) - impossibl\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Mirrors TypeSafe AI\u0026#x27;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, box) and receive one typed answer per question with probabilities and confidence. Images go in assets (base64 JSON, or multipart/form-data with the JSON in a request part) and, like box questions, need the TypeSafe-Danger-Zone-Images: true header; TypeSafe-Danger-Zone-Long-Context: true raises Jev\u0026#x27;s budget to 262k tokens. Both headers are passed through to TypeSafe. 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\u0026#x27;s token budget (about 32,000 for jev, 8,192 for laya).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://impossibl.com/opengraph-image\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"impossibl\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://impossibl.com/#organization\",\"name\":\"impossibl\",\"url\":\"https://impossibl.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://impossibl.com/brand/impossibl-icon.png\"},\"sameAs\":[\"https://x.com/Impossiblai\",\"https://github.com/impossiblco\"]},{\"@type\":\"WebSite\",\"@id\":\"https://impossibl.com/docs#website\",\"name\":\"impossibl\",\"url\":\"https://impossibl.com/docs\",\"publisher\":{\"@id\":\"https://impossibl.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one#webpage\",\"url\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one\",\"name\":\"Evaluate state against typed questions (TypeSafe System One)\",\"description\":\"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, box) and receive one typed answer per question with probabilities and confidence. Images go in assets (base64 JSON, or multipart/form-data with the JSON in a request part) and, like box questions, need the TypeSafe-Danger-Zone-Images: true header; TypeSafe-Danger-Zone-Long-Context: true raises Jev's budget to 262k tokens. Both headers are passed through to TypeSafe. 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).\",\"dateModified\":\"2026-10-16T00:28:49.711Z\",\"isPartOf\":{\"@id\":\"https://impossibl.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://impossibl.com/docs/api-reference/complete-artificial-analysis-benchmark-snapshot-for-a-serving-model\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Evaluate state against typed questions (TypeSafe System One)\",\"item\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one#apireference\",\"headline\":\"Evaluate state against typed questions (TypeSafe System One)\",\"name\":\"Evaluate state against typed questions (TypeSafe System One)\",\"description\":\"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, box) and receive one typed answer per question with probabilities and confidence. Images go in assets (base64 JSON, or multipart/form-data with the JSON in a request part) and, like box questions, need the TypeSafe-Danger-Zone-Images: true header; TypeSafe-Danger-Zone-Long-Context: true raises Jev's budget to 262k tokens. Both headers are passed through to TypeSafe. 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).\",\"url\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one\",\"mainEntityOfPage\":{\"@id\":\"https://impossibl.com/docs/api-reference/evaluate-state-against-typed-questions-typesafe-system-one#webpage\"},\"image\":\"https://impossibl.com/opengraph-image\",\"dateModified\":\"2026-10-16T00:28:49.711Z\",\"publisher\":{\"@id\":\"https://impossibl.com/#organization\"},\"isPartOf\":{\"@id\":\"https://impossibl.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"impossibl\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"impossibl","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Complete Artificial Analysis benchmark snapshot for a serving model","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/models/{creator}/{model}/benchmarks","href":"/api-reference/complete-artificial-analysis-benchmark-snapshot-for-a-serving-model"},{"title":"Get executable agent onboarding manifest","deprecated":null,"version":null,"openapi":"/openapi.yaml get /auth.md","href":"/api-reference/get-executable-agent-onboarding-manifest"},{"title":"Get auth.md manifest from the well-known compatibility path","deprecated":null,"version":null,"openapi":"/openapi.yaml get /.well-known/auth.md","href":"/api-reference/get-authmd-manifest-from-the-well-known-compatibility-path"},{"title":"Get OAuth protected-resource metadata for agent discovery","deprecated":null,"version":null,"openapi":"/openapi.yaml get /.well-known/oauth-protected-resource","href":"/api-reference/get-oauth-protected-resource-metadata-for-agent-discovery"},{"title":"List available models and pricing","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/models","href":"/api-reference/list-available-models-and-pricing"},{"title":"Create a funded account (agent onboarding)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts","href":"/api-reference/create-a-funded-account-agent-onboarding"},{"title":"Get the authenticated account and balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/account","href":"/api-reference/get-the-authenticated-account-and-balance"},{"title":"List API keys (metadata only)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/keys","href":"/api-reference/list-api-keys-metadata-only"},{"title":"Mint a new API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/keys","href":"/api-reference/mint-a-new-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/keys/{id}","href":"/api-reference/revoke-an-api-key"},{"title":"Rename an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/keys/{id}","href":"/api-reference/rename-an-api-key"},{"title":"List BYOK provider credentials (metadata only)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/provider-keys","href":"/api-reference/list-byok-provider-credentials-metadata-only"},{"title":"Add (or replace) a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/provider-keys","href":"/api-reference/add-or-replace-a-byok-provider-credential"},{"title":"Revoke a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/provider-keys/{id}","href":"/api-reference/revoke-a-byok-provider-credential"},{"title":"Recent usage ledger","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/usage","href":"/api-reference/recent-usage-ledger"},{"title":"Live usage stream (SSE)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/usage/stream","href":"/api-reference/live-usage-stream-sse"},{"title":"Recent request log","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/requests","href":"/api-reference/recent-request-log"},{"title":"One request with its captured payload","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/requests/{id}","href":"/api-reference/one-request-with-its-captured-payload"},{"title":"Start a claim ceremony (hand the account to a human)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agent/identity/claim","href":"/api-reference/start-a-claim-ceremony-hand-the-account-to-a-human"},{"title":"Poll a claim ceremony (claim grant)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /oauth2/token","href":"/api-reference/poll-a-claim-ceremony-claim-grant"},{"title":"Complete a claim (called by the frontend after WorkOS sign-in)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/claims/complete","href":"/api-reference/complete-a-claim-called-by-the-frontend-after-workos-sign-in"},{"title":"Current balance and top-up pricing","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/billing","href":"/api-reference/current-balance-and-top-up-pricing"},{"title":"Buy net credits with a hosted Stripe Invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/billing/invoice","href":"/api-reference/buy-net-credits-with-a-hosted-stripe-invoice"},{"title":"Verify Stripe webhook and credit paid invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/billing/webhook","href":"/api-reference/verify-stripe-webhook-and-credit-paid-invoices"},{"title":"Create a chat completion (OpenAI-compatible)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/chat/completions","href":"/api-reference/create-a-chat-completion-openai-compatible"},{"title":"Generate images (OpenAI-compatible)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/images/generations","href":"/api-reference/generate-images-openai-compatible"},{"title":"Transcribe a completed audio file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/audio/transcriptions","href":"/api-reference/transcribe-a-completed-audio-file"},{"title":"Synthesize speech from text","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/audio/speech","href":"/api-reference/synthesize-speech-from-text"},{"title":"Create a response (OpenAI Responses API)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/responses","href":"/api-reference/create-a-response-openai-responses-api"},{"title":"Create a message (Anthropic Messages API)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messages","href":"/api-reference/create-a-message-anthropic-messages-api"},{"title":"Create embeddings (OpenAI-compatible)","description":"Drop-in compatible with OpenAI's Embeddings API. Requires a model whose `output_modality` is `embedding` (see GET /v1/models); text models return 400. Billed on input tokens only.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/embeddings","href":"/api-reference/create-embeddings-openai-compatible"},{"title":"Evaluate state against typed questions (TypeSafe System One)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/systemone","href":"/api-reference/evaluate-state-against-typed-questions-typesafe-system-one"},{"title":"Answer typed questions about an input (OpenAI Decisions)","description":"Mirrors OpenAI's native `POST /v1/decisions` exactly, so the official OpenAI SDKs work by pointing `OPENAI_BASE_URL` at this API. Send an `input` (text, or user messages with `input_text`/base64 `input_image` parts) plus an array of typed `questions` (predicate, choice, score), each with a unique `name`, and receive one typed answer per question with probabilities. Requires openai/gpt-6-luna-decisions; other models return 400. Billed on `usage.input_tokens` only ($0.10/M, $0.20/M above 272K input tokens); output and cache tokens are never billed. OpenAI's own validation errors are returned as 400.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/decisions","href":"/api-reference/answer-typed-questions-about-an-input-openai-decisions"},{"title":"Rerank documents by relevance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/rerank","href":"/api-reference/rerank-documents-by-relevance"}]}]}]},"basePath":"","title":"Evaluate state against typed questions (TypeSafe System One) - impossibl","buildId":"dpl_6cCEiK8XNNvaLBBkWzcBhdE9QfLC","deploymentId":"dpl_6cCEiK8XNNvaLBBkWzcBhdE9QfLC","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CLz2_Z5D.js","utils-7A5jZhOT.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BVWmkKuv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-4SOfrh0F.js","snippetPresets-CMc8KicP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ba9tX7z3.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Be8krXvv.js","shallow-CBC3K1uB.js","getApiPlaygroundDisplay-4tKcUAYo.js","CodeSnippet-C1Xa06ft.js","CodeSnippets-vqiz27A_.js","Page-DeQN5MDd.js","getPastedJson-NUwRfM32.js","icon-DkIVqWh9.js","MethodPill-qmhT7_wz.js","DuplicateIcon-_gWp1vhn.js","createIcon-NA1p_TVA.js","DynamicMarkdown-Bas9A7wq.js","SectionHeading-a1cS-24U.js","axios-vUo_bRtp.js","Markdown-D3ZTwq_a.js","clsx-BcghKhHb.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-B66mVNPp.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DmooSyTN.js"]}