import base64, pathlibfrom typesafe_sdk import Choice, Noul, Score, TypeSafeClientclient = TypeSafeClient( api_key="<VLMRUN_API_KEY>", base_url="https://gateway.vlm.run/typesafe", compression=False,)page = base64.b64encode(pathlib.Path("invoice-page.jpg").read_bytes()).decode()result = client.system_one( state="Answer about the attached page.", questions={ "kind": Choice( instructions="What kind of document is this page from?", criteria={"invoice": None, "receipt": None, "contract": None, "other": None}, ), "has_total": Noul(instructions="Is a total amount due visible on the page?"), "legibility": Score( instructions="How legible is the text?", criteria=["unreadable", "partly legible", "clear"], ), }, extra_body={ "content": [ { "type": "image_url", "image_url": { "url": f"data:image/jpeg;base64,{page}", "detail": "high", }, } ] }, model="google/diffusiongemma-26b-a4b-it",)print(result.choices["kind"].choice, result.usage.input_tokens)
import { readFileSync } from "node:fs";import { choice, noul, score, TypeSafeClient } from "@typesafe-ai/sdk";const client = new TypeSafeClient({ apiKey: process.env.VLMRUN_API_KEY, baseURL: "https://gateway.vlm.run/typesafe", defaultModel: "google/diffusiongemma-26b-a4b-it", compression: false,});const page = readFileSync("invoice-page.jpg").toString("base64");const request = { state: "Answer about the attached page.", questions: { kind: choice("What kind of document is this page from?", { invoice: null, receipt: null, contract: null, other: null, }), has_total: noul("Is a total amount due visible on the page?"), legibility: score("How legible is the text?", [ "unreadable", "partly legible", "clear", ]), }, content: [ { type: "image_url", image_url: { url: `data:image/jpeg;base64,${page}`, detail: "high" } }, ],};const { answers, usage } = await client.systemOne(request);console.log(answers.kind.choice, usage.input_tokens);
vlmrun gw s1 -s "Answer about the attached page." invoice-page.jpg --detail high \ -m google/diffusiongemma-26b-a4b-it \ --choice kind="invoice|receipt|contract|other" \ --noul has_total="Is a total amount due visible on the page?" \ --score legibility="unreadable|partly legible|clear" --json
IMAGE=$(base64 -w0 invoice-page.jpg)curl https://gateway.vlm.run/typesafe/v1/systemone \ -H "Authorization: Bearer $VLMRUN_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<JSON{ "model": "google/diffusiongemma-26b-a4b-it", "state": "Answer about the attached page.", "content": [ {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,$IMAGE", "detail": "high"}} ], "questions": { "kind": { "type": "choice", "instructions": "What kind of document is this page from?", "criteria": {"invoice": null, "receipt": null, "contract": null, "other": null} }, "has_total": {"type": "noul", "instructions": "Is a total amount due visible on the page?"}, "legibility": { "type": "score", "instructions": "How legible is the text?", "criteria": ["unreadable", "partly legible", "clear"] } }}JSON
{ "detail": [ { "type": "dict_type", "loc": ["body", "questions"], "msg": "Input should be a valid dictionary", "input": "bad" } ]}
TypeSafe Compatible API
System One
Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs
POST
/
typesafe
/
v1
/
systemone
import base64, pathlibfrom typesafe_sdk import Choice, Noul, Score, TypeSafeClientclient = TypeSafeClient( api_key="<VLMRUN_API_KEY>", base_url="https://gateway.vlm.run/typesafe", compression=False,)page = base64.b64encode(pathlib.Path("invoice-page.jpg").read_bytes()).decode()result = client.system_one( state="Answer about the attached page.", questions={ "kind": Choice( instructions="What kind of document is this page from?", criteria={"invoice": None, "receipt": None, "contract": None, "other": None}, ), "has_total": Noul(instructions="Is a total amount due visible on the page?"), "legibility": Score( instructions="How legible is the text?", criteria=["unreadable", "partly legible", "clear"], ), }, extra_body={ "content": [ { "type": "image_url", "image_url": { "url": f"data:image/jpeg;base64,{page}", "detail": "high", }, } ] }, model="google/diffusiongemma-26b-a4b-it",)print(result.choices["kind"].choice, result.usage.input_tokens)
import { readFileSync } from "node:fs";import { choice, noul, score, TypeSafeClient } from "@typesafe-ai/sdk";const client = new TypeSafeClient({ apiKey: process.env.VLMRUN_API_KEY, baseURL: "https://gateway.vlm.run/typesafe", defaultModel: "google/diffusiongemma-26b-a4b-it", compression: false,});const page = readFileSync("invoice-page.jpg").toString("base64");const request = { state: "Answer about the attached page.", questions: { kind: choice("What kind of document is this page from?", { invoice: null, receipt: null, contract: null, other: null, }), has_total: noul("Is a total amount due visible on the page?"), legibility: score("How legible is the text?", [ "unreadable", "partly legible", "clear", ]), }, content: [ { type: "image_url", image_url: { url: `data:image/jpeg;base64,${page}`, detail: "high" } }, ],};const { answers, usage } = await client.systemOne(request);console.log(answers.kind.choice, usage.input_tokens);
vlmrun gw s1 -s "Answer about the attached page." invoice-page.jpg --detail high \ -m google/diffusiongemma-26b-a4b-it \ --choice kind="invoice|receipt|contract|other" \ --noul has_total="Is a total amount due visible on the page?" \ --score legibility="unreadable|partly legible|clear" --json
IMAGE=$(base64 -w0 invoice-page.jpg)curl https://gateway.vlm.run/typesafe/v1/systemone \ -H "Authorization: Bearer $VLMRUN_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<JSON{ "model": "google/diffusiongemma-26b-a4b-it", "state": "Answer about the attached page.", "content": [ {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,$IMAGE", "detail": "high"}} ], "questions": { "kind": { "type": "choice", "instructions": "What kind of document is this page from?", "criteria": {"invoice": null, "receipt": null, "contract": null, "other": null} }, "has_total": {"type": "noul", "instructions": "Is a total amount due visible on the page?"}, "legibility": { "type": "score", "instructions": "How legible is the text?", "criteria": ["unreadable", "partly legible", "clear"] } }}JSON
{ "detail": [ { "type": "dict_type", "loc": ["body", "questions"], "msg": "Input should be a valid dictionary", "input": "bad" } ]}
Returns a calibrated probability for each question about state, and a typed value for each field to extract. For the concepts, see System One. To migrate a client, see TypeSafe SDK Compatibility. Authentication is optional: see Authentication and Rate Limits.
A served id or one of its aliases. An id the deployment does not serve is a 404. See Models.
state
string | object | array
Yes
What the questions are about. Objects and arrays are sent as JSON.
questions
object
Yes
A map of question id to question, at least one. Ids key the answers and never reach the model.
content
array | string
No
This request’s media as content parts. A bare string is one text part.
assets
object
No
Images keyed by the reference that stands for each. See Assets. Images or a document in content with assets is a 422.
reasoning_effort
string
No
Generative engines only: none (default), minimal, low, medium, or high, for 0, 32, 64, 128, or 256 reasoning tokens. A diffusion engine rejects it with 422.
steps
integer
No
Diffusion engines only: denoise steps per read, 1 to 8. Default 1.
samples
integer
No
Noise draws to average, 1 to 32. Every draw is billed. Default: one read.
document_max_pages
integer
No
Pages of the request’s PDF to read, from the first, 1 to 16. Default 16. A larger value is a 422.
document_pages
array
No
Which PDF pages to read, 0-indexed: page indices or half-open [start, stop] ranges. A negative index counts from the end. Pages are read in the order given, up to document_max_pages. A selection with no page in the document is a 422. Same as on Chat Completions.
document_dpi
integer
No
Resolution the PDF’s pages are rendered at, 72 to 400. Default 96. Raise it for small or faint print.
A request takes at most 16 questions, of which at most 8 are box. A box needs an image in the request, from assets, an image_url part, or a PDF. A field’s id is the name the model writes its value under, so it is one line with no :.
The same PDF as document_url, in the OpenAI file shape. file_data is a data:application/pdf;base64, or http(s) URL. filename is optional.
Images or one document, never both. A PDF’s first document_max_pages pages (16 by default), or the pages document_pages selects, are rasterised at document_dpi (96 by default) and read as the request’s images. Sending both is a 422.
detail
Vision tokens per image or page
auto (default), high
280
low
70
One high or auto part sets every image and page in the request to 280 tokens.
assets maps a reference string to an image. The reference is replaced by the image wherever it appears inside a string of state, a question’s instructions, or its criteria. Object keys are never replaced. An asset that nothing references is a 422.
Field
Type
Description
type
"image"
Optional. Default image.
data_base64
string
The image bytes, base64-encoded, without a data: prefix.
format
"png" | "jpg" | "jpeg"
Required with data_base64.
part
string
The name of a multipart/form-data file part that holds the image. With both part and data_base64, part wins.
detail
"auto" | "low" | "high"
Optional. Same budgets as an image_url part. Default auto.
Assets count toward the same 8 images per request, 5 MB each. A reference is at most 1 KB.To upload instead of inlining, send multipart/form-data. Put the JSON body in a part named request and each image in the file part its asset names in part. Every file part must be claimed by one asset. Over plain JSON, part is a 422.
Prompt tokens across every read. Counts toward your quota.
usage.output_tokens
integer
0 on a diffusion read. Non-zero on a generative read, which writes the answer under a grammar, and on any field, whose value is written.
usage.input_tokens_details
object
cached_tokens, image_tokens, and text_tokens. Gateway extension. image_tokens follows the detail budget, since the engine reports no image and text split.
usage.reads
integer
Engine calls made: one per question group, times samples, plus one per box and one per field. Gateway extension.
usage.cost
number
USD at the model’s published rate, with cached tokens at the cache rate. At least $0.001 per call. Gateway extension.
The x-typesafe-request-id header matches the Gateway x-request-id. A decision is billed per read, and a rejected request bills nothing. See Pricing.
choice (the winning label), probabilities (label to probability), confidence.
score
score (the expected level, sum(i * p_i)), legend, probabilities, confidence.
box
box (top, bottom, left, right, each from 0 to 1 of the image, from the top-left corner), confidence.
text, number, date, list
value (the field’s type or null; a date is YYYY-MM-DD), confidence (probability of the value as returned), p_null (probability the state does not give the field), span (text: [start, end) of the value in a string state), spans (list of text: one per item).
confidence is 1 - H(p) / ln(K): 1 puts all mass on one label, and 0 is uniform. A box reports the mean over its four edges, each read to within a tenth of the image. Each box is one more read, counted in usage.reads.A field’s confidence is the probability of its value as written, and p_null is the probability that the state does not give it. Both are the model’s own. A value with a high p_null is a guess, and its confidence is low.
An invalid body, an unknown field, a schema the model cannot answer, a box with no image, or a bad or unreferenced asset. The body is {"detail": [{"type", "loc", "msg", "input"}]}.
404
not_found_error
model is not served on this route.
429
rate limit
The per-tier quota is exceeded.
502
api_error
The engine failed the read. Not billed. Retry.
503
api_error
The engine is down or busy. Sent with retry-after: 2.
529
overloaded_error
Too many reads are queued. Sent with retry-after: 1.
import base64, pathlibfrom typesafe_sdk import Choice, Noul, Score, TypeSafeClientclient = TypeSafeClient( api_key="<VLMRUN_API_KEY>", base_url="https://gateway.vlm.run/typesafe", compression=False,)page = base64.b64encode(pathlib.Path("invoice-page.jpg").read_bytes()).decode()result = client.system_one( state="Answer about the attached page.", questions={ "kind": Choice( instructions="What kind of document is this page from?", criteria={"invoice": None, "receipt": None, "contract": None, "other": None}, ), "has_total": Noul(instructions="Is a total amount due visible on the page?"), "legibility": Score( instructions="How legible is the text?", criteria=["unreadable", "partly legible", "clear"], ), }, extra_body={ "content": [ { "type": "image_url", "image_url": { "url": f"data:image/jpeg;base64,{page}", "detail": "high", }, } ] }, model="google/diffusiongemma-26b-a4b-it",)print(result.choices["kind"].choice, result.usage.input_tokens)
import { readFileSync } from "node:fs";import { choice, noul, score, TypeSafeClient } from "@typesafe-ai/sdk";const client = new TypeSafeClient({ apiKey: process.env.VLMRUN_API_KEY, baseURL: "https://gateway.vlm.run/typesafe", defaultModel: "google/diffusiongemma-26b-a4b-it", compression: false,});const page = readFileSync("invoice-page.jpg").toString("base64");const request = { state: "Answer about the attached page.", questions: { kind: choice("What kind of document is this page from?", { invoice: null, receipt: null, contract: null, other: null, }), has_total: noul("Is a total amount due visible on the page?"), legibility: score("How legible is the text?", [ "unreadable", "partly legible", "clear", ]), }, content: [ { type: "image_url", image_url: { url: `data:image/jpeg;base64,${page}`, detail: "high" } }, ],};const { answers, usage } = await client.systemOne(request);console.log(answers.kind.choice, usage.input_tokens);
vlmrun gw s1 -s "Answer about the attached page." invoice-page.jpg --detail high \ -m google/diffusiongemma-26b-a4b-it \ --choice kind="invoice|receipt|contract|other" \ --noul has_total="Is a total amount due visible on the page?" \ --score legibility="unreadable|partly legible|clear" --json
IMAGE=$(base64 -w0 invoice-page.jpg)curl https://gateway.vlm.run/typesafe/v1/systemone \ -H "Authorization: Bearer $VLMRUN_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<JSON{ "model": "google/diffusiongemma-26b-a4b-it", "state": "Answer about the attached page.", "content": [ {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,$IMAGE", "detail": "high"}} ], "questions": { "kind": { "type": "choice", "instructions": "What kind of document is this page from?", "criteria": {"invoice": null, "receipt": null, "contract": null, "other": null} }, "has_total": {"type": "noul", "instructions": "Is a total amount due visible on the page?"}, "legibility": { "type": "score", "instructions": "How legible is the text?", "criteria": ["unreadable", "partly legible", "clear"] } }}JSON
Images for this request, keyed by the reference that stands for each one. A reference is replaced by its image wherever it appears in the state, in a question's instructions or in its criteria; an asset nothing references is a 422.
One image in assets, named by the reference that stands for it.
The file rides inline in data_base64 (with format), or in the upload
part part names. With both, part wins. detail is this gateway's
addition and follows the same convention as an image_url part.
Media for this request, as OpenAI content parts: image_url (max 8, data:image/…;base64 or http(s), ≤5 MB each), or one file or document_url PDF whose first document_max_pages (≤16) pages are read as images. Text is read after the state.
{"type": "text", "text": ...} — appended after the state.
Which pages to read, 0-indexed: page indices or half-open [start, stop] ranges, negative counting from the end, read in the order given. Unset reads from the first page. document_max_pages caps the selection.
Jev's two counters, plus what the gateway bills for them.
cost is this gateway's addition. TypeSafe's decoder ignores a field it
does not model, so the official SDK still parses the response; a client that
reads the raw JSON (the vlmrun CLI) can show the price of a read.
What the prompt was made of, in the shape the chat route reports usage.
cached_tokens is the engine's own count (the schema prompt repeats, so a
warm replica serves most of it from the prefix cache). image_tokens is
derived from the budget this request applied, since the engine reports no
image/text split; text_tokens is the remainder.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VLM Run","description":"One API key for every visual model. Send a document or an image, get JSON back.","colors":{"primary":"#1F5ACA","light":"#4D8BFF","dark":"#102A56"},"logo":{"light":"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=fbea8392452b746e14273d7670a4f535","dark":"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon-white.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=e58c8973ce1978adf1ce6359665a916a"},"favicon":"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=fbea8392452b746e14273d7670a4f535","api":{"openapi":["https://api.vlm.run/openapi.json","https://gateway.vlm.run/openapi.json"],"params":{"expanded":"all"},"playground":{"display":"simple"},"examples":{"languages":["python","javascript","ruby","curl"]}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#FAFCFE","dark":"#010917"}},"navbar":{"links":[{"href":"mailto:support@vlm.run","label":"Contact"},{"href":"https://github.com/vlm-run/vlmrun-hub","label":"Hub"},{"href":"https://github.com/vlm-run/vlmrun-cookbook","label":"Cookbooks"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.vlm.run"}},"footer":{"socials":{"x":"https://x.com/vlmrun","github":"https://github.com/vlm-run/vlm-cookbook","linkedin":"https://www.linkedin.com/company/vlm-run"}},"seo":{"metatags":{"og:type":"website","og:site_name":"VLM Run","twitter:card":"summary_large_image","twitter:site":"@vlmrun"}},"fonts":{"heading":{"family":"Aeonik Pro","weight":400,"source":"fonts/AeonikPro-Regular.woff2","format":"woff2"},"body":{"family":"Aeonik Pro","weight":400,"source":"fonts/AeonikPro-Regular.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"dark-plus"}},"latex":true},"integrations":{"ga4":{"measurementId":"G-DKFNLZ8F83"}},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/autonomiai/0lq3Q9EPRCLt1zej/images/og-background.png?fit=max\u0026auto=format\u0026n=0lq3Q9EPRCLt1zej\u0026q=85\u0026s=010b9a1e01253f5f9d02474d89f85294"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"autonomiai","hasAudioNarration":false,"actualSubdomain":"autonomiai","customDomains":["docs.vlm.run"],"gitSource":{"type":"github","owner":"vlm-run","repo":"docs","deployBranch":"release","contentDirectory":"public","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeba7b8b69730464fcbc54a","collectionId":"7ec48334-0e58-430f-9672-59cb4c441dff","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeba7b8b69730464fcbc54a"},"entitlements":{},"buildId":"6aeba7b8b69730464fcbc54a","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Orion","count":42},{"language":"default","tag":"Developers","count":35},{"language":"default","tag":"Gateway","count":30},{"language":"default","tag":"API reference","count":26},{"language":"default","tag":"SDKs","count":24},{"language":"default","tag":"Orion API","count":15},{"language":"default","tag":"Skills","count":14},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Python","count":12},{"language":"default","tag":"Node.js","count":12}]},"assistantConfig":{},"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":"vite-origin","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--vlm-primary: #1F5ACA;--vlm-primary-hover: #1848A2;--vlm-primary-vivid: #1265FF;--vlm-primary-mid: #1F5ACA;--vlm-primary-dark: #1848A2;--vlm-primary-light: #4D8BFF;--vlm-primary-border: #234D9F;--vlm-primary-tint: #E0EAFA;--vlm-primary-badge: #EEF2F9;--vlm-navy: #102A56;--vlm-navy-dark: #010917;--vlm-navy-mid: #102255;--vlm-muted: #576782;--vlm-surface: #FAFCFE;--vlm-border: #E1ECFA;--vlm-dark-border: #182231;--vlm-toc-active: #274275;--vlm-cap-blue: rgb(100, 151, 246);--vlm-cap-green: rgb(185, 246, 100);--vlm-cap-purple: rgb(177, 118, 255);--vlm-shadow-btn:\n rgba(0, 0, 0, 0.20) 0px -2px 0px 0px inset,\n rgba(0, 0, 0, 0.20) 0px 1px 2px 0px}:root{--vlm-docs-version: \"Docs updated 2026-08-15\"}body{color:var(--vlm-navy);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{color:var(--vlm-navy);letter-spacing:0}#content>h2{margin-top:3rem;margin-bottom:1.5rem}#content>h3{margin-top:2.25rem;margin-bottom:1rem}#content>h4{margin-top:1.75rem;margin-bottom:0.75rem}#content>:is(h2,h3,h4):first-child{margin-top:0}#content>:is(h2,h3,h4)+table{margin-top:0}#content [data-table-wrapper=\"true\"]{margin-top:0;padding-top:0}#content [data-table-wrapper=\"true\"] table{margin-top:0}#content input.fold-rows{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"] tbody tr:nth-child(n+7){display:none}#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"]{position:relative}#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"]::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:2.75rem;background:linear-gradient(to bottom, transparent, #fff);pointer-events:none}#content label.fold-rows-label{display:flex;justify-content:center;margin-top:0.25rem;margin-bottom:1.5rem;font-size:0.75rem;font-weight:500;color:var(--vlm-muted);cursor:pointer}#content input.fold-rows:checked+[data-table-wrapper=\"true\"]+label.fold-rows-label .when-closed,#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"]+label.fold-rows-label .when-open{display:none}#content [data-component-part=\"tabs-list\"]{margin-top:1.75rem!important;gap:1.75rem!important}#content [data-component-part=\"tab-button\"]{padding-top:0.85rem!important;padding-bottom:0.7rem!important;border-bottom-width:2px!important;color:var(--vlm-muted)!important;font-size:1rem!important;font-weight:500!important;line-height:1.5rem!important}#content [data-component-part=\"tab-button\"]:hover{color:var(--vlm-navy)!important}#content [data-component-part=\"tab-button\"][data-active=\"true\"]{color:var(--vlm-navy)!important;border-bottom-color:var(--vlm-navy)!important}p,li{color:var(--vlm-muted);letter-spacing:-0.01em}#navigation-items .sidebar-group-header,#navigation-items .sidebar-group-header .sidebar-title{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--vlm-muted)}a{color:var(--vlm-primary);transition:color 200ms ease-out, opacity 200ms ease-out}a:hover{color:var(--vlm-primary-hover)}.prose a,article a{text-decoration-color:color-mix(in srgb, var(--vlm-primary) 35%, transparent);text-underline-offset:3px;transition:text-decoration-color 200ms ease-out, color 200ms ease-out}.prose a:hover,article a:hover{text-decoration-color:var(--vlm-primary)}#navbar a[href=\"https://app.vlm.run\"],.navbar a[href=\"https://app.vlm.run\"],header a[href=\"https://app.vlm.run\"]{border-radius:20px!important;border:1px solid var(--vlm-primary-border)!important;background-color:var(--vlm-primary-mid)!important;color:#fff!important;box-shadow:var(--vlm-shadow-btn);transition:transform 300ms ease-out,\n box-shadow 300ms ease-out,\n background-color 300ms ease-out,\n opacity 300ms ease-out}#navbar a[href=\"https://app.vlm.run\"]:hover,.navbar a[href=\"https://app.vlm.run\"]:hover,header a[href=\"https://app.vlm.run\"]:hover{transform:translateY(-1px);background-color:var(--vlm-primary-dark)!important;opacity:0.95}#navigation-items a,#sidebar a,nav[aria-label=\"Sidebar\"] a{color:var(--vlm-navy)}#navigation-items a:hover,#sidebar a:hover,nav[aria-label=\"Sidebar\"] a:hover{color:var(--vlm-primary)}#navigation-items a[aria-current=\"page\"],#navigation-items a[data-active=\"true\"],#sidebar a[aria-current=\"page\"],#sidebar a[data-active=\"true\"],nav[aria-label=\"Sidebar\"] a[aria-current=\"page\"]{color:var(--vlm-primary)!important;font-weight:500}#navigation-items li li>a,#navigation-items li li>div>a,#navigation-items li li>button,#navigation-items li li>div>button{padding-left:2.5rem!important}#navigation-items li li li>a,#navigation-items li li li>div>a,#navigation-items li li li>button,#navigation-items li li li>div>button{padding-left:3.5rem!important}#content-side-layout:has(#table-of-contents){width:max-content!important;max-width:13rem!important;margin-left:0!important;margin-right:0.75rem!important;padding-right:0!important;align-items:flex-end!important;flex:0 0 auto!important;box-sizing:border-box!important}@media (min-width: 1280px){#content-area{width:auto!important;max-width:none!important;flex:1 1 auto!important;margin-left:0!important;margin-right:0!important;padding-left:2rem!important;padding-right:2rem!important}#content-area:has(#content)>header,#content{width:100%;max-width:48rem;margin-left:auto!important;margin-right:auto!important}}#table-of-contents-layout{width:max-content!important;max-width:13rem!important;margin-left:auto!important;padding-left:0!important;padding-right:0!important}#table-of-contents{width:max-content!important;max-width:13rem!important}#content-side-layout:has(#table-of-contents) h2{font-family:'Aeonik Pro', ui-sans-serif, system-ui, sans-serif!important;font-size:0.8125rem!important;line-height:1.25rem!important;font-weight:500!important;letter-spacing:0.01em!important;color:var(--vlm-muted)!important}#table-of-contents-content a,#table-of-contents a{font-size:0.8125rem!important;line-height:1.25rem!important;color:var(--vlm-muted)!important}#content-area{width:auto!important;max-width:none!important}#content{max-width:48rem}#content li{text-wrap:pretty}#toc a[aria-current=\"true\"],#toc a[aria-current=\"location\"],#toc a[data-active=\"true\"],nav[aria-label=\"On this page\"] a[aria-current=\"true\"],nav[aria-label=\"On this page\"] a[aria-current=\"location\"],nav[aria-label=\"On this page\"] a[data-active=\"true\"],#table-of-contents a[aria-current=\"true\"],#table-of-contents a[aria-current=\"location\"],#table-of-contents a[data-active=\"true\"]{color:var(--vlm-toc-active)!important;font-weight:500;box-shadow:none!important;border:none!important;padding-left:0!important}.card,[class*=\"card\"][role=\"link\"],a.card{background-color:#ffffff;border:1px solid var(--vlm-border);border-radius:12px;transition:transform 300ms ease-out,\n border-color 300ms ease-out,\n box-shadow 300ms ease-out}.card:hover,[class*=\"card\"][role=\"link\"]:hover,a.card:hover{transform:translateY(-1px);border-color:var(--vlm-primary);box-shadow:0 4px 12px -4px color-mix(in srgb, var(--vlm-primary) 20%, transparent)}.card-demo{color:var(--vlm-primary-mid);background-color:var(--vlm-primary-tint);border-color:var(--vlm-primary-tint)}.callout-info,[role=\"note\"][data-type=\"info\"],[role=\"note\"][data-type=\"note\"]{background-color:var(--vlm-primary-badge);border-color:var(--vlm-border);color:var(--vlm-navy)}.callout-tip,[role=\"note\"][data-type=\"tip\"]{background-color:color-mix(in srgb, var(--vlm-cap-green) 18%, white);border-color:color-mix(in srgb, var(--vlm-cap-green) 45%, white);color:var(--vlm-navy)}pre,[class*=\"code-block\"] pre{border:0;border-radius:0;background:transparent}:not(pre)>code{background-color:#F0F2F5;color:var(--vlm-navy);padding:0.05rem 0.15rem;border-radius:4px;font-size:0.875em}#content a code,#header a code{color:inherit}#header .eyebrow{display:none}#content>:is(h2,h3,h4)+[data-table-wrapper]{margin-top:0!important;padding-top:0!important}#content>:is(h2,h3,h4)+[data-table-wrapper] table{margin-top:0}table{width:100%;margin:1.5rem 0;border:1px solid var(--vlm-border)!important;border-radius:6px;border-collapse:separate!important;border-spacing:0!important;background-color:#ffffff;font-size:0.875rem;color:var(--vlm-navy)}thead th{background-color:var(--vlm-surface);border:0!important;border-bottom:1px solid var(--vlm-border)!important;padding:0.7rem 1rem!important;font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--vlm-navy);vertical-align:middle}thead th .unit-help{display:inline-flex;align-items:center;justify-content:center;width:0.875rem;height:0.875rem;margin-left:0.35rem;border:1px solid var(--vlm-border);border-radius:999px;background:#fff;color:var(--vlm-muted);font-family:'Aeonik Pro', ui-sans-serif, system-ui, sans-serif;font-size:0.625rem;font-weight:600;letter-spacing:0;text-transform:none;line-height:1;text-decoration:none;vertical-align:1px;cursor:help}thead th button:has(.unit-help){display:inline-flex;align-items:center;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:0;text-transform:none;vertical-align:middle;cursor:help}thead tr:first-child th:first-child{border-top-left-radius:6px}thead tr:first-child th:last-child{border-top-right-radius:6px}tbody tr:last-child td:first-child{border-bottom-left-radius:6px}tbody tr:last-child td:last-child{border-bottom-right-radius:6px}thead tr+tr th{border-bottom:1px solid var(--vlm-border)!important;padding-top:0.5rem!important;padding-bottom:0.75rem!important;font-size:10.5px}thead th[align=\"left\"]{text-align:left}thead th[align=\"center\"]{text-align:center}thead th[align=\"right\"]{text-align:right}thead th code{background:transparent!important;color:var(--vlm-navy)!important;padding:0!important;font-size:inherit!important;letter-spacing:0.12em!important;text-transform:uppercase!important}tbody tr{background-color:#ffffff}tbody td{border:0!important;border-bottom:1px solid var(--vlm-border)!important;padding:0.7rem 1rem!important;vertical-align:middle;color:var(--vlm-navy);line-height:1.55}tbody td:has(br),tbody td:has(ul),tbody td:has(p){vertical-align:top}tbody td ul{margin:0;padding-left:1.25rem}tbody td li+li{margin-top:0.35em}tbody td li kbd{font-family:'Geist Mono', ui-monospace, monospace;font-weight:600;font-size:0.8125rem;line-height:1.3;letter-spacing:-0.01em;color:var(--vlm-navy);background:transparent;border:1px solid var(--vlm-border);padding:0.05rem 0.3rem;margin:0;border-radius:3px;white-space:nowrap;box-shadow:none!important;text-shadow:none;filter:none;-webkit-box-shadow:none!important}table code{white-space:nowrap}tbody tr:last-child td{border-bottom:0!important}thead th:first-child,tbody td:first-child{padding-left:1.125rem!important}thead th:last-child,tbody td:last-child{padding-right:1.125rem!important}.rotated-row-headers thead th:first-child,.rotated-row-headers tbody td:first-child{padding-left:0.5rem!important;padding-right:0.5rem!important}.rotated-row-headers tbody td:first-child{border-right:1px solid var(--vlm-border)!important}tbody td:first-child,tbody td[rowspan]+td{font-weight:500;color:var(--vlm-navy)}tbody td[align=\"center\"],tbody td[align=\"right\"]{font-weight:500;color:var(--vlm-navy)}table code{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:13px;font-weight:500}td[align=\"left\"]{text-align:left}td[align=\"center\"]{text-align:center}td[align=\"right\"]{text-align:right}tbody td code{background:transparent!important;color:inherit!important;padding:0!important;font-size:inherit!important;border-radius:0!important;font-weight:inherit!important}.accordion table,[data-accordion-content] table{margin:0.75rem 0;font-size:0.8125rem}.accordion tbody td,[data-accordion-content] tbody td,.accordion thead th,[data-accordion-content] thead th{padding:0.75rem 1rem!important}.accordion thead th:first-child,[data-accordion-content] thead th:first-child,.accordion tbody td:first-child,[data-accordion-content] tbody td:first-child{padding-left:1.25rem!important}.accordion thead th:last-child,[data-accordion-content] thead th:last-child,.accordion tbody td:last-child,[data-accordion-content] tbody td:last-child{padding-right:1.25rem!important}.gateway-models-catalog table{table-layout:fixed;width:100%;font-size:0.8125rem}.gateway-models-catalog thead th{padding:0.5rem 0.625rem!important;font-size:10px;letter-spacing:0.08em;line-height:1.35;white-space:normal;vertical-align:bottom}.gateway-models-catalog tbody td{padding:0.5rem 0.625rem!important;font-size:0.8125rem;line-height:1.45;vertical-align:top}.gateway-models-catalog thead th:first-child,.gateway-models-catalog tbody td:first-child{width:26%;padding-left:0.75rem!important;white-space:normal;word-break:break-word}.gateway-models-catalog thead th:nth-child(2),.gateway-models-catalog tbody td:nth-child(2){width:4.75rem;max-width:4.75rem;white-space:normal;word-break:break-word;hyphens:auto;text-align:center;font-size:0.75rem;line-height:1.35}.gateway-models-catalog table code{white-space:normal;word-break:break-word;font-size:0.75rem}.gateway-models-catalog tbody td:first-child a{word-break:break-word}.gateway-models-catalog thead th:last-child,.gateway-models-catalog tbody td:last-child{padding-right:0.75rem!important}html.dark table{background-color:transparent;border-color:var(--vlm-dark-border)!important}html.dark thead tr,html.dark thead tr th,html.dark tbody tr{background-color:transparent}html.dark thead th,html.dark tbody td{color:inherit;border-color:var(--vlm-dark-border)!important}.integration-hero{width:100%;aspect-ratio:1024 / 500;background-image:url('/assets/blog-backdrop.png');background-size:cover;background-position:center;border:1px solid var(--vlm-border);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:4%;margin:1.5rem 0 2rem;overflow:hidden}.integration-hero-tile{width:17.6%;aspect-ratio:1 / 1;background-color:rgba(255, 255, 255, 0.96);border:1px solid var(--vlm-border);border-radius:12px;box-shadow:0 1px 2px rgba(16, 42, 86, 0.04),\n 0 4px 12px rgba(31, 90, 202, 0.05);overflow:hidden}.integration-hero-tile{display:flex;align-items:center;justify-content:center}.integration-hero-tile img,.integration-hero-tile svg{display:block;width:60%;height:60%;max-width:60%;margin:0!important;object-fit:contain;object-position:center}.integration-hero-tile:has(img[alt=\"n8n\"]) img{width:90%;height:90%;max-width:90%}.integration-hero-tile:has(img[alt=\"Zapier\"]) img{width:56%;height:56%;max-width:56%}.integration-hero-tile:has(img[alt=\"MongoDB\"]) img{width:88%;height:88%;max-width:88%}.integration-hero-tile:has(img[alt=\"Voxel51 FiftyOne\"]) img{width:68%;height:68%;max-width:68%}.platform-figure{position:relative;border:1px solid var(--vlm-border);border-radius:8px;padding:3.5% 3% 56px;margin:1.5rem 0 2rem;overflow:hidden;background-color:#ffffff}.platform-figure::before{content:\"\";position:absolute;inset:0;background-image:url('/images/platform-background.png');background-size:cover;background-position:center;background-repeat:no-repeat;opacity:0.6;pointer-events:none;z-index:0}.platform-figure>*,.platform-figure img{position:relative;z-index:1}.platform-figure img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--vlm-border);box-shadow:0 1px 2px rgba(16, 42, 86, 0.10),\n 0 12px 32px rgba(31, 90, 202, 0.14)}.platform-card-grid .card img,.platform-card-grid [class*=\"card\"][role=\"link\"] img{background-color:#ffffff;background-image:url('/images/platform-background.png');background-size:cover;background-position:center;background-repeat:no-repeat;padding:14px;box-sizing:border-box;border-radius:10px 10px 0 0;border:1px solid var(--vlm-border);border-bottom:0;box-shadow:0 1px 2px rgba(16, 42, 86, 0.05)}.domain-column{width:240px;display:inline-block}.function-column{width:240px;display:inline-block}.allowed-inputs-column{width:160px;display:inline-block}.description-column{width:100%;display:inline-block}.tag{padding:2px 8px;border-radius:12px;font-size:0.9em;font-weight:500;display:inline-block;margin-right:8px;margin-bottom:4px}.tag-document{background:color-mix(in srgb, var(--vlm-cap-green) 22%, white);color:#2F6B14}.tag-image{background:color-mix(in srgb, var(--vlm-cap-blue) 22%, white);color:var(--vlm-primary-dark)}.tag-video{background:color-mix(in srgb, var(--vlm-cap-purple) 22%, white);color:#5A2BB8}.tag-audio{background:var(--vlm-primary-badge);color:var(--vlm-primary-dark)}.tag-url{background:var(--vlm-primary-badge);color:var(--vlm-primary-dark)}.tag-ref{background:color-mix(in srgb, var(--vlm-cap-purple) 14%, white);color:#5A2BB8}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.glass{background:rgba(255, 255, 255, 0.05);border:1px solid rgba(255, 255, 255, 0.1)}.shadow-btn{box-shadow:var(--vlm-shadow-btn)}#footer{flex-wrap:wrap;row-gap:1.25rem}#footer::after{content:var(--vlm-docs-version, \"\");flex-basis:100%;order:99;font-family:'Geist Mono', ui-monospace, monospace;font-size:12px;letter-spacing:0.02em;color:var(--vlm-muted)}.hero-video{display:block;width:100%;height:auto;border-radius:6px;background:var(--vlm-navy-dark)}p:has(>.changelog-tag:first-child),span:has(>.changelog-tag:first-child){padding-left:88px;text-indent:-88px}.changelog-tag{display:inline-block;box-sizing:border-box;width:76px;margin-right:8px;padding:1px 0;text-align:center;text-indent:0;border:1px solid var(--vlm-border);border-radius:4px;background:var(--vlm-primary-badge);color:var(--vlm-muted);font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11px;font-weight:500;letter-spacing:0.08em;line-height:1.5;text-transform:uppercase;vertical-align:1px}.support-dot{color:var(--vlm-primary-light)}html:not([data-legacy=\"1\"]) #navigation-items>div:has(a[href=\"/api-reference/structured-extraction\"]){display:none}"}],"page":{"pagePath":"gateway/api-reference/post-systemone","slug":"/gateway/api-reference/post-systemone","pageMetadata":{"title":"System One","description":"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs","openapi":"https://gateway.vlm.run/openapi.json POST /typesafe/v1/systemone","icon":"scale-balanced","href":"/gateway/api-reference/post-systemone"},"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: \"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs\"\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`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,Heading,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns a calibrated probability for each question about `,_jsx(_components.code,{children:`state`}),`, and a typed value for each field to extract. For the concepts, see `,_jsx(_components.a,{href:`/gateway/system-one`,children:`System One`}),`. To migrate a client, see `,_jsx(_components.a,{href:`/gateway/jev-compatibility`,children:`TypeSafe SDK Compatibility`}),`. Authentication is optional: see `,_jsx(_components.a,{href:`/gateway/authentication`,children:`Authentication`}),` and `,_jsx(_components.a,{href:`/gateway/rate-limits`,children:`Rate Limits`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_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:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`A served id or one of its aliases. An id the deployment does not serve is a `,_jsx(_components.code,{children:`404`}),`. See `,_jsx(_components.a,{href:`/gateway/typesafe-models`,children:`Models`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`string`}),` | `,_jsx(_components.code,{children:`object`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`What the questions are about. Objects and arrays are sent as JSON.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`questions`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`A map of question id to `,_jsx(_components.a,{href:`#question-object`,children:`question`}),`, at least one. Ids key the answers and never reach the model.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`array`}),` | `,_jsx(_components.code,{children:`string`})]}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`This request’s media as `,_jsx(_components.a,{href:`#content-parts`,children:`content parts`}),`. A bare string is one text part.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`assets`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Images keyed by the reference that stands for each. See `,_jsx(_components.a,{href:`#assets`,children:`Assets`}),`. Images or a document in `,_jsx(_components.code,{children:`content`}),` with `,_jsx(_components.code,{children:`assets`}),` is a `,_jsx(_components.code,{children:`422`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning_effort`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Generative engines only: `,_jsx(_components.code,{children:`none`}),` (default), `,_jsx(_components.code,{children:`minimal`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, or `,_jsx(_components.code,{children:`high`}),`, for 0, 32, 64, 128, or 256 reasoning tokens. A diffusion engine rejects it with `,_jsx(_components.code,{children:`422`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`steps`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Diffusion engines only: denoise steps per read, 1 to 8. Default `,_jsx(_components.code,{children:`1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`samples`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Noise draws to average, 1 to 32. Every draw is billed. Default: one read.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_max_pages`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Pages of the request’s PDF to read, from the first, 1 to 16. Default `,_jsx(_components.code,{children:`16`}),`. A larger value is a `,_jsx(_components.code,{children:`422`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_pages`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`array`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Which PDF pages to read, 0-indexed: page indices or half-open `,_jsx(_components.code,{children:`[start, stop]`}),` ranges. A negative index counts from the end. Pages are read in the order given, up to `,_jsx(_components.code,{children:`document_max_pages`}),`. A selection with no page in the document is a `,_jsx(_components.code,{children:`422`}),`. Same as on `,_jsx(_components.a,{href:`/gateway/extra-kwargs`,children:`Chat Completions`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_dpi`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Resolution the PDF’s pages are rendered at, 72 to 400. Default `,_jsx(_components.code,{children:`96`}),`. Raise it for small or faint print.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`An unknown top-level field is a `,_jsx(_components.code,{children:`422`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`question-object`,children:`Question object`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"noul\"`}),` | `,_jsx(_components.code,{children:`\"choice\"`}),` | `,_jsx(_components.code,{children:`\"score\"`}),` | `,_jsx(_components.code,{children:`\"box\"`}),` | `,_jsx(_components.code,{children:`\"text\"`}),` | `,_jsx(_components.code,{children:`\"number\"`}),` | `,_jsx(_components.code,{children:`\"date\"`}),` | `,_jsx(_components.code,{children:`\"list\"`})]}),_jsxs(_components.td,{children:[`The question category. It selects the `,_jsx(_components.code,{children:`criteria`}),` and answer shape.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instructions`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`string`}),` | `,_jsx(_components.code,{children:`object`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsx(_components.td,{children:`Optional. What the question asks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`criteria`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`object`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsxs(_components.td,{children:[`Depends on `,_jsx(_components.code,{children:`type`}),`. Not accepted on a field type.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`decimals`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`number`}),` only. Digits after the point, 0 to 6. `,_jsx(_components.code,{children:`0`}),` returns an integer.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"text\"`}),` | `,_jsx(_components.code,{children:`\"number\"`}),` | `,_jsx(_components.code,{children:`\"date\"`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`list`}),` only. The item type. Default `,_jsx(_components.code,{children:`text`}),`.`]})]})]})]}),`\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:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"true\": description, \"false\": description}`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`choice`})}),_jsxs(_components.td,{children:[`A map of label to description or `,_jsx(_components.code,{children:`null`}),`, 2 to 128 entries.`]}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsx(_components.td,{children:`An ordered array of 2 to 10 level descriptions.`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`box`})}),_jsxs(_components.td,{children:[`None. Sending `,_jsx(_components.code,{children:`criteria`}),` is a `,_jsx(_components.code,{children:`422`}),`.`]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`number`}),`, `,_jsx(_components.code,{children:`date`}),`, `,_jsx(_components.code,{children:`list`})]}),_jsxs(_components.td,{children:[`None. These are fields to extract. See `,_jsx(_components.a,{href:`/gateway/system-one#extract-fields`,children:`Extract fields`}),`.`]}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A request takes at most 16 questions, of which at most 8 are `,_jsx(_components.code,{children:`box`}),`. A `,_jsx(_components.code,{children:`box`}),` needs an image in the request, from `,_jsx(_components.code,{children:`assets`}),`, an `,_jsx(_components.code,{children:`image_url`}),` part, or a PDF. A field’s id is the name the model writes its value under, so it is one line with no `,_jsx(_components.code,{children:`:`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`content-parts`,children:`Content parts`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`content`}),` is a flat list: media first, then `,_jsx(_components.code,{children:`state`}),`. There are no roles and no history.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Part`}),_jsx(_components.th,{children:`Shape`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image_url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"image_url\", \"image_url\": {\"url\": \"…\", \"detail\": \"high\"}}`})}),_jsxs(_components.td,{children:[`8 per request, 5 MB each. `,_jsx(_components.code,{children:`url`}),` is a `,_jsx(_components.code,{children:`data:`}),` or `,_jsx(_components.code,{children:`http(s)`}),` URL.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"document_url\", \"document_url\": {\"url\": \"…\", \"detail\": \"high\"}}`})}),_jsxs(_components.td,{children:[`1 document per request. A PDF, as a `,_jsx(_components.code,{children:`data:application/pdf;base64,`}),` or `,_jsx(_components.code,{children:`http(s)`}),` URL. Its first `,_jsx(_components.code,{children:`document_max_pages`}),` pages are read (16 by default).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"text\", \"text\": \"…\"}`})}),_jsxs(_components.td,{children:[`Read after `,_jsx(_components.code,{children:`state`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"file\", \"file\": {\"filename\": \"invoice.pdf\", \"file_data\": \"…\", \"detail\": \"high\"}}`})}),_jsxs(_components.td,{children:[`The same PDF as `,_jsx(_components.code,{children:`document_url`}),`, in the OpenAI file shape. `,_jsx(_components.code,{children:`file_data`}),` is a `,_jsx(_components.code,{children:`data:application/pdf;base64,`}),` or `,_jsx(_components.code,{children:`http(s)`}),` URL. `,_jsx(_components.code,{children:`filename`}),` is optional.`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Images or one document, never both.`}),` A PDF’s first `,_jsx(_components.code,{children:`document_max_pages`}),` pages (16 by default), or the pages `,_jsx(_components.code,{children:`document_pages`}),` selects, are rasterised at `,_jsx(_components.code,{children:`document_dpi`}),` (96 by default) and read as the request’s images. Sending both is a `,_jsx(_components.code,{children:`422`}),`.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`detail`})}),_jsx(_components.th,{children:`Vision tokens per image or page`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`auto`}),` (default), `,_jsx(_components.code,{children:`high`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`280`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`low`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`70`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`One `,_jsx(_components.code,{children:`high`}),` or `,_jsx(_components.code,{children:`auto`}),` part sets every image and page in the request to 280 tokens.`]}),`\n`,_jsx(Heading,{level:`3`,id:`assets`,children:`Assets`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`assets`}),` maps a reference string to an image. The reference is replaced by the image wherever it appears inside a string of `,_jsx(_components.code,{children:`state`}),`, a question’s `,_jsx(_components.code,{children:`instructions`}),`, or its `,_jsx(_components.code,{children:`criteria`}),`. Object keys are never replaced. An asset that nothing references is a `,_jsx(_components.code,{children:`422`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"image\"`})}),_jsxs(_components.td,{children:[`Optional. Default `,_jsx(_components.code,{children:`image`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data_base64`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`The image bytes, base64-encoded, without a `,_jsx(_components.code,{children:`data:`}),` prefix.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`format`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"png\"`}),` | `,_jsx(_components.code,{children:`\"jpg\"`}),` | `,_jsx(_components.code,{children:`\"jpeg\"`})]}),_jsxs(_components.td,{children:[`Required with `,_jsx(_components.code,{children:`data_base64`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`part`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`The name of a `,_jsx(_components.code,{children:`multipart/form-data`}),` file part that holds the image. With both `,_jsx(_components.code,{children:`part`}),` and `,_jsx(_components.code,{children:`data_base64`}),`, `,_jsx(_components.code,{children:`part`}),` wins.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detail`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"auto\"`}),` | `,_jsx(_components.code,{children:`\"low\"`}),` | `,_jsx(_components.code,{children:`\"high\"`})]}),_jsxs(_components.td,{children:[`Optional. Same budgets as an `,_jsx(_components.code,{children:`image_url`}),` part. Default `,_jsx(_components.code,{children:`auto`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Assets count toward the same 8 images per request, 5 MB each. A reference is at most 1 KB.`}),`\n`,_jsxs(_components.p,{children:[`To upload instead of inlining, send `,_jsx(_components.code,{children:`multipart/form-data`}),`. Put the JSON body in a part named `,_jsx(_components.code,{children:`request`}),` and each image in the file part its asset names in `,_jsx(_components.code,{children:`part`}),`. Every file part must be claimed by one asset. Over plain JSON, `,_jsx(_components.code,{children:`part`}),` is a `,_jsx(_components.code,{children:`422`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_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:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`The model that answered.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`answers`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`#answer-shapes`,children:`Answers`}),` keyed by question id.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.input_tokens`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`Prompt tokens across every read. Counts toward your quota.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.output_tokens`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`0`}),` on a diffusion read. Non-zero on a generative read, which writes the answer under a grammar, and on any field, whose value is written.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.input_tokens_details`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`cached_tokens`}),`, `,_jsx(_components.code,{children:`image_tokens`}),`, and `,_jsx(_components.code,{children:`text_tokens`}),`. Gateway extension. `,_jsx(_components.code,{children:`image_tokens`}),` follows the `,_jsx(_components.code,{children:`detail`}),` budget, since the engine reports no image and text split.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.reads`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[`Engine calls made: one per question group, times `,_jsx(_components.code,{children:`samples`}),`, plus one per box and one per field. Gateway extension.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.cost`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`USD at the model’s published rate, with cached tokens at the cache rate. At least `,_jsx(_components.code,{children:`$0.001`}),` per call. Gateway extension.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`x-typesafe-request-id`}),` header matches the Gateway `,_jsx(_components.code,{children:`x-request-id`}),`. A decision is billed per read, and a rejected request bills nothing. See `,_jsx(_components.a,{href:`/gateway/pricing`,children:`Pricing`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`answer-shapes`,children:`Answer shapes`}),`\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:`Fields`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`noul`}),`: P(yes), from 0 to 1.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`choice`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`choice`}),` (the winning label), `,_jsx(_components.code,{children:`probabilities`}),` (label to probability), `,_jsx(_components.code,{children:`confidence`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`score`}),` (the expected level, `,_jsx(_components.code,{children:`sum(i * p_i)`}),`), `,_jsx(_components.code,{children:`legend`}),`, `,_jsx(_components.code,{children:`probabilities`}),`, `,_jsx(_components.code,{children:`confidence`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`box`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`box`}),` (`,_jsx(_components.code,{children:`top`}),`, `,_jsx(_components.code,{children:`bottom`}),`, `,_jsx(_components.code,{children:`left`}),`, `,_jsx(_components.code,{children:`right`}),`, each from 0 to 1 of the image, from the top-left corner), `,_jsx(_components.code,{children:`confidence`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`number`}),`, `,_jsx(_components.code,{children:`date`}),`, `,_jsx(_components.code,{children:`list`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`value`}),` (the field’s type or `,_jsx(_components.code,{children:`null`}),`; a date is `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`), `,_jsx(_components.code,{children:`confidence`}),` (probability of the value as returned), `,_jsx(_components.code,{children:`p_null`}),` (probability the state does not give the field), `,_jsx(_components.code,{children:`span`}),` (`,_jsx(_components.code,{children:`text`}),`: `,_jsx(_components.code,{children:`[start, end)`}),` of the value in a string `,_jsx(_components.code,{children:`state`}),`), `,_jsx(_components.code,{children:`spans`}),` (`,_jsx(_components.code,{children:`list`}),` of `,_jsx(_components.code,{children:`text`}),`: one per item).`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`confidence`}),` is `,_jsx(_components.code,{children:`1 - H(p) / ln(K)`}),`: `,_jsx(_components.code,{children:`1`}),` puts all mass on one label, and `,_jsx(_components.code,{children:`0`}),` is uniform. A `,_jsx(_components.code,{children:`box`}),` reports the mean over its four edges, each read to within a tenth of the image. Each `,_jsx(_components.code,{children:`box`}),` is one more read, counted in `,_jsx(_components.code,{children:`usage.reads`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A field’s `,_jsx(_components.code,{children:`confidence`}),` is the probability of its value as written, and `,_jsx(_components.code,{children:`p_null`}),` is the probability that the state does not give it. Both are the model’s own. A value with a high `,_jsx(_components.code,{children:`p_null`}),` is a guess, and its `,_jsx(_components.code,{children:`confidence`}),` is low.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error_type`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`validation list`}),_jsxs(_components.td,{children:[`An invalid body, an unknown field, a schema the model cannot answer, a `,_jsx(_components.code,{children:`box`}),` with no image, or a bad or unreferenced asset. The body is `,_jsx(_components.code,{children:`{\"detail\": [{\"type\", \"loc\", \"msg\", \"input\"}]}`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found_error`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`model`}),` is not served on this route.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`rate limit`}),_jsx(_components.td,{children:`The per-tier quota is exceeded.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`api_error`})}),_jsx(_components.td,{children:`The engine failed the read. Not billed. Retry.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`api_error`})}),_jsxs(_components.td,{children:[`The engine is down or busy. Sent with `,_jsx(_components.code,{children:`retry-after: 2`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`529`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`overloaded_error`})}),_jsxs(_components.td,{children:[`Too many reads are queued. Sent with `,_jsx(_components.code,{children:`retry-after: 1`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/gateway/error-codes`,children:`Error Codes`}),` for the Gateway-wide envelope.`]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`System One`,icon:`scale-balanced`,href:`/gateway/system-one`,children:_jsx(_components.p,{children:`Question types, images, boxes, confidence, and cost levers.`})}),_jsx(Card,{title:`TypeSafe SDK Compatibility`,icon:`arrow-right-arrow-left`,href:`/gateway/jev-compatibility`,children:_jsx(_components.p,{children:`Compatibility matrix and migration steps.`})}),_jsx(Card,{title:`List Models`,icon:`table-list`,href:`/gateway/api-reference/get-typesafe-models`,children:_jsxs(_components.p,{children:[`The current TypeSafe-compatible models on the `,_jsx(_components.code,{children:`/typesafe`}),` route.`]})}),_jsx(Card,{title:`Chat Completions`,icon:`comments`,href:`/gateway/api-reference/post-chat-completions`,children:_jsx(_components.p,{children:`OCR, VQA, and document inference when you need generated text.`})})]})]})}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":{"theme":{"light":"github-light","dark":"dark-plus"}},"config":{},"pageMetadata":{"title":"System One","description":"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs","openapi":"https://gateway.vlm.run/openapi.json POST /typesafe/v1/systemone","icon":"scale-balanced","href":"/gateway/api-reference/post-systemone"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,RequestExample,ResponseExample,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns a calibrated probability for each question about `,_jsx(_components.code,{children:`state`}),`, and a typed value for each field to extract. For the concepts, see `,_jsx(_components.a,{href:`/gateway/system-one`,children:`System One`}),`. To migrate a client, see `,_jsx(_components.a,{href:`/gateway/jev-compatibility`,children:`TypeSafe SDK Compatibility`}),`. Authentication is optional: see `,_jsx(_components.a,{href:`/gateway/authentication`,children:`Authentication`}),` and `,_jsx(_components.a,{href:`/gateway/rate-limits`,children:`Rate Limits`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_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:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`A served id or one of its aliases. An id the deployment does not serve is a `,_jsx(_components.code,{children:`404`}),`. See `,_jsx(_components.a,{href:`/gateway/typesafe-models`,children:`Models`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`string`}),` | `,_jsx(_components.code,{children:`object`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`What the questions are about. Objects and arrays are sent as JSON.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`questions`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`A map of question id to `,_jsx(_components.a,{href:`#question-object`,children:`question`}),`, at least one. Ids key the answers and never reach the model.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`array`}),` | `,_jsx(_components.code,{children:`string`})]}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`This request’s media as `,_jsx(_components.a,{href:`#content-parts`,children:`content parts`}),`. A bare string is one text part.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`assets`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Images keyed by the reference that stands for each. See `,_jsx(_components.a,{href:`#assets`,children:`Assets`}),`. Images or a document in `,_jsx(_components.code,{children:`content`}),` with `,_jsx(_components.code,{children:`assets`}),` is a `,_jsx(_components.code,{children:`422`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning_effort`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Generative engines only: `,_jsx(_components.code,{children:`none`}),` (default), `,_jsx(_components.code,{children:`minimal`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, or `,_jsx(_components.code,{children:`high`}),`, for 0, 32, 64, 128, or 256 reasoning tokens. A diffusion engine rejects it with `,_jsx(_components.code,{children:`422`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`steps`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Diffusion engines only: denoise steps per read, 1 to 8. Default `,_jsx(_components.code,{children:`1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`samples`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Noise draws to average, 1 to 32. Every draw is billed. Default: one read.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_max_pages`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Pages of the request’s PDF to read, from the first, 1 to 16. Default `,_jsx(_components.code,{children:`16`}),`. A larger value is a `,_jsx(_components.code,{children:`422`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_pages`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`array`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Which PDF pages to read, 0-indexed: page indices or half-open `,_jsx(_components.code,{children:`[start, stop]`}),` ranges. A negative index counts from the end. Pages are read in the order given, up to `,_jsx(_components.code,{children:`document_max_pages`}),`. A selection with no page in the document is a `,_jsx(_components.code,{children:`422`}),`. Same as on `,_jsx(_components.a,{href:`/gateway/extra-kwargs`,children:`Chat Completions`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_dpi`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Resolution the PDF’s pages are rendered at, 72 to 400. Default `,_jsx(_components.code,{children:`96`}),`. Raise it for small or faint print.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`An unknown top-level field is a `,_jsx(_components.code,{children:`422`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`question-object`,children:`Question object`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"noul\"`}),` | `,_jsx(_components.code,{children:`\"choice\"`}),` | `,_jsx(_components.code,{children:`\"score\"`}),` | `,_jsx(_components.code,{children:`\"box\"`}),` | `,_jsx(_components.code,{children:`\"text\"`}),` | `,_jsx(_components.code,{children:`\"number\"`}),` | `,_jsx(_components.code,{children:`\"date\"`}),` | `,_jsx(_components.code,{children:`\"list\"`})]}),_jsxs(_components.td,{children:[`The question category. It selects the `,_jsx(_components.code,{children:`criteria`}),` and answer shape.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instructions`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`string`}),` | `,_jsx(_components.code,{children:`object`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsx(_components.td,{children:`Optional. What the question asks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`criteria`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`object`}),` | `,_jsx(_components.code,{children:`array`})]}),_jsxs(_components.td,{children:[`Depends on `,_jsx(_components.code,{children:`type`}),`. Not accepted on a field type.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`decimals`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`number`}),` only. Digits after the point, 0 to 6. `,_jsx(_components.code,{children:`0`}),` returns an integer.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"text\"`}),` | `,_jsx(_components.code,{children:`\"number\"`}),` | `,_jsx(_components.code,{children:`\"date\"`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`list`}),` only. The item type. Default `,_jsx(_components.code,{children:`text`}),`.`]})]})]})]}),`\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:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"true\": description, \"false\": description}`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`choice`})}),_jsxs(_components.td,{children:[`A map of label to description or `,_jsx(_components.code,{children:`null`}),`, 2 to 128 entries.`]}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsx(_components.td,{children:`An ordered array of 2 to 10 level descriptions.`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`box`})}),_jsxs(_components.td,{children:[`None. Sending `,_jsx(_components.code,{children:`criteria`}),` is a `,_jsx(_components.code,{children:`422`}),`.`]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`number`}),`, `,_jsx(_components.code,{children:`date`}),`, `,_jsx(_components.code,{children:`list`})]}),_jsxs(_components.td,{children:[`None. These are fields to extract. See `,_jsx(_components.a,{href:`/gateway/system-one#extract-fields`,children:`Extract fields`}),`.`]}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A request takes at most 16 questions, of which at most 8 are `,_jsx(_components.code,{children:`box`}),`. A `,_jsx(_components.code,{children:`box`}),` needs an image in the request, from `,_jsx(_components.code,{children:`assets`}),`, an `,_jsx(_components.code,{children:`image_url`}),` part, or a PDF. A field’s id is the name the model writes its value under, so it is one line with no `,_jsx(_components.code,{children:`:`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`content-parts`,children:`Content parts`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`content`}),` is a flat list: media first, then `,_jsx(_components.code,{children:`state`}),`. There are no roles and no history.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Part`}),_jsx(_components.th,{children:`Shape`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image_url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"image_url\", \"image_url\": {\"url\": \"…\", \"detail\": \"high\"}}`})}),_jsxs(_components.td,{children:[`8 per request, 5 MB each. `,_jsx(_components.code,{children:`url`}),` is a `,_jsx(_components.code,{children:`data:`}),` or `,_jsx(_components.code,{children:`http(s)`}),` URL.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"document_url\", \"document_url\": {\"url\": \"…\", \"detail\": \"high\"}}`})}),_jsxs(_components.td,{children:[`1 document per request. A PDF, as a `,_jsx(_components.code,{children:`data:application/pdf;base64,`}),` or `,_jsx(_components.code,{children:`http(s)`}),` URL. Its first `,_jsx(_components.code,{children:`document_max_pages`}),` pages are read (16 by default).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"text\", \"text\": \"…\"}`})}),_jsxs(_components.td,{children:[`Read after `,_jsx(_components.code,{children:`state`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{\"type\": \"file\", \"file\": {\"filename\": \"invoice.pdf\", \"file_data\": \"…\", \"detail\": \"high\"}}`})}),_jsxs(_components.td,{children:[`The same PDF as `,_jsx(_components.code,{children:`document_url`}),`, in the OpenAI file shape. `,_jsx(_components.code,{children:`file_data`}),` is a `,_jsx(_components.code,{children:`data:application/pdf;base64,`}),` or `,_jsx(_components.code,{children:`http(s)`}),` URL. `,_jsx(_components.code,{children:`filename`}),` is optional.`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Images or one document, never both.`}),` A PDF’s first `,_jsx(_components.code,{children:`document_max_pages`}),` pages (16 by default), or the pages `,_jsx(_components.code,{children:`document_pages`}),` selects, are rasterised at `,_jsx(_components.code,{children:`document_dpi`}),` (96 by default) and read as the request’s images. Sending both is a `,_jsx(_components.code,{children:`422`}),`.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`detail`})}),_jsx(_components.th,{children:`Vision tokens per image or page`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`auto`}),` (default), `,_jsx(_components.code,{children:`high`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`280`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`low`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`70`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`One `,_jsx(_components.code,{children:`high`}),` or `,_jsx(_components.code,{children:`auto`}),` part sets every image and page in the request to 280 tokens.`]}),`\n`,_jsx(Heading,{level:`3`,id:`assets`,children:`Assets`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`assets`}),` maps a reference string to an image. The reference is replaced by the image wherever it appears inside a string of `,_jsx(_components.code,{children:`state`}),`, a question’s `,_jsx(_components.code,{children:`instructions`}),`, or its `,_jsx(_components.code,{children:`criteria`}),`. Object keys are never replaced. An asset that nothing references is a `,_jsx(_components.code,{children:`422`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"image\"`})}),_jsxs(_components.td,{children:[`Optional. Default `,_jsx(_components.code,{children:`image`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data_base64`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`The image bytes, base64-encoded, without a `,_jsx(_components.code,{children:`data:`}),` prefix.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`format`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"png\"`}),` | `,_jsx(_components.code,{children:`\"jpg\"`}),` | `,_jsx(_components.code,{children:`\"jpeg\"`})]}),_jsxs(_components.td,{children:[`Required with `,_jsx(_components.code,{children:`data_base64`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`part`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`The name of a `,_jsx(_components.code,{children:`multipart/form-data`}),` file part that holds the image. With both `,_jsx(_components.code,{children:`part`}),` and `,_jsx(_components.code,{children:`data_base64`}),`, `,_jsx(_components.code,{children:`part`}),` wins.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detail`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"auto\"`}),` | `,_jsx(_components.code,{children:`\"low\"`}),` | `,_jsx(_components.code,{children:`\"high\"`})]}),_jsxs(_components.td,{children:[`Optional. Same budgets as an `,_jsx(_components.code,{children:`image_url`}),` part. Default `,_jsx(_components.code,{children:`auto`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Assets count toward the same 8 images per request, 5 MB each. A reference is at most 1 KB.`}),`\n`,_jsxs(_components.p,{children:[`To upload instead of inlining, send `,_jsx(_components.code,{children:`multipart/form-data`}),`. Put the JSON body in a part named `,_jsx(_components.code,{children:`request`}),` and each image in the file part its asset names in `,_jsx(_components.code,{children:`part`}),`. Every file part must be claimed by one asset. Over plain JSON, `,_jsx(_components.code,{children:`part`}),` is a `,_jsx(_components.code,{children:`422`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_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:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`The model that answered.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`answers`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`#answer-shapes`,children:`Answers`}),` keyed by question id.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.input_tokens`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`Prompt tokens across every read. Counts toward your quota.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.output_tokens`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`0`}),` on a diffusion read. Non-zero on a generative read, which writes the answer under a grammar, and on any field, whose value is written.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.input_tokens_details`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`cached_tokens`}),`, `,_jsx(_components.code,{children:`image_tokens`}),`, and `,_jsx(_components.code,{children:`text_tokens`}),`. Gateway extension. `,_jsx(_components.code,{children:`image_tokens`}),` follows the `,_jsx(_components.code,{children:`detail`}),` budget, since the engine reports no image and text split.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.reads`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[`Engine calls made: one per question group, times `,_jsx(_components.code,{children:`samples`}),`, plus one per box and one per field. Gateway extension.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usage.cost`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`USD at the model’s published rate, with cached tokens at the cache rate. At least `,_jsx(_components.code,{children:`$0.001`}),` per call. Gateway extension.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`x-typesafe-request-id`}),` header matches the Gateway `,_jsx(_components.code,{children:`x-request-id`}),`. A decision is billed per read, and a rejected request bills nothing. See `,_jsx(_components.a,{href:`/gateway/pricing`,children:`Pricing`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`answer-shapes`,children:`Answer shapes`}),`\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:`Fields`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`noul`}),`: P(yes), from 0 to 1.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`choice`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`choice`}),` (the winning label), `,_jsx(_components.code,{children:`probabilities`}),` (label to probability), `,_jsx(_components.code,{children:`confidence`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`score`}),` (the expected level, `,_jsx(_components.code,{children:`sum(i * p_i)`}),`), `,_jsx(_components.code,{children:`legend`}),`, `,_jsx(_components.code,{children:`probabilities`}),`, `,_jsx(_components.code,{children:`confidence`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`box`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`box`}),` (`,_jsx(_components.code,{children:`top`}),`, `,_jsx(_components.code,{children:`bottom`}),`, `,_jsx(_components.code,{children:`left`}),`, `,_jsx(_components.code,{children:`right`}),`, each from 0 to 1 of the image, from the top-left corner), `,_jsx(_components.code,{children:`confidence`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`number`}),`, `,_jsx(_components.code,{children:`date`}),`, `,_jsx(_components.code,{children:`list`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`value`}),` (the field’s type or `,_jsx(_components.code,{children:`null`}),`; a date is `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`), `,_jsx(_components.code,{children:`confidence`}),` (probability of the value as returned), `,_jsx(_components.code,{children:`p_null`}),` (probability the state does not give the field), `,_jsx(_components.code,{children:`span`}),` (`,_jsx(_components.code,{children:`text`}),`: `,_jsx(_components.code,{children:`[start, end)`}),` of the value in a string `,_jsx(_components.code,{children:`state`}),`), `,_jsx(_components.code,{children:`spans`}),` (`,_jsx(_components.code,{children:`list`}),` of `,_jsx(_components.code,{children:`text`}),`: one per item).`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`confidence`}),` is `,_jsx(_components.code,{children:`1 - H(p) / ln(K)`}),`: `,_jsx(_components.code,{children:`1`}),` puts all mass on one label, and `,_jsx(_components.code,{children:`0`}),` is uniform. A `,_jsx(_components.code,{children:`box`}),` reports the mean over its four edges, each read to within a tenth of the image. Each `,_jsx(_components.code,{children:`box`}),` is one more read, counted in `,_jsx(_components.code,{children:`usage.reads`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A field’s `,_jsx(_components.code,{children:`confidence`}),` is the probability of its value as written, and `,_jsx(_components.code,{children:`p_null`}),` is the probability that the state does not give it. Both are the model’s own. A value with a high `,_jsx(_components.code,{children:`p_null`}),` is a guess, and its `,_jsx(_components.code,{children:`confidence`}),` is low.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error_type`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`validation list`}),_jsxs(_components.td,{children:[`An invalid body, an unknown field, a schema the model cannot answer, a `,_jsx(_components.code,{children:`box`}),` with no image, or a bad or unreferenced asset. The body is `,_jsx(_components.code,{children:`{\"detail\": [{\"type\", \"loc\", \"msg\", \"input\"}]}`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found_error`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`model`}),` is not served on this route.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`rate limit`}),_jsx(_components.td,{children:`The per-tier quota is exceeded.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`api_error`})}),_jsx(_components.td,{children:`The engine failed the read. Not billed. Retry.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`api_error`})}),_jsxs(_components.td,{children:[`The engine is down or busy. Sent with `,_jsx(_components.code,{children:`retry-after: 2`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`529`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`overloaded_error`})}),_jsxs(_components.td,{children:[`Too many reads are queued. Sent with `,_jsx(_components.code,{children:`retry-after: 1`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/gateway/error-codes`,children:`Error Codes`}),` for the Gateway-wide envelope.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Python`,expandable:`true`,numberOfLines:`39`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`39`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` base64, pathlib`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` typesafe_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Choice, Noul, Score, TypeSafeClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` TypeSafeClient(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cVLMRUN_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` base_url`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"https://gateway.vlm.run/typesafe\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` compression`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`page `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` base64.b64encode(pathlib.Path(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"invoice-page.jpg\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`).read_bytes()).decode()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` client.system_one(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` state`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Answer about the attached page.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` questions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: Choice(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"What kind of document is this page from?\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` criteria`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"invoice\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"receipt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"contract\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"other\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"has_total\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: Noul(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Is a total amount due visible on the page?\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"legibility\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: Score(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"How legible is the text?\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` criteria`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"unreadable\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"partly legible\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"clear\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` extra_body`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"data:image/jpeg;base64,`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`page`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"detail\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"high\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"google/diffusiongemma-26b-a4b-it\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(result.choices[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`].choice, result.usage.input_tokens)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,expandable:`true`,numberOfLines:`36`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`readFileSync`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`choice`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`noul`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`score`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`TypeSafeClient`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"@typesafe-ai/sdk\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` TypeSafeClient`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:`VLMRUN_API_KEY`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"https://gateway.vlm.run/typesafe\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` defaultModel:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"google/diffusiongemma-26b-a4b-it\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` compression:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` page`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` readFileSync`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"invoice-page.jpg\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`toString`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` request`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` state:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"Answer about the attached page.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` questions:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` kind:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` choice`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"What kind of document is this page from?\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` invoice:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` receipt:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` contract:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` other:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` has_total:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` noul`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Is a total amount due visible on the page?\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` legibility:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` score`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"How legible is the text?\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"unreadable\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"partly legible\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"clear\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` content:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` image_url:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`url:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:\" `data:image/jpeg;base64,\"}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`page`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`detail:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"high\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:`answers`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:`usage`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`systemOne`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`kind`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`choice`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`usage`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`input_tokens`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`CLI`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`vlmrun`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` gw`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` s1`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"Answer about the attached page.\"`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` invoice-page.jpg`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` --detail`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` high`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` google/diffusiongemma-26b-a4b-it`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` --choice`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` kind=\"invoice|receipt|contract|other\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` --noul`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` has_total=\"Is a total amount due visible on the page?\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` --score`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` legibility=\"unreadable|partly legible|clear\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,expandable:`true`,numberOfLines:`28`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`IMAGE`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`base64`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` -w0`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` invoice-page.jpg`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` https://gateway.vlm.run/typesafe/v1/systemone`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`$VLMRUN_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` @-`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#D4D4D4`},children:`JSON`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"google/diffusiongemma-26b-a4b-it\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"state\": \"Answer about the attached page.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"content\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` {\"type\": \"image_url\",`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\": {\"url\": \"data:image/jpeg;base64,`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`$IMAGE`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\", \"detail\": \"high\"}}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"kind\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"choice\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"What kind of document is this page from?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\": {\"invoice\": null, \"receipt\": null, \"contract\": null, \"other\": null}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"has_total\": {\"type\": \"noul\", \"instructions\": \"Is a total amount due visible on the page?\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"legibility\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"score\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"How legible is the text?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\": [\"unreadable\", \"partly legible\", \"clear\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#D4D4D4`},children:`JSON`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`47`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`47`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"sysone-b317f2c7606c47c4975ba08166260\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"google/diffusiongemma-26b-a4b-it\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"answers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"choice\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"choice\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"receipt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"probabilities\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.0022535559303185626`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"receipt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.9966860953386762`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"contract\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.0003855850269454288`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"other\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.0006747637040598201`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"confidence\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.9819649256633525`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"has_total\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"noul\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"noul\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.5214069077960607`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"legibility\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"score\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`1.9657897574947996`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"legend\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"unreadable\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"partly legible\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"2\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"clear\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"probabilities\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.0020463012728342026`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.030117639959532254`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"2\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.9678360587676337`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"confidence\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.8636438424763118`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`417`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens_details\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"cached_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`32`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`280`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"text_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`137`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"reads\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0.001`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"detail\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"dict_type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"loc\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"body\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"questions\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"msg\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Input should be a valid dictionary\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"bad\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`System One`,icon:`scale-balanced`,href:`/gateway/system-one`,children:_jsx(_components.p,{children:`Question types, images, boxes, confidence, and cost levers.`})}),_jsx(Card,{title:`TypeSafe SDK Compatibility`,icon:`arrow-right-arrow-left`,href:`/gateway/jev-compatibility`,children:_jsx(_components.p,{children:`Compatibility matrix and migration steps.`})}),_jsx(Card,{title:`List Models`,icon:`table-list`,href:`/gateway/api-reference/get-typesafe-models`,children:_jsxs(_components.p,{children:[`The current TypeSafe-compatible models on the `,_jsx(_components.code,{children:`/typesafe`}),` route.`]})}),_jsx(Card,{title:`Chat Completions`,icon:`comments`,href:`/gateway/api-reference/post-chat-completions`,children:_jsx(_components.p,{children:`OCR, VQA, and document inference when you need generated text.`})})]})]})}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":{"theme":{"light":"github-light","dark":"dark-plus"}},"config":{},"pageMetadata":{"title":"System One","description":"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs","openapi":"https://gateway.vlm.run/openapi.json POST /typesafe/v1/systemone","icon":"scale-balanced","href":"/gateway/api-reference/post-systemone"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[{"title":"Question object","slug":"question-object","depth":3,"children":[]},{"title":"Content parts","slug":"content-parts","depth":3,"children":[]},{"title":"Assets","slug":"assets","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Answer shapes","slug":"answer-shapes","depth":3,"children":[]}]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light dark-plus\" style=\"background-color:#fff;--shiki-dark-bg:#0B0C0E;color:#24292e;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"39\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> base64, pathlib\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> typesafe_sdk \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> Choice, Noul, Score, TypeSafeClient\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">client \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> TypeSafeClient(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> api_key\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"\u0026#x3C;VLMRUN_API_KEY>\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> base_url\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"https://gateway.vlm.run/typesafe\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> compression\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">False\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">page \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> base64.b64encode(pathlib.Path(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"invoice-page.jpg\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">).read_bytes()).decode()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">result \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> client.system_one(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> state\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"Answer about the attached page.\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> questions\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"kind\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: Choice(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> instructions\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"What kind of document is this page from?\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> criteria\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"invoice\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">None\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"receipt\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">None\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"contract\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">None\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"other\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">None\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> ),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"has_total\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: Noul(\u003c/span>\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\">instructions\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"Is a total amount due visible on the page?\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"legibility\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: Score(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> instructions\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"How legible is the text?\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> criteria\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"unreadable\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"partly legible\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"clear\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> ),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> extra_body\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"content\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"type\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"image_url\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"image_url\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"url\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"data:image/jpeg;base64,\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">page\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"detail\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"high\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#E36209;--shiki-dark:#9CDCFE\"> model\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"google/diffusiongemma-26b-a4b-it\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(result.choices[\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"kind\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">].choice, result.usage.input_tokens)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light dark-plus\" style=\"background-color:#fff;--shiki-dark-bg:#0B0C0E;color:#24292e;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"36\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">readFileSync\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"node:fs\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">choice\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">noul\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">score\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">TypeSafeClient\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"@typesafe-ai/sdk\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#4FC1FF\"> client\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\"> TypeSafeClient\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> apiKey:\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> process\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#4FC1FF\">VLMRUN_API_KEY\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> baseURL:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"https://gateway.vlm.run/typesafe\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> defaultModel:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"google/diffusiongemma-26b-a4b-it\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> compression:\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> false\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#4FC1FF\"> page\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\"> readFileSync\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"invoice-page.jpg\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">).\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\">toString\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"base64\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#4FC1FF\"> request\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> state:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"Answer about the attached page.\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> questions:\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> kind:\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\"> choice\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"What kind of document is this page from?\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> invoice:\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> null\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> receipt:\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> null\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> contract:\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> null\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> other:\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> null\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> has_total:\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\"> noul\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"Is a total amount due visible on the page?\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> legibility:\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\"> score\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"How legible is the text?\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"unreadable\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"partly legible\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"clear\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> ]),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> content:\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">type:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"image_url\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> image_url:\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">url:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> `data:image/jpeg;base64,\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">page\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">detail:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"high\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> } },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#4FC1FF\">answers\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#4FC1FF\">usage\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\">systemOne\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">request\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">answers\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">kind\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">choice\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">usage\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">input_tokens\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"CLI","html":"\u003cpre class=\"shiki shiki-themes github-light dark-plus\" style=\"background-color:#fff;--shiki-dark-bg:#0B0C0E;color:#24292e;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\">vlmrun\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> gw\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> s1\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> -s\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"Answer about the attached page.\"\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> invoice-page.jpg\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> --detail\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> high\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> -m\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> google/diffusiongemma-26b-a4b-it\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> --choice\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> kind=\"invoice|receipt|contract|other\"\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> --noul\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> has_total=\"Is a total amount due visible on the page?\"\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> --score\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> legibility=\"unreadable|partly legible|clear\"\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> --json\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light dark-plus\" style=\"background-color:#fff;--shiki-dark-bg:#0B0C0E;color:#24292e;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"28\">\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">IMAGE\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">$(\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\">base64\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> -w0\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> invoice-page.jpg\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> https://gateway.vlm.run/typesafe/v1/systemone\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">$VLMRUN_API_KEY\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> @-\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#D4D4D4\"> \u0026#x3C;\u0026#x3C;\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#D4D4D4\">JSON\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"model\": \"google/diffusiongemma-26b-a4b-it\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"state\": \"Answer about the attached page.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"content\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> {\"type\": \"image_url\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"image_url\": {\"url\": \"data:image/jpeg;base64,\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#9CDCFE\">$IMAGE\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\", \"detail\": \"high\"}}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"questions\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"kind\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"type\": \"choice\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"instructions\": \"What kind of document is this page from?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"criteria\": {\"invoice\": null, \"receipt\": null, \"contract\": null, \"other\": null}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"has_total\": {\"type\": \"noul\", \"instructions\": \"Is a total amount due visible on the page?\"},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"legibility\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"type\": \"score\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"instructions\": \"How legible is the text?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> \"criteria\": [\"unreadable\", \"partly legible\", \"clear\"]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#D4D4D4\">JSON\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light dark-plus\" style=\"background-color:#fff;--shiki-dark-bg:#0B0C0E;color:#24292e;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"47\">\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"sysone-b317f2c7606c47c4975ba08166260\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"model\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"google/diffusiongemma-26b-a4b-it\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"answers\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"kind\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"choice\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"choice\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"receipt\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"probabilities\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"invoice\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.0022535559303185626\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"receipt\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.9966860953386762\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"contract\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.0003855850269454288\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"other\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.0006747637040598201\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"confidence\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.9819649256633525\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"has_total\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"noul\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"noul\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.5214069077960607\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"legibility\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"score\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"score\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">1.9657897574947996\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"legend\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"0\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"unreadable\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"partly legible\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"2\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"clear\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"probabilities\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"0\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.0020463012728342026\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.030117639959532254\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"2\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.9678360587676337\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"confidence\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.8636438424763118\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"usage\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"input_tokens\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">417\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"output_tokens\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"input_tokens_details\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"cached_tokens\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">32\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"image_tokens\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">280\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"text_tokens\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">137\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"reads\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"cost\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#B5CEA8\">0.001\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"422","html":"\u003cpre class=\"shiki shiki-themes github-light dark-plus\" style=\"background-color:#fff;--shiki-dark-bg:#0B0C0E;color:#24292e;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"detail\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"dict_type\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"loc\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"body\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"questions\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"msg\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"Input should be a valid dictionary\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#9CDCFE\"> \"input\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#CE9178\">\"bad\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/autonomiai/a2d609d7d372c9af/unifygtm.js","/_mintlify/custom/autonomiai/12b17cdd767d0ac7/legacy.js"],"openApiReferenceData":{"operation":{"tags":["System One"],"summary":"Systemone","operationId":"systemone_typesafe_v1_systemone_post","requestBody":"df14dbf7-2082-42b5-be95-cca1db16e75c","responses":{"200":"a836b06e-d8f8-4b83-8918-5dfaf4e5de4a","422":"e49e0c8f-fa6d-497f-ba76-4d1ead6d374c"},"security":["89929ddf-c72e-4e66-83d7-7cbf0169445d"],"method":"post","type":"path","servers":["d281b7d7-95b1-4022-b02a-e101a2007f0c","c561eafe-b91e-47b4-a339-7dfe95662373"],"path":"/typesafe/v1/systemone","baseUrlOptions":["https://gateway.vlm.run","http://localhost:8001"],"title":"Systemone","description":"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs","codeSamples":[],"requestExampleLanguages":["python","javascript","ruby","bash"],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light dark-plus","style":{"backgroundColor":"#fff","--shiki-dark-bg":"#0B0C0E","color":"#24292e","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"39","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" base64, pathlib"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"from"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" typesafe_sdk "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" Choice, Noul, Score, TypeSafeClient"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"client "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" TypeSafeClient("}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" api_key"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"\u003cVLMRUN_API_KEY>\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" base_url"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"https://gateway.vlm.run/typesafe\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" compression"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"False"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"page "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" base64.b64encode(pathlib.Path("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"invoice-page.jpg\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":").read_bytes()).decode()"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"result "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" client.system_one("}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" state"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"Answer about the attached page.\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" questions"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"{"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"kind\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": Choice("}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" instructions"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"What kind of document is this page from?\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" criteria"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"invoice\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"None"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"receipt\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"None"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"contract\""}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"None"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"other\""}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"None"}},{"type":"span","key":"18","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ),"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"has_total\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": Noul("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":"instructions"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"Is a total amount due visible on the page?\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"),"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"legibility\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": Score("}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" instructions"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"How legible is the text?\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" criteria"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"unreadable\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"partly legible\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"clear\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ),"}}}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" extra_body"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"{"}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"content\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": ["}}]}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"image_url\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"image_url\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"url\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#569CD6"},"children":"f"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"data:image/jpeg;base64,"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"{"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"page"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"detail\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"high\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#E36209","--shiki-dark":"#9CDCFE"},"children":" model"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"google/diffusiongemma-26b-a4b-it\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"72","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"74","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"76","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#DCDCAA"},"children":"print"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"(result.choices["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"kind\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"].choice, result.usage.input_tokens)"}}]}},"\n"]}}}},"filename":"Python"},{"dropdown":false,"language":"typescript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light dark-plus","style":{"backgroundColor":"#fff","--shiki-dark-bg":"#0B0C0E","color":"#24292e","--shiki-dark":"#D4D4D4"},"language":"typescript","children":{"type":"code","key":null,"ref":null,"props":{"language":"typescript","numberOfLines":"36","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"readFileSync"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" } "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"from"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"node:fs\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"choice"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"noul"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"score"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"TypeSafeClient"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" } "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":"from"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"@typesafe-ai/sdk\""}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#4FC1FF"},"children":" client"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":" TypeSafeClient"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" apiKey:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" process"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"env"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#4FC1FF"},"children":"VLMRUN_API_KEY"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" baseURL:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"https://gateway.vlm.run/typesafe\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" defaultModel:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"google/diffusiongemma-26b-a4b-it\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" compression:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" false"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#4FC1FF"},"children":" page"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":" readFileSync"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"invoice-page.jpg\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":")."}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":"toString"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"base64\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#4FC1FF"},"children":" request"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" state:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"Answer about the attached page.\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" questions:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" kind:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":" choice"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"What kind of document is this page from?\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", {"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" invoice:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" null"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" receipt:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" null"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" contract:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" null"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" other:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" null"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" }),"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" has_total:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":" noul"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"Is a total amount due visible on the page?\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"),"}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" legibility:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":" score"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"How legible is the text?\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", ["}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"unreadable\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"partly legible\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"clear\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ]),"}}}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" content:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ["}}]}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"type:"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"image_url\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" image_url:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"url:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" `data:image/jpeg;base64,"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#569CD6"},"children":"${"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"page"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"`"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"detail:"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"high\""}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" } },"}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ],"}}}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"};"}}}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#4FC1FF"},"children":"answers"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#4FC1FF"},"children":"usage"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" } "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":"systemOne"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"request"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"console"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"answers"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"kind"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"choice"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"usage"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"input_tokens"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":"Node.js"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light dark-plus","style":{"backgroundColor":"#fff","--shiki-dark-bg":"#0B0C0E","color":"#24292e","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"5","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":"vlmrun"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" gw"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" s1"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" -s"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"Answer about the attached page.\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" invoice-page.jpg"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" --detail"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" high"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" -m"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" google/diffusiongemma-26b-a4b-it"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" --choice"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" kind=\"invoice|receipt|contract|other\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" --noul"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" has_total=\"Is a total amount due visible on the page?\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" --score"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" legibility=\"unreadable|partly legible|clear\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" --json"}}]}},"\n"]}}}},"filename":"CLI"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light dark-plus","style":{"backgroundColor":"#fff","--shiki-dark-bg":"#0B0C0E","color":"#24292e","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"28","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"IMAGE"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"$("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":"base64"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" -w0"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" invoice-page.jpg"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#6F42C1","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" https://gateway.vlm.run/typesafe/v1/systemone"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"$VLMRUN_API_KEY"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" @-"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D73A49","--shiki-dark":"#D4D4D4"},"children":" \u003c\u003c"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#D4D4D4"},"children":"JSON"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"{"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"model\": \"google/diffusiongemma-26b-a4b-it\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"state\": \"Answer about the attached page.\","}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"content\": ["}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" {\"type\": \"image_url\","}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"image_url\": {\"url\": \"data:image/jpeg;base64,"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#9CDCFE"},"children":"$IMAGE"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\", \"detail\": \"high\"}}"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" ],"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"questions\": {"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"kind\": {"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"type\": \"choice\","}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"instructions\": \"What kind of document is this page from?\","}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"criteria\": {\"invoice\": null, \"receipt\": null, \"contract\": null, \"other\": null}"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"has_total\": {\"type\": \"noul\", \"instructions\": \"Is a total amount due visible on the page?\"},"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"legibility\": {"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"type\": \"score\","}}}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"instructions\": \"How legible is the text?\","}}}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" \"criteria\": [\"unreadable\", \"partly legible\", \"clear\"]"}}}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"}"}}}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#D4D4D4"},"children":"JSON"}}}},"\n"]}}}},"filename":"cURL"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light dark-plus","style":{"backgroundColor":"#fff","--shiki-dark-bg":"#0B0C0E","color":"#24292e","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"47","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"sysone-b317f2c7606c47c4975ba08166260\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"model\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"google/diffusiongemma-26b-a4b-it\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"answers\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"kind\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"choice\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"choice\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"receipt\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"probabilities\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"invoice\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.0022535559303185626"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"receipt\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.9966860953386762"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"contract\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.0003855850269454288"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"other\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.0006747637040598201"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"confidence\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.9819649256633525"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"has_total\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"noul\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"noul\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.5214069077960607"}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"legibility\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"score\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"score\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"1.9657897574947996"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"legend\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"0\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"unreadable\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"1\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"partly legible\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"2\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"clear\""}}]}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"probabilities\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"0\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.0020463012728342026"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"1\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.030117639959532254"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"2\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.9678360587676337"}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"confidence\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.8636438424763118"}}]}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"usage\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"72","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"input_tokens\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"417"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"74","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"output_tokens\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"76","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"input_tokens_details\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"78","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"cached_tokens\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"32"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"80","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"image_tokens\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"280"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"82","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"text_tokens\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"137"}}]}},"\n",{"type":"span","key":"84","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"86","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"reads\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"1"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"88","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"cost\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#B5CEA8"},"children":"0.001"}}]}},"\n",{"type":"span","key":"90","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"92","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"200"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light dark-plus","style":{"backgroundColor":"#fff","--shiki-dark-bg":"#0B0C0E","color":"#24292e","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"10","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"detail\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": ["}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"dict_type\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"loc\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"body\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"questions\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"msg\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"Input should be a valid dictionary\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#005CC5","--shiki-dark":"#9CDCFE"},"children":" \"input\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#032F62","--shiki-dark":"#CE9178"},"children":"\"bad\""}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#24292E","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"422"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"state":{"oneOf":[{"type":"string","title":"State","isRequired":true,"uniqueKey":"state.oneOf.0","typeLabel":"string"},{"type":"object","title":"State","additionalProperties":true,"isRequired":true,"uniqueKey":"state.oneOf.1","typeLabel":"State · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"state.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"State","isRequired":true,"uniqueKey":"state.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"state","typeLabel":"string | State · object | any[]"},"model":{"type":"string","title":"Model","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"questions":{"additionalProperties":{"oneOf":[{"type":"object","title":"NoulQuestion","description":"A yes/no question. The answer is ``P(yes)``.","required":["type"],"properties":{"type":{"type":"string","const":"noul","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.0.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.0.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.0.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.0.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.0.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.0.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.0.instructions","typeLabel":"string | Instructions · object | any[] | null"},"criteria":{"oneOf":[{"type":"object","title":"NoulCriteria","description":"Optional descriptions of the yes and no outcomes.","properties":{"true":{"oneOf":[{"type":"string","title":"True","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.0","typeLabel":"string"},{"type":"object","title":"True","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.1","typeLabel":"True · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"True","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"True","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.true","typeLabel":"string | True · object | any[] | null"},"false":{"oneOf":[{"type":"string","title":"False","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.0","typeLabel":"string"},{"type":"object","title":"False","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.1","typeLabel":"False · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"False","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"False","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0.false","typeLabel":"string | False · object | any[] | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.0","typeLabel":"NoulCriteria · object"},{"type":"null","uniqueKey":"questions.additionalProperties.oneOf.0.criteria.oneOf.1","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.0.criteria","typeLabel":"NoulCriteria · object | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.0","typeLabel":"NoulQuestion · object"},{"type":"object","title":"ChoiceQuestion","description":"Pick one of the named options; each may carry a description.","required":["type","criteria"],"properties":{"type":{"type":"string","const":"choice","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.1.type","typeLabel":"string"},"criteria":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.2.items.[INDEX]","typeLabel":"any"},"uniqueKey":"questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.2","typeLabel":"any[]"},{"type":"null","uniqueKey":"questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.1.criteria.additionalProperties","typeLabel":"string | object | any[] | null"},"type":"object","maxProperties":128,"minProperties":2,"title":"Criteria","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.1.criteria","typeLabel":"Criteria · object"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.1.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.1.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.1.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.1.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.1.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.1.instructions","typeLabel":"string | Instructions · object | any[] | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.1","typeLabel":"ChoiceQuestion · object"},{"type":"object","title":"ScoreQuestion","description":"An ordered rubric; the answer is the expected level, 0-indexed.","required":["type","criteria"],"properties":{"type":{"type":"string","const":"score","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.2.type","typeLabel":"string"},"criteria":{"items":{"oneOf":[{"type":"string","uniqueKey":"questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.2.items.[INDEX]","typeLabel":"any"},"uniqueKey":"questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.2","typeLabel":"any[]"}],"uniqueKey":"questions.additionalProperties.oneOf.2.criteria.items.[INDEX]","typeLabel":"string | object | any[]"},"type":"array","maxItems":10,"minItems":2,"title":"Criteria","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.2.criteria","typeLabel":"(string | object | any[])[]"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.2.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.2.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.2.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.2.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.2.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.2.instructions","typeLabel":"string | Instructions · object | any[] | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.2","typeLabel":"ScoreQuestion · object"},{"type":"object","title":"BoxQuestion","description":"Where something is in an image. Takes no ``criteria``; the answer is one box.","required":["type"],"properties":{"type":{"type":"string","const":"box","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.3.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.3.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.3.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.3.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.3.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.3.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.3.instructions","typeLabel":"string | Instructions · object | any[] | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.3","typeLabel":"BoxQuestion · object"},{"type":"object","title":"TextQuestion","description":"Text copied from the state; the answer locates it with a ``span``.","required":["type"],"properties":{"type":{"type":"string","const":"text","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.4.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.4.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.4.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.4.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.4.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.4.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.4.instructions","typeLabel":"string | Instructions · object | any[] | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.4","typeLabel":"TextQuestion · object"},{"type":"object","title":"NumberQuestion","description":"A number read or computed from the state, without separators or units.","required":["type"],"properties":{"type":{"type":"string","const":"number","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.5.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.5.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.5.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.5.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.5.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.5.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.5.instructions","typeLabel":"string | Instructions · object | any[] | null"},"decimals":{"oneOf":[{"type":"integer","title":"Decimals","description":"Digits after the point; 0 is an integer.","maximum":6,"minimum":0,"uniqueKey":"questions.additionalProperties.oneOf.5.decimals.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Decimals","description":"Digits after the point; 0 is an integer.","uniqueKey":"questions.additionalProperties.oneOf.5.decimals.oneOf.1","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.5.decimals","typeLabel":"integer | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.5","typeLabel":"NumberQuestion · object"},{"type":"object","title":"DateQuestion","description":"A calendar date, answered as ``YYYY-MM-DD``.","required":["type"],"properties":{"type":{"type":"string","const":"date","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.6.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.6.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.6.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.6.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.6.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.6.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.6.instructions","typeLabel":"string | Instructions · object | any[] | null"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.6","typeLabel":"DateQuestion · object"},{"type":"object","title":"ListQuestion","description":"Every match in the state, in order of appearance.","required":["type"],"properties":{"type":{"type":"string","const":"list","title":"Type","isRequired":true,"uniqueKey":"questions.additionalProperties.oneOf.7.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.7.instructions.oneOf.0","typeLabel":"string"},{"type":"object","title":"Instructions","additionalProperties":true,"uniqueKey":"questions.additionalProperties.oneOf.7.instructions.oneOf.1","typeLabel":"Instructions · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"questions.additionalProperties.oneOf.7.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.7.instructions.oneOf.2","typeLabel":"any[]"},{"type":"null","title":"Instructions","uniqueKey":"questions.additionalProperties.oneOf.7.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"questions.additionalProperties.oneOf.7.instructions","typeLabel":"string | Instructions · object | any[] | null"},"items":{"type":"string","enum":["text","number","date"],"title":"Items","default":"text","uniqueKey":"questions.additionalProperties.oneOf.7.\\items","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"questions.additionalProperties.oneOf.7","typeLabel":"ListQuestion · object"}],"uniqueKey":"questions.additionalProperties","typeLabel":"NoulQuestion · object | ChoiceQuestion · object | ScoreQuestion · object | BoxQuestion · object | TextQuestion · object | NumberQuestion · object | DateQuestion · object | ListQuestion · object"},"type":"object","maxProperties":16,"minProperties":1,"title":"Questions","description":"Typed questions to answer, keyed by caller id. At most 16 per decision.","isRequired":true,"uniqueKey":"questions","typeLabel":"Questions · object"},"assets":{"oneOf":[{"type":"object","title":"Assets","description":"Images for this request, keyed by the reference that stands for each one. A reference is replaced by its image wherever it appears in the state, in a question's instructions or in its criteria; an asset nothing references is a 422.","maxProperties":8,"minProperties":1,"additionalProperties":{"properties":{"type":{"type":"string","const":"image","title":"Type","default":"image","uniqueKey":"assets.oneOf.0.additionalProperties.type","typeLabel":"string"},"format":{"oneOf":[{"type":"string","title":"Format","enum":["png","jpg","jpeg"],"uniqueKey":"assets.oneOf.0.additionalProperties.format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Format","uniqueKey":"assets.oneOf.0.additionalProperties.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"assets.oneOf.0.additionalProperties.format","typeLabel":"enum\u003cstring> | null"},"data_base64":{"oneOf":[{"type":"string","title":"Data Base64","uniqueKey":"assets.oneOf.0.additionalProperties.data_base64.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data Base64","uniqueKey":"assets.oneOf.0.additionalProperties.data_base64.oneOf.1","typeLabel":"null"}],"uniqueKey":"assets.oneOf.0.additionalProperties.data_base64","typeLabel":"string | null"},"part":{"oneOf":[{"type":"string","title":"Part","uniqueKey":"assets.oneOf.0.additionalProperties.part.oneOf.0","typeLabel":"string"},{"type":"null","title":"Part","uniqueKey":"assets.oneOf.0.additionalProperties.part.oneOf.1","typeLabel":"null"}],"uniqueKey":"assets.oneOf.0.additionalProperties.part","typeLabel":"string | null"},"detail":{"type":"string","enum":["auto","low","high"],"title":"Detail","default":"auto","uniqueKey":"assets.oneOf.0.additionalProperties.detail","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"type":"object","title":"ImageAsset","description":"One image in ``assets``, named by the reference that stands for it.\n\nThe file rides inline in ``data_base64`` (with ``format``), or in the upload\npart ``part`` names. With both, ``part`` wins. ``detail`` is this gateway's\naddition and follows the same convention as an ``image_url`` part.","uniqueKey":"assets.oneOf.0.additionalProperties","typeLabel":"ImageAsset · object"},"uniqueKey":"assets.oneOf.0","typeLabel":"Assets · object"},{"type":"null","title":"Assets","description":"Images for this request, keyed by the reference that stands for each one. A reference is replaced by its image wherever it appears in the state, in a question's instructions or in its criteria; an asset nothing references is a 422.","uniqueKey":"assets.oneOf.1","typeLabel":"null"}],"uniqueKey":"assets","typeLabel":"Assets · object | null"},"content":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"TextPart","description":"``{\"type\": \"text\", \"text\": ...}`` — appended after the state.","required":["type","text"],"properties":{"type":{"type":"string","const":"text","title":"Type","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"string"},"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"TextPart · object"},{"type":"object","title":"ImageUrlPart","description":"``{\"type\": \"image_url\", \"image_url\": {\"url\": ..., \"detail\": ...}}`` — the\nOpenAI chat content part, so a caller can reuse what it already sends to\n``/openai/chat/completions``.","required":["type","image_url"],"properties":{"type":{"type":"string","const":"image_url","title":"Type","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"string"},"image_url":{"properties":{"url":{"type":"string","title":"Url","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.1.image_url.url","typeLabel":"string"},"detail":{"type":"string","enum":["auto","low","high"],"title":"Detail","default":"auto","uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.1.image_url.detail","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"type":"object","required":["url"],"title":"ImageUrl","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.1.image_url","typeLabel":"ImageUrl · object"}},"additionalProperties":false,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"ImageUrlPart · object"},{"type":"object","title":"FilePart","description":"``{\"type\": \"file\", \"file\": {\"filename\": ..., \"file_data\": ...}}`` — the\nOpenAI content part, so a caller sends a PDF here exactly as it does to\n``/openai/chat/completions``.","required":["type","file"],"properties":{"type":{"type":"string","const":"file","title":"Type","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"string"},"file":{"properties":{"file_data":{"type":"string","title":"File Data","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.file.file_data","typeLabel":"string"},"filename":{"oneOf":[{"type":"string","title":"Filename","uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.file.filename.oneOf.0","typeLabel":"string"},{"type":"null","title":"Filename","uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.file.filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.file.filename","typeLabel":"string | null"},"detail":{"type":"string","enum":["auto","low","high"],"title":"Detail","default":"auto","uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.file.detail","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"type":"object","required":["file_data"],"title":"FileContent","description":"OpenAI's ``file`` object: the PDF inline in ``file_data``. ``detail`` is ours.","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2.file","typeLabel":"FileContent · object"}},"additionalProperties":false,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"FilePart · object"},{"type":"object","title":"DocumentUrlPart","description":"``{\"type\": \"document_url\", \"document_url\": {\"url\": ..., \"detail\": ...}}`` —\nthe same PDF as a ``file`` part, named for callers that already speak this shape.","required":["type","document_url"],"properties":{"type":{"type":"string","const":"document_url","title":"Type","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"string"},"document_url":{"properties":{"url":{"type":"string","title":"Url","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.3.document_url.url","typeLabel":"string"},"detail":{"type":"string","enum":["auto","low","high"],"title":"Detail","default":"auto","uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.3.document_url.detail","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"type":"object","required":["url"],"title":"DocumentUrl","isRequired":true,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.3.document_url","typeLabel":"DocumentUrl · object"}},"additionalProperties":false,"uniqueKey":"content.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"DocumentUrlPart · object"}],"uniqueKey":"content.oneOf.0.items.[INDEX]","typeLabel":"TextPart · object | ImageUrlPart · object | FilePart · object | DocumentUrlPart · object"},"title":"Content","description":"Media for this request, as OpenAI content parts: `image_url` (max 8, data:image/…;base64 or http(s), ≤5 MB each), or one `file` or `document_url` PDF whose first `document_max_pages` (≤16) pages are read as images. Text is read after the state.","uniqueKey":"content.oneOf.0","typeLabel":"(TextPart · object | ImageUrlPart · object | FilePart · object | DocumentUrlPart · object)[]"},{"type":"null","title":"Content","description":"Media for this request, as OpenAI content parts: `image_url` (max 8, data:image/…;base64 or http(s), ≤5 MB each), or one `file` or `document_url` PDF whose first `document_max_pages` (≤16) pages are read as images. Text is read after the state.","uniqueKey":"content.oneOf.1","typeLabel":"null"}],"uniqueKey":"content","typeLabel":"(TextPart · object | ImageUrlPart · object | FilePart · object | DocumentUrlPart · object)[] | null"},"document_max_pages":{"oneOf":[{"type":"integer","title":"Document Max Pages","description":"Pages of the document to read, from the first. Default and maximum 16.","maximum":16,"minimum":1,"uniqueKey":"document_max_pages.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Document Max Pages","description":"Pages of the document to read, from the first. Default and maximum 16.","uniqueKey":"document_max_pages.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_max_pages","typeLabel":"integer | null"},"document_pages":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"integer","uniqueKey":"document_pages.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"integer"},{"type":"object","properties":{"[0]":{"type":"integer","uniqueKey":"document_pages.oneOf.0.items.[INDEX].oneOf.1.[0]","typeLabel":"integer"},"[1]":{"type":"integer","uniqueKey":"document_pages.oneOf.0.items.[INDEX].oneOf.1.[1]","typeLabel":"integer"}},"uniqueKey":"document_pages.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"document_pages.oneOf.0.items.[INDEX]","typeLabel":"integer | object"},"title":"Document Pages","description":"Which pages to read, 0-indexed: page indices or half-open `[start, stop]` ranges, negative counting from the end, read in the order given. Unset reads from the first page. `document_max_pages` caps the selection.","minItems":1,"uniqueKey":"document_pages.oneOf.0","typeLabel":"(integer | object)[]"},{"type":"null","title":"Document Pages","description":"Which pages to read, 0-indexed: page indices or half-open `[start, stop]` ranges, negative counting from the end, read in the order given. Unset reads from the first page. `document_max_pages` caps the selection.","uniqueKey":"document_pages.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_pages","typeLabel":"(integer | object)[] | null"},"document_dpi":{"oneOf":[{"type":"integer","title":"Document Dpi","description":"Resolution the document's pages are rendered at. Default 96; raise it for small or faint print.","maximum":400,"minimum":72,"uniqueKey":"document_dpi.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Document Dpi","description":"Resolution the document's pages are rendered at. Default 96; raise it for small or faint print.","uniqueKey":"document_dpi.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_dpi","typeLabel":"integer | null"},"reasoning_effort":{"oneOf":[{"type":"string","title":"Reasoning Effort","enum":["none","minimal","low","medium","high"],"uniqueKey":"reasoning_effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Reasoning Effort","uniqueKey":"reasoning_effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning_effort","typeLabel":"enum\u003cstring> | null"},"steps":{"oneOf":[{"type":"integer","title":"Steps","description":"Denoise steps per read; Jev's contract is 1.","maximum":8,"minimum":1,"uniqueKey":"steps.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Steps","description":"Denoise steps per read; Jev's contract is 1.","uniqueKey":"steps.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps","typeLabel":"integer | null"},"samples":{"oneOf":[{"type":"integer","title":"Samples","description":"Fixed number of noise draws to average. Unset: one read, re-read on high entropy.","maximum":32,"minimum":1,"uniqueKey":"samples.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Samples","description":"Fixed number of noise draws to average. Unset: one read, re-read on high entropy.","uniqueKey":"samples.oneOf.1","typeLabel":"null"}],"uniqueKey":"samples","typeLabel":"integer | null"}},"additionalProperties":false,"type":"object","required":["state","model","questions"],"title":"SystemOneRequest","description":"The body of ``POST /typesafe/v1/systemone``.","uniqueKey":"","typeLabel":"SystemOneRequest · object"},"examples":{"Example":{"title":"Example","value":{"state":"\u003cstring>","model":"\u003cstring>","questions":{},"content":[{"type":"text","text":"\u003cstring>"}],"document_max_pages":8,"document_pages":[123],"document_dpi":236,"steps":4,"samples":16}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"a836b06e-d8f8-4b83-8918-5dfaf4e5de4a":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"model":{"type":"string","title":"Model","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"answers":{"additionalProperties":{"oneOf":[{"type":"object","title":"NoulAnswer","required":["noul"],"properties":{"noul":{"type":"number","maximum":1,"minimum":0,"title":"Noul","description":"P(yes)","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.0.noul","typeLabel":"number"},"type":{"type":"string","const":"noul","title":"Type","default":"noul","uniqueKey":"answers.additionalProperties.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"answers.additionalProperties.oneOf.0","typeLabel":"NoulAnswer · object"},{"type":"object","title":"ChoiceAnswer","required":["choice","probabilities","confidence"],"properties":{"choice":{"type":"string","title":"Choice","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.choice","typeLabel":"string"},"probabilities":{"additionalProperties":{"type":"number","uniqueKey":"answers.additionalProperties.oneOf.1.probabilities.additionalProperties","typeLabel":"number"},"type":"object","title":"Probabilities","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.probabilities","typeLabel":"Probabilities · object"},"confidence":{"type":"number","maximum":1,"minimum":0,"title":"Confidence","description":"1 - H(p)/ln K","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.confidence","typeLabel":"number"},"type":{"type":"string","const":"choice","title":"Type","default":"choice","uniqueKey":"answers.additionalProperties.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"answers.additionalProperties.oneOf.1","typeLabel":"ChoiceAnswer · object"},{"type":"object","title":"ScoreAnswer","required":["score","legend","probabilities","confidence"],"properties":{"score":{"type":"number","title":"Score","description":"Expected level, sum(i * p_i)","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.2.score","typeLabel":"number"},"legend":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"answers.additionalProperties.oneOf.2.legend.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","additionalProperties":true,"uniqueKey":"answers.additionalProperties.oneOf.2.legend.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"answers.additionalProperties.oneOf.2.legend.additionalProperties.oneOf.2.items.[INDEX]","typeLabel":"any"},"uniqueKey":"answers.additionalProperties.oneOf.2.legend.additionalProperties.oneOf.2","typeLabel":"any[]"}],"uniqueKey":"answers.additionalProperties.oneOf.2.legend.additionalProperties","typeLabel":"string | object | any[]"},"type":"object","title":"Legend","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.2.legend","typeLabel":"Legend · object"},"probabilities":{"additionalProperties":{"type":"number","uniqueKey":"answers.additionalProperties.oneOf.2.probabilities.additionalProperties","typeLabel":"number"},"type":"object","title":"Probabilities","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.2.probabilities","typeLabel":"Probabilities · object"},"confidence":{"type":"number","maximum":1,"minimum":0,"title":"Confidence","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.2.confidence","typeLabel":"number"},"type":{"type":"string","const":"score","title":"Type","default":"score","uniqueKey":"answers.additionalProperties.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"answers.additionalProperties.oneOf.2","typeLabel":"ScoreAnswer · object"},{"type":"object","title":"BoxAnswer","required":["box"],"properties":{"box":{"properties":{"top":{"type":"number","maximum":1,"minimum":0,"title":"Top","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.3.box.top","typeLabel":"number"},"bottom":{"type":"number","maximum":1,"minimum":0,"title":"Bottom","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.3.box.bottom","typeLabel":"number"},"left":{"type":"number","maximum":1,"minimum":0,"title":"Left","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.3.box.left","typeLabel":"number"},"right":{"type":"number","maximum":1,"minimum":0,"title":"Right","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.3.box.right","typeLabel":"number"}},"type":"object","required":["top","bottom","left","right"],"title":"BoxCoordinates","description":"A box's edges as fractions of the image: ``top``/``bottom`` of its height,\n``left``/``right`` of its width, measured from the top-left corner.","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.3.box","typeLabel":"BoxCoordinates · object"},"type":{"type":"string","const":"box","title":"Type","default":"box","uniqueKey":"answers.additionalProperties.oneOf.3.type","typeLabel":"string"},"confidence":{"oneOf":[{"type":"number","title":"Confidence","maximum":1,"minimum":0,"uniqueKey":"answers.additionalProperties.oneOf.3.confidence.oneOf.0","typeLabel":"number"},{"type":"null","title":"Confidence","uniqueKey":"answers.additionalProperties.oneOf.3.confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"answers.additionalProperties.oneOf.3.confidence","typeLabel":"number | null"}},"uniqueKey":"answers.additionalProperties.oneOf.3","typeLabel":"BoxAnswer · object"},{"type":"object","title":"ValueAnswer","description":"An extracted value of the field's type, or ``null`` when the state does not give one.","required":["type","value","confidence","p_null"],"properties":{"type":{"type":"string","enum":["text","number","date","list"],"title":"Type","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"integer","title":"Value","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.0","typeLabel":"integer"},{"type":"number","title":"Value","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.1","typeLabel":"number"},{"type":"string","title":"Value","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.2","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"integer","uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"integer"},{"type":"number","uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"string","uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"string"}],"uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.3.items.[INDEX]","typeLabel":"integer | number | string"},"title":"Value","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.3","typeLabel":"(integer | number | string)[]"},{"type":"null","title":"Value","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.value.oneOf.4","typeLabel":"null"}],"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.value","typeLabel":"integer | number | string | (integer | number | string)[] | null"},"confidence":{"oneOf":[{"type":"number","title":"Confidence","description":"Probability of the value exactly as returned; null where the model reports none","maximum":1,"minimum":0,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.confidence.oneOf.0","typeLabel":"number"},{"type":"null","title":"Confidence","description":"Probability of the value exactly as returned; null where the model reports none","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.confidence.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.confidence","typeLabel":"number | null"},"p_null":{"oneOf":[{"type":"number","title":"P Null","description":"Probability that the state does not give a value; null where the model reports none","maximum":1,"minimum":0,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.p_null.oneOf.0","typeLabel":"number"},{"type":"null","title":"P Null","description":"Probability that the state does not give a value; null where the model reports none","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.p_null.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.p_null","typeLabel":"number | null"},"span":{"oneOf":[{"type":"object","title":"Span","description":"Text: [start, end) of the value in a string state","properties":{"[0]":{"type":"integer","uniqueKey":"answers.additionalProperties.oneOf.4.span.oneOf.0.[0]","typeLabel":"integer"},"[1]":{"type":"integer","uniqueKey":"answers.additionalProperties.oneOf.4.span.oneOf.0.[1]","typeLabel":"integer"}},"uniqueKey":"answers.additionalProperties.oneOf.4.span.oneOf.0","typeLabel":"Span · object"},{"type":"null","title":"Span","description":"Text: [start, end) of the value in a string state","uniqueKey":"answers.additionalProperties.oneOf.4.span.oneOf.1","typeLabel":"null"}],"uniqueKey":"answers.additionalProperties.oneOf.4.span","typeLabel":"Span · object | null"},"spans":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"[0]":{"type":"integer","uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.0.items.[INDEX].oneOf.0.[0]","typeLabel":"integer"},"[1]":{"type":"integer","uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.0.items.[INDEX].oneOf.0.[1]","typeLabel":"integer"}},"uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.0.items.[INDEX]","typeLabel":"object | null"},"title":"Spans","description":"List: the span of each item","uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.0","typeLabel":"(object | null)[]"},{"type":"null","title":"Spans","description":"List: the span of each item","uniqueKey":"answers.additionalProperties.oneOf.4.spans.oneOf.1","typeLabel":"null"}],"uniqueKey":"answers.additionalProperties.oneOf.4.spans","typeLabel":"(object | null)[] | null"}},"uniqueKey":"answers.additionalProperties.oneOf.4","typeLabel":"ValueAnswer · object"}],"uniqueKey":"answers.additionalProperties","typeLabel":"NoulAnswer · object | ChoiceAnswer · object | ScoreAnswer · object | BoxAnswer · object | ValueAnswer · object"},"type":"object","title":"Answers","isRequired":true,"uniqueKey":"answers","typeLabel":"Answers · object"},"usage":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens","default":0,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","title":"Output Tokens","default":0,"uniqueKey":"usage.output_tokens","typeLabel":"integer"},"input_tokens_details":{"properties":{"cached_tokens":{"type":"integer","title":"Cached Tokens","default":0,"uniqueKey":"usage.input_tokens_details.cached_tokens","typeLabel":"integer"},"image_tokens":{"type":"integer","title":"Image Tokens","default":0,"uniqueKey":"usage.input_tokens_details.image_tokens","typeLabel":"integer"},"text_tokens":{"type":"integer","title":"Text Tokens","default":0,"uniqueKey":"usage.input_tokens_details.text_tokens","typeLabel":"integer"}},"type":"object","title":"InputTokenDetails","description":"What the prompt was made of, in the shape the chat route reports usage.\n\n``cached_tokens`` is the engine's own count (the schema prompt repeats, so a\nwarm replica serves most of it from the prefix cache). ``image_tokens`` is\nderived from the budget this request applied, since the engine reports no\nimage/text split; ``text_tokens`` is the remainder.","uniqueKey":"usage.input_tokens_details","typeLabel":"InputTokenDetails · object"},"reads":{"type":"integer","title":"Reads","default":0,"uniqueKey":"usage.reads","typeLabel":"integer"},"cost":{"type":"number","title":"Cost","default":0,"uniqueKey":"usage.cost","typeLabel":"number"}},"type":"object","title":"Usage","description":"Jev's two counters, plus what the gateway bills for them.\n\n``cost`` is this gateway's addition. TypeSafe's decoder ignores a field it\ndoes not model, so the official SDK still parses the response; a client that\nreads the raw JSON (the ``vlmrun`` CLI) can show the price of a read.","isRequired":true,"uniqueKey":"usage","typeLabel":"Usage · object"},"id":{"type":"string","title":"Id","uniqueKey":"id","typeLabel":"string"}},"type":"object","required":["model","answers","usage"],"title":"SystemOneResponse","uniqueKey":"","typeLabel":"SystemOneResponse · object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","answers":{},"usage":{"input_tokens":0,"output_tokens":0,"input_tokens_details":{"cached_tokens":0,"image_tokens":0,"text_tokens":0},"reads":0,"cost":0},"id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e49e0c8f-fa6d-497f-ba76-4d1ead6d374c":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"89929ddf-c72e-4e66-83d7-7cbf0169445d":{"_PermissiveHTTPBearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"_PermissiveHTTPBearer"}}},"servers":{"d281b7d7-95b1-4022-b02a-e101a2007f0c":{"url":"https://gateway.vlm.run","description":"Production"},"c561eafe-b91e-47b4-a339-7dfe95662373":{"url":"http://localhost:8001","description":"Local development"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"_PermissiveHTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"_PermissiveHTTPBearer","name":"Authorization"}],"title":"_PermissiveHTTPBearer"}]},"originalFileLocation":"https://gateway.vlm.run/openapi.json"},"subdomain":"autonomiai","siteName":"VLM Run","title":"System One - VLM Run","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T19:44:22.310Z","originalFileLocation":"gateway/api-reference/post-systemone.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs\">\u003cmeta data-mint-head name=\"application-name\" content=\"VLM Run\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_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/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"System One - VLM Run\">\u003cmeta data-mint-head property=\"og:description\" content=\"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VLM Run\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vlm.run/gateway/api-reference/post-systemone\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://autonomiai.mintlify.app/_mintlify/api/og/v2?division=TypeSafe+Compatible+API\u0026amp;title=System+One\u0026amp;description=Typed%2C+calibrated+decisions+and+typed+extraction+over+text%2C+JSON%2C+images%2C+and+PDFs\u0026amp;theme=afe032f41fb9147627feca61\u0026amp;signature=34a6211e54bc3aaa75c25ce44d1c69619d3da5d482ab4efc3c04e90e0c9d7902\">\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=\"System One - VLM Run\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://autonomiai.mintlify.app/_mintlify/api/og/v2?division=TypeSafe+Compatible+API\u0026amp;title=System+One\u0026amp;description=Typed%2C+calibrated+decisions+and+typed+extraction+over+text%2C+JSON%2C+images%2C+and+PDFs\u0026amp;theme=afe032f41fb9147627feca61\u0026amp;signature=34a6211e54bc3aaa75c25ce44d1c69619d3da5d482ab4efc3c04e90e0c9d7902\">\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/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VLM Run\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1F5ACA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vlm.run/gateway/api-reference/post-systemone\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/gateway/api-reference/post-systemone.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vlm.run/#organization\",\"name\":\"VLM Run\",\"url\":\"https://docs.vlm.run\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=fbea8392452b746e14273d7670a4f535\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vlm.run#website\",\"name\":\"VLM Run\",\"url\":\"https://docs.vlm.run\",\"publisher\":{\"@id\":\"https://docs.vlm.run/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vlm.run/gateway/api-reference/post-systemone#webpage\",\"url\":\"https://docs.vlm.run/gateway/api-reference/post-systemone\",\"name\":\"System One\",\"description\":\"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs\",\"dateModified\":\"2026-10-27T19:44:22.310Z\",\"isPartOf\":{\"@id\":\"https://docs.vlm.run#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vlm.run/gateway/api-reference/post-systemone#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vlm.run/gateway/api-reference/post-systemone#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"VLM Run\",\"item\":\"https://docs.vlm.run\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"System One\",\"item\":\"https://docs.vlm.run/gateway/api-reference/post-systemone\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.vlm.run/gateway/api-reference/post-systemone#apireference\",\"headline\":\"System One\",\"name\":\"System One\",\"description\":\"Typed, calibrated decisions and typed extraction over text, JSON, images, and PDFs\",\"url\":\"https://docs.vlm.run/gateway/api-reference/post-systemone\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vlm.run/gateway/api-reference/post-systemone#webpage\"},\"dateModified\":\"2026-10-27T19:44:22.310Z\",\"publisher\":{\"@id\":\"https://docs.vlm.run/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vlm.run#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VLM Run\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"VLM Run","nav":{"global":null,"tabs":[{"tab":"Gateway","icon":"network-wired","pages":[{"title":"Gateway","href":"/gateway/introduction"}]},{"tab":"Orion","icon":"robot","pages":[{"title":"Orion","href":"/agents/introduction"}]},{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/gateway/guides/document-ocr"}]},{"tab":"API reference","icon":"server","anchors":[{"anchor":"Gateway API","icon":"network-wired","groups":[{"group":"OpenAI Compatible API","pages":[{"title":"Health","icon":"heartbeat","openapi":"https://gateway.vlm.run/openapi.json GET /health","href":"/gateway/api-reference/get-health"},{"title":"Chat Completions","icon":"comments","openapi":"https://gateway.vlm.run/openapi.json POST /openai/chat/completions","href":"/gateway/api-reference/post-chat-completions"},{"title":"List Models","icon":"table-list","openapi":"https://gateway.vlm.run/openapi.json GET /openai/models","href":"/gateway/api-reference/get-models"},{"title":"Get Model","icon":"cube","openapi":"https://gateway.vlm.run/openapi.json GET /openai/models/{model_id}","href":"/gateway/api-reference/get-model-by-id"},{"title":"Get Completion","icon":"receipt","openapi":"https://gateway.vlm.run/openapi.json GET /openai/completions/{completion_id}","href":"/gateway/api-reference/get-completion"},{"title":"Embeddings","icon":"vector-square","openapi":"https://gateway.vlm.run/openapi.json POST /openai/embeddings","href":"/gateway/api-reference/post-embeddings"},{"title":"Audio Transcriptions","description":"OpenAI-compatible speech-to-text","icon":"microphone","openapi":"https://gateway.vlm.run/openapi.json POST /openai/audio/transcriptions","href":"/gateway/api-reference/post-audio-transcriptions"}]},{"group":"TypeSafe Compatible API","pages":[{"title":"System One","openapi":"https://gateway.vlm.run/openapi.json POST /typesafe/v1/systemone","icon":"scale-balanced","href":"/gateway/api-reference/post-systemone"},{"title":"List Models","description":"Current TypeSafe-compatible models on the /typesafe route","openapi":"https://gateway.vlm.run/openapi.json GET /typesafe/v1/models","icon":"table-list","href":"/gateway/api-reference/get-typesafe-models"}]},{"group":"Realtime API","pages":[{"title":"Realtime Frames","icon":"video","href":"/gateway/api-reference/ws-realtime"},{"title":"Realtime System One","icon":"bolt","href":"/gateway/api-reference/ws-systemone"}]}]},{"anchor":"Orion API","icon":"robot","pages":[{"title":"Orion API","href":"/api-reference"}]}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/sdk-reference/getting-started"}]}]},"basePath":"","title":"System One - VLM Run","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}