This is a Zero Data Retention route. Prem sends the request to a trusted partner. Prem does not keep your prompts or completions, and the partner does not keep them.Your content is plaintext at the Prem API Gateway and at the partner. There is no client-side encryption and no Trusted Execution Environment.
See ZDR vs Confidential.
Authenticate with a standard Prem API key in the Authorization: Bearer header. The key must have the chats.completion scope. No client KEK is used on this route.
The request uses a TypeSafe-compatible API, so the official TypeSafe client works against this route. Set its base URL to https://gateway.prem.io/typesafe. The client appends /v1/systemone and /v1/models.
import { choice, noul, score, TypeSafeClient } from "@typesafe-ai/sdk";const client = new TypeSafeClient({ apiKey: process.env.PREM_API_KEY, baseURL: "https://gateway.prem.io/typesafe", defaultModel: "dgemma",});const res = await client.systemOne({ state: "Customer says: 'I was charged twice for one subscription this month.'", questions: { category: choice("What is this ticket about?", { billing: null, technical: null, other: null }), urgent: noul("Is this request urgent?"), severity: score("How severe is this issue?", ["not severe", "mild", "moderate", "severe", "critical"] as const), },});console.log(res.answers.category.choice, res.answers.urgent.noul, res.answers.severity.score);
It is not the OpenAI Chat Completions shape, so an OpenAI client does not work against this route.
Field
Required
Description
model
yes
Model name from GET /typesafe/v1/models.
state
yes
The context the questions are asked about. A string, object, array, number, boolean, or null.
questions
yes
A map of question id to a typed question.
images
no
At most one base64 image data URL.
videos
no
At most one base64 MP4 data URL. A dgemma extension.
samples
no
Number of reads to average.
steps
no
Number of denoising steps.
provider
no
Pin the request to one of the model’s configured backends.
Each question carries type, instructions, and criteria:
One entry per question id, keyed by the id that you sent.
usage
input_tokens and output_tokens for the request.
diagnostics
Engine detail for the call. Informational, and it can change.
Read answers by your own question ids. A noul answer puts its scalar in noul; a noul answer has no probabilities field. A score answer reports the probability-weighted mean over the zero-indexed levels.
The values in probabilities are normalized scores over the supplied labels. They are not calibrated correctness estimates, and label order can change the prediction. See the guide’s current limits.
images holds at most one base64 image data URL. The image is placed ahead of the state.
videos holds at most one base64 MP4 data URL, up to 10 MiB, 30 seconds, and 1920 x 1080 pixels. Four frames are sampled and audio is not processed. This is a dgemma extension and is not part of the base request shape. Use a raw JSON request if your HTTP client does not expose the field.
Send a model that GET /typesafe/v1/models returns for your API key. dgemma is served through this route and is not available on the chat completions routes. A chat model on this route returns a validation error. See Models & Pricing.
Optional dgemma extension: one inline MP4, up to 10 MiB, 30 seconds and 1920 x 1080 pixels. Four frames are sampled; audio is not processed. Cannot be combined with images. Use a raw JSON request if your SDK does not expose this field.
Maximum array length: 1
Pattern: ^data:video/mp4;base64,
Response
A decision with per-question answers and probabilities.
The response is of type object.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Confidential AI API: Secure LLM Inference at Scale | Prem","colors":{"primary":"#5473BE","light":"#6B87C7","dark":"#4055BF"},"logo":{"light":"https://mintcdn.com/pcci-docs/mrB5JRRZ363u53KU/images/logo/light.svg?fit=max\u0026auto=format\u0026n=mrB5JRRZ363u53KU\u0026q=85\u0026s=7b017ddec6cf9e8ffa387c65ac5dbb79","dark":"https://mintcdn.com/pcci-docs/mrB5JRRZ363u53KU/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=mrB5JRRZ363u53KU\u0026q=85\u0026s=79f520aab4ec2521f89de2daa36ce0d4"},"favicon":{"light":"https://mintcdn.com/pcci-docs/sZ7VgIlZ81owdj52/images/favicon.light.svg?fit=max\u0026auto=format\u0026n=sZ7VgIlZ81owdj52\u0026q=85\u0026s=0b446e7caeab6f2c922b8d56c6a7bda0","dark":"https://mintcdn.com/pcci-docs/sZ7VgIlZ81owdj52/images/favicon.dark.svg?fit=max\u0026auto=format\u0026n=sZ7VgIlZ81owdj52\u0026q=85\u0026s=2803e8629cf0148a397ce03a67b281d6"},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"links":[{"href":"https://docs.prem.io/contact-us","label":"Contact Us"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.prem.io"}},"footer":{"socials":{}},"seo":{"metatags":{"og:image":"/images/og.png","og:title":"Confidential AI API: Secure LLM Inference at Scale | Prem","og:description":"Build on Prem's confidential AI APIs: secure LLM inference with end-to-end encryption, chat completions, and audio transcription. Get your API keys in minutes.","twitter:title":"Confidential AI API: Secure LLM Inference at Scale | Prem","twitter:description":"Build on Prem's confidential AI APIs: secure LLM inference with end-to-end encryption, chat completions, and audio transcription. Get your API keys in minutes.","twitter:image":"/images/og.png"}},"fonts":{"heading":{"family":"Aeonik Pro","weight":500,"source":"fonts/AeonikPro-Medium.woff2","format":"woff2"},"body":{"family":"Inter"}},"styling":{"codeblocks":"system","latex":false},"integrations":{"gtm":{"tagId":"GTM-M8XDSTLM"}},"contextual":{"options":["chatgpt","claude","copy","view","mcp"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pcci-docs","hasAudioNarration":false,"actualSubdomain":"pcci-docs","customDomains":["docs.prem.io"],"gitSource":{"type":"github","owner":"premai-io","repo":"pcci-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae86e460522e59c033b5186","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"API Reference","count":17},{"language":"default","tag":"Get Started","count":9},{"language":"default","tag":"Core Concepts","count":9},{"language":"default","tag":"Endpoints","count":7},{"language":"default","tag":"API Keys","count":6},{"language":"default","tag":"Billing","count":4},{"language":"default","tag":"Support","count":4},{"language":"default","tag":"Handling Errors","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","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":"rbac-expansion","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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/zdr-decisions","slug":"/api-reference/zdr-decisions","pageMetadata":{"title":"Decisions","sidebarTitle":"Decisions (TypeSafe-compatible)","description":"Answer typed decision questions with probabilities over a TypeSafe-compatible API.","openapi":"post /typesafe/v1/systemone","href":"/api-reference/zdr-decisions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Answer typed decision questions with probabilities over a TypeSafe-compatible API.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`zero-data-retention`,children:`Zero Data Retention`}),`\n`,_jsx(_components.p,{children:`This is a Zero Data Retention route. Prem sends the request to a trusted partner. Prem does not keep your prompts or completions, and the partner does not keep them.`}),`\n`,_jsxs(_components.p,{children:[`Your content is plaintext at the Prem API Gateway and at the partner. There is no client-side encryption and no Trusted Execution Environment.\nSee `,_jsx(_components.a,{href:`/zdr/comparison`,children:`ZDR vs Confidential`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`base-url`,children:`Base URL`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://gateway.prem.io/typesafe/v1/systemone`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Authenticate with a standard Prem API key in the `,_jsx(_components.code,{children:`Authorization: Bearer`}),` header. The key must have the `,_jsx(_components.code,{children:`chats.completion`}),` scope. No client KEK is used on this route.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://gateway.prem.io/typesafe/v1/systemone`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PREM_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"model\": \"dgemma\", \"state\": \"x\", \"questions\": {\"a\": {\"type\": \"noul\", \"instructions\": \"y\"}}}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-shape`,children:`Request shape`}),`\n`,_jsxs(_components.p,{children:[`The request uses a TypeSafe-compatible API, so the official `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@typesafe-ai/sdk`,children:`TypeSafe client`}),` works against this route. Set its base URL to `,_jsx(_components.code,{children:`https://gateway.prem.io/typesafe`}),`. The client appends `,_jsx(_components.code,{children:`/v1/systemone`}),` and `,_jsx(_components.code,{children:`/v1/models`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`choice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`noul`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`score`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TypeSafeClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@typesafe-ai/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TypeSafeClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PREM_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://gateway.prem.io/typesafe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` defaultModel:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dgemma\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`systemOne`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` state:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Customer says: 'I was charged twice for one subscription this month.'\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` questions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` category:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` choice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"What is this ticket about?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`technical:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`other:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` urgent:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` noul`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Is this request urgent?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` severity:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` score`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"How severe is this issue?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not severe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mild\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"moderate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"severe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"critical\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`category`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`choice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`urgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`noul`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`severity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`score`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`It is not the OpenAI Chat Completions shape, so an OpenAI client does not work against this route.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`yes`}),_jsxs(_components.td,{children:[`Model name from `,_jsx(_components.code,{children:`GET /typesafe/v1/models`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The context the questions are asked about. A string, object, array, number, boolean, or null.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`questions`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`A map of question id to a typed question.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`images`})}),_jsx(_components.td,{children:`no`}),_jsx(_components.td,{children:`At most one base64 image data URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`videos`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`At most one base64 MP4 data URL. A `,_jsx(_components.code,{children:`dgemma`}),` extension.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`samples`})}),_jsx(_components.td,{children:`no`}),_jsx(_components.td,{children:`Number of reads to average.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`steps`})}),_jsx(_components.td,{children:`no`}),_jsx(_components.td,{children:`Number of denoising steps.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider`})}),_jsx(_components.td,{children:`no`}),_jsx(_components.td,{children:`Pin the request to one of the model’s configured backends.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Each question carries `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`instructions`}),`, and `,_jsx(_components.code,{children:`criteria`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`criteria`})}),_jsx(_components.th,{children:`Answer field`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`choice`})}),_jsx(_components.td,{children:`A map of 1 to 26 labels to descriptions`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`choice`}),`, `,_jsx(_components.code,{children:`probabilities`}),`, `,_jsx(_components.code,{children:`confidence`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})}),_jsx(_components.td,{children:`Optional. Descriptions for the two outcomes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsx(_components.td,{children:`An ordered list of 2 to 10 levels`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`score`}),`, `,_jsx(_components.code,{children:`legend`}),`, `,_jsx(_components.code,{children:`probabilities`}),`, `,_jsx(_components.code,{children:`confidence`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-shape`,children:`Response shape`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`The resolved model name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`answers`})}),_jsx(_components.td,{children:`One entry per question id, keyed by the id that you sent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`input_tokens`}),` and `,_jsx(_components.code,{children:`output_tokens`}),` for the request.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`diagnostics`})}),_jsx(_components.td,{children:`Engine detail for the call. Informational, and it can change.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.code,{children:`answers`}),` by your own question ids. A `,_jsx(_components.code,{children:`noul`}),` answer puts its scalar in `,_jsx(_components.code,{children:`noul`}),`; a `,_jsx(_components.code,{children:`noul`}),` answer has no `,_jsx(_components.code,{children:`probabilities`}),` field. A `,_jsx(_components.code,{children:`score`}),` answer reports the probability-weighted mean over the zero-indexed levels.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The values in `,_jsx(_components.code,{children:`probabilities`}),` are normalized scores over the supplied labels. They are not calibrated correctness estimates, and label order can change the prediction. See the guide’s `,_jsx(_components.a,{href:`/guides/decisions#current-limits`,children:`current limits`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`media-input`,children:`Media input`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`images`}),` or `,_jsx(_components.code,{children:`videos`}),`, not both in one request.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`images`}),` holds at most one base64 image data URL. The image is placed ahead of the state.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`videos`}),` holds at most one base64 MP4 data URL, up to 10 MiB, 30 seconds, and 1920 x 1080 pixels. Four frames are sampled and audio is not processed. This is a `,_jsx(_components.code,{children:`dgemma`}),` extension and is not part of the base request shape. Use a raw JSON request if your HTTP client does not expose the field.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`streaming`,children:`Streaming`}),`\n`,_jsxs(_components.p,{children:[`This route is non-streaming. A `,_jsx(_components.code,{children:`stream`}),` field is not supported. The call returns one JSON object.`]}),`\n`,_jsx(Heading,{level:`2`,id:`model-availability`,children:`Model availability`}),`\n`,_jsxs(_components.p,{children:[`Send a model that `,_jsx(_components.code,{children:`GET /typesafe/v1/models`}),` returns for your API key. `,_jsx(_components.code,{children:`dgemma`}),` is served through this route and is not available on the chat completions routes. A chat model on this route returns a validation error. See `,_jsx(_components.a,{href:`/models-and-pricing`,children:`Models \u0026 Pricing`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Up to 16 questions per request.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`choice`}),` holds 1 to 26 criteria. `,_jsx(_components.code,{children:`score`}),` holds 2 to 10 levels.`]}),`\n`,_jsx(_components.li,{children:`At most one image or one video per request.`}),`\n`,_jsx(_components.li,{children:`Questions are independent. One question cannot read another question or its answer.`}),`\n`,_jsxs(_components.li,{children:[`Concurrent requests per key follow your `,_jsx(_components.a,{href:`/tiers#concurrent-requests`,children:`tier`}),`; above that limit you get a 429.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Decisions guide`,icon:`list-check`,href:`/guides/decisions`,arrow:`true`,children:_jsx(_components.p,{children:`Worked examples for each question type.`})}),_jsx(Card,{title:`ZDR security boundary`,icon:`shield-halved`,href:`/zdr/security-boundary`,arrow:`true`,children:_jsx(_components.p,{children:`What Prem records and what the partner records.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Decisions","sidebarTitle":"Decisions (TypeSafe-compatible)","description":"Answer typed decision questions with probabilities over a TypeSafe-compatible API.","openapi":"post /typesafe/v1/systemone","href":"/api-reference/zdr-decisions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Zero Data Retention","slug":"zero-data-retention","depth":2,"children":[]},{"title":"Base URL","slug":"base-url","depth":2,"children":[]},{"title":"Request shape","slug":"request-shape","depth":2,"children":[]},{"title":"Response shape","slug":"response-shape","depth":2,"children":[]},{"title":"Media input","slug":"media-input","depth":2,"children":[]},{"title":"Streaming","slug":"streaming","depth":2,"children":[]},{"title":"Model availability","slug":"model-availability","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/pcci-docs/399ffb6b0ae5cab6/jsonld.js"],"openApiReferenceData":{"operation":{"summary":"Create a structured decision","description":"Answer typed decision questions with probabilities over a TypeSafe-compatible API.","operationId":"createSystemOneDecision","tags":["Inference","dev-api"],"security":["5ff23d93-b341-4006-9b68-b06156416f27"],"requestBody":"e055210b-a029-4bab-80ad-ca53ad60e191","responses":{"200":"d33bc2f7-a557-4f07-90f2-a92431cab31d","400":"a903e1ab-1fe1-4149-a518-58a6c7036623","401":"970f4f0d-0c56-49e1-ad59-fab67be25a69","403":"8fdd60fd-aa00-463e-a5e7-84300314903b","404":"577e98b2-02ba-4db1-8bfe-d8afdcce7320","429":"aa5c6a5c-c40f-4c5e-bda4-378b13ded2a9","502":"a7f52bcb-d21a-4bed-9cec-687f0f8406cc","503":"0375db13-964c-4d64-a645-1379b4d79a1b"},"method":"post","type":"path","servers":["5cc3bc00-b676-42ab-9eb4-8ae7dc75c0c1"],"path":"/typesafe/v1/systemone","baseUrlOptions":["https://gateway.prem.io"],"title":"Create a structured decision","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"SystemOne decision request.","properties":{"model":{"type":"string","description":"Model name, as listed by `GET /typesafe/v1/models`.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"state":{"oneOf":[{"type":"string","description":"Context the questions are asked about.","isRequired":true,"uniqueKey":"state.oneOf.0","typeLabel":"string"},{"type":"object","description":"Context the questions are asked about.","isRequired":true,"uniqueKey":"state.oneOf.1","typeLabel":"object"},{"type":"array","description":"Context the questions are asked about.","isRequired":true,"uniqueKey":"state.oneOf.2","typeLabel":"array"},{"type":"number","description":"Context the questions are asked about.","isRequired":true,"uniqueKey":"state.oneOf.3","typeLabel":"number"},{"type":"boolean","description":"Context the questions are asked about.","isRequired":true,"uniqueKey":"state.oneOf.4","typeLabel":"boolean"},{"type":"null","description":"Context the questions are asked about.","isRequired":true,"uniqueKey":"state.oneOf.5","typeLabel":"null"}],"isRequired":true,"uniqueKey":"state","typeLabel":"string | object | array | number | boolean | null"},"questions":{"type":"object","description":"Map of question id to a typed question.","additionalProperties":{"type":"object","uniqueKey":"questions.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"questions","typeLabel":"object"},"images":{"type":"array","description":"Optional. At most one base64 image data URL.","items":{"type":"string","uniqueKey":"images.items.[INDEX]","typeLabel":"string"},"uniqueKey":"images","typeLabel":"string[]"},"samples":{"type":"integer","uniqueKey":"samples","typeLabel":"integer"},"steps":{"type":"integer","uniqueKey":"steps","typeLabel":"integer"},"provider":{"type":"string","description":"Optional. Pin the request to one of the model's configured backends. Omit to let the platform choose.","uniqueKey":"provider","typeLabel":"string"},"videos":{"type":"array","maxItems":1,"description":"Optional dgemma extension: one inline MP4, up to 10 MiB, 30 seconds and 1920 x 1080 pixels. Four frames are sampled; audio is not processed. Cannot be combined with images. Use a raw JSON request if your SDK does not expose this field.","items":{"type":"string","pattern":"^data:video/mp4;base64,","example":"data:video/mp4;base64,\u003cbase64-encoded-mp4>","uniqueKey":"videos.items.[INDEX]","typeLabel":"string"},"uniqueKey":"videos","typeLabel":"string[]"}},"required":["model","state","questions"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","state":"\u003cstring>","questions":{},"images":["\u003cstring>"],"samples":123,"steps":123,"provider":"\u003cstring>","videos":["data:video/mp4;base64,\u003cbase64-encoded-mp4>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"d33bc2f7-a557-4f07-90f2-a92431cab31d":{"description":"A decision with per-question answers and probabilities.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"a903e1ab-1fe1-4149-a518-58a6c7036623":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","enum":[400,401,403,404,429,502,503],"description":"Status code of the response","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"required":["status","error","message","env","log","support_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":400,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"970f4f0d-0c56-49e1-ad59-fab67be25a69":{"description":"Access token is missing or invalid","content":{"application/json":{"schema":{"type":"object","required":["status","error","message","env","log","support_id"],"properties":{"status":{"type":"integer","description":"Status code of the response","enum":[401],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":401,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8fdd60fd-aa00-463e-a5e7-84300314903b":{"description":"You do not have the required permissions to access this resource","content":{"application/json":{"schema":{"type":"object","required":["status","error","message","env","log","support_id"],"properties":{"status":{"type":"integer","description":"Status code of the response","enum":[403],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":403,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"577e98b2-02ba-4db1-8bfe-d8afdcce7320":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","required":["status","error","message","env","log","support_id"],"properties":{"status":{"type":"integer","description":"Status code of the response","enum":[404],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":404,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"aa5c6a5c-c40f-4c5e-bda4-378b13ded2a9":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","enum":[400,401,403,404,429,502,503],"description":"Status code of the response","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"required":["status","error","message","env","log","support_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":400,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a7f52bcb-d21a-4bed-9cec-687f0f8406cc":{"description":"Upstream service failed","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","enum":[400,401,403,404,429,502,503],"description":"Status code of the response","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"required":["status","error","message","env","log","support_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":400,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"0375db13-964c-4d64-a645-1379b4d79a1b":{"description":"Service temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","enum":[400,401,403,404,429,502,503],"description":"Status code of the response","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cinteger>"},"error":{"oneOf":[{"type":"string","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","examples":["Some error message"],"description":"Error message of the response, human readable","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | null"},"message":{"type":"null","isRequired":true,"uniqueKey":"message","typeLabel":"null"},"env":{"type":"string","enum":["development","production"],"description":"API environment","isRequired":true,"uniqueKey":"env","typeLabel":"enum\u003cstring>"},"log":{"oneOf":[{"type":"string","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.0","typeLabel":"string"},{"type":"object","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.1","typeLabel":"object"},{"type":"null","examples":[{"request_id":"req_1234567890"},"Some pertinent log message"],"description":"Useful informaiton, not always present, to debug the response","isRequired":true,"uniqueKey":"log.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"log","typeLabel":"string | object | null"},"support_id":{"oneOf":[{"type":"string","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","examples":["support_uuidv7-something-else"],"description":"Support ID linked to the response, used to identify it when talking with our team","isRequired":true,"uniqueKey":"support_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"support_id","typeLabel":"string\u003cuuid> | null"},"data":{"oneOf":[{"type":"object","description":"Response data containing the requested object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","description":"Response data containing the requested object","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"validator":{"oneOf":[{"type":"object","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.0","typeLabel":"object"},{"type":"array","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.1","typeLabel":"array"},{"type":"null","examples":[{"email":"Invalid email address","password":"Password is required"}],"description":"Validator response object, each key is the field name and value is the error message","uniqueKey":"validator.oneOf.2","typeLabel":"null"}],"uniqueKey":"validator","typeLabel":"object | array | null"}},"required":["status","error","message","env","log","support_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":400,"error":"Some error message","message":null,"env":"development","log":{"request_id":"req_1234567890"},"support_id":"support_uuidv7-something-else","data":{},"validator":{"email":"Invalid email address","password":"Password is required"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"5ff23d93-b341-4006-9b68-b06156416f27":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Send your access token as header Authorization: Bearer {accessToken}","scopes":[]},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Your API key that starts with sk_live or sk_test. You can create yours at go.prem.io/api-keys.","scopes":[]}}},"servers":{"5cc3bc00-b676-42ab-9eb4-8ae7dc75c0c1":{"url":"https://gateway.prem.io","description":"Production API server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Send your access token as header Authorization: Bearer {accessToken}","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your access token as header Authorization: Bearer {accessToken}","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"},{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"Your API key that starts with sk_live or sk_test. You can create yours at go.prem.io/api-keys.","scopes":[]},"schema":{"title":"Authorization","type":"string","description":"Your API key that starts with sk_live or sk_test. You can create yours at go.prem.io/api-keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"BearerAuth \u0026 ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"pcci-docs","siteName":"Confidential AI API: Secure LLM Inference at Scale | Prem","title":"Confidential AI API: Secure LLM Inference at Scale | Prem","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T18:24:03.098Z","originalFileLocation":"api-reference/zdr-decisions.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=\"Answer typed decision questions with probabilities over a TypeSafe-compatible API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Confidential AI API: Secure LLM Inference at Scale | Prem\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_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=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Confidential AI API: Secure LLM Inference at Scale | Prem\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build on Prem\u0026#x27;s confidential AI APIs: secure LLM inference with end-to-end encryption, chat completions, and audio transcription. Get your API keys in minutes.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Confidential AI API: Secure LLM Inference at Scale | Prem\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.prem.io/api-reference/zdr-decisions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pcci-docs.mintlify.site/images/og.png\">\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=\"Confidential AI API: Secure LLM Inference at Scale | Prem\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build on Prem\u0026#x27;s confidential AI APIs: secure LLM inference with end-to-end encryption, chat completions, and audio transcription. Get your API keys in minutes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pcci-docs.mintlify.site/images/og.png\">\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=\"/mintlify-assets/_mintlify/favicons/pcci-docs/n-sFaqK0eHjogIpf/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Confidential AI API: Secure LLM Inference at Scale | Prem\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5473BE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.prem.io/api-reference/zdr-decisions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/zdr-decisions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.prem.io/#organization\",\"name\":\"Confidential AI API: Secure LLM Inference at Scale | Prem\",\"url\":\"https://docs.prem.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pcci-docs/mrB5JRRZ363u53KU/images/logo/light.svg?fit=max\u0026auto=format\u0026n=mrB5JRRZ363u53KU\u0026q=85\u0026s=7b017ddec6cf9e8ffa387c65ac5dbb79\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.prem.io#website\",\"name\":\"Confidential AI API: Secure LLM Inference at Scale | Prem\",\"url\":\"https://docs.prem.io\",\"publisher\":{\"@id\":\"https://docs.prem.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.prem.io/api-reference/zdr-decisions#webpage\",\"url\":\"https://docs.prem.io/api-reference/zdr-decisions\",\"name\":\"Decisions\",\"description\":\"Answer typed decision questions with probabilities over a TypeSafe-compatible API.\",\"dateModified\":\"2026-10-29T18:24:03.098Z\",\"isPartOf\":{\"@id\":\"https://docs.prem.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.prem.io/api-reference/zdr-decisions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.prem.io/api-reference/zdr-decisions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.prem.io/api-reference/chat-completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Decisions\",\"item\":\"https://docs.prem.io/api-reference/zdr-decisions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.prem.io/api-reference/zdr-decisions#apireference\",\"headline\":\"Decisions\",\"name\":\"Decisions\",\"description\":\"Answer typed decision questions with probabilities over a TypeSafe-compatible API.\",\"url\":\"https://docs.prem.io/api-reference/zdr-decisions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.prem.io/api-reference/zdr-decisions#webpage\"},\"image\":\"https://docs.prem.io/images/og.png\",\"dateModified\":\"2026-10-29T18:24:03.098Z\",\"publisher\":{\"@id\":\"https://docs.prem.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.prem.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Confidential AI API: Secure LLM Inference at Scale | Prem\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Confidential AI API: Secure LLM Inference at Scale | Prem","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"anchor":"Guides","icon":"compass","pages":[{"title":"Guides","href":"/agents"}]},{"anchor":"API Reference","icon":"code","groups":[{"group":"Endpoints","icon":"plug","pages":[{"openapi":"post /rvenc/chat/completions","title":"Encrypted Chat Completions (RVENC)","href":"/api-reference/chat-completions"},{"openapi":"post /openai/chat/completions","title":"Create chat completion (OpenAI-compatible)","href":"/api-reference/zdr-chat-completions"},{"openapi":"post /rvenc/audio/transcriptions","title":"Encrypted Audio Transcriptions (RVENC)","href":"/api-reference/audio-transcriptions"},{"openapi":"post /rvenc/audio/translations","title":"Encrypted Audio Translations (RVENC)","href":"/api-reference/audio-translations"},{"openapi":"get /rvenc/models","title":"List available models for confidential inference","href":"/api-reference/list-models"},{"openapi":"get /openai/models","title":"List available models for standard inference","description":"Get a list of models available for standard (OpenAI-compatible) inference. The response follows the OpenAI models list shape.","href":"/api-reference/zdr-list-models"},{"title":"Decisions","sidebarTitle":"Decisions (TypeSafe-compatible)","openapi":"post /typesafe/v1/systemone","href":"/api-reference/zdr-decisions"}]},{"group":"API Keys","icon":"key","pages":[{"openapi":"get /developers/api_keys/{id}","title":"Get an API key","description":"Get details of a specific API key by ID","href":"/api-reference/api-keys/get-api-key"},{"openapi":"get /analytics/api_keys","title":"Get API key analytics","href":"/api-reference/api-keys/get-api-key-analytics"},{"openapi":"get /developers/api_keys/scopes","title":"List API key scopes","href":"/api-reference/api-keys/list-api-key-scopes"},{"openapi":"get /developers/api_keys","title":"List API keys","href":"/api-reference/api-keys/list-api-keys"},{"openapi":"get /developers/api_keys/requests/{id}","title":"Get API key request","href":"/api-reference/api-keys/get-api-key-request"},{"openapi":"post /developers/api_keys/requests","title":"List API key requests","href":"/api-reference/api-keys/list-api-key-requests"}]},{"group":"Billing","icon":"credit-card","pages":[{"title":"Balance","sidebarTitle":"Balance","icon":"wallet","href":"/billing/balance"},{"title":"Limits","sidebarTitle":"Limits","icon":"gauge","href":"/billing/limits"},{"title":"Payment","sidebarTitle":"Payment","icon":"credit-card","href":"/billing/payment"},{"title":"Usage","sidebarTitle":"Usage","icon":"chart-line","href":"/billing/usage"}]}]},{"anchor":"Support","icon":"life-ring","pages":[{"title":"Support","href":"/glossary"}]}]},"basePath":"","title":"Confidential AI API: Secure LLM Inference at Scale | Prem","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}