Decision models answer named, typed questions about the state you provide instead of generating prose:
choice selects one named option and returns a probability for every option.
score returns an expected score over an ordered rubric.
noul returns the probability that a yes/no statement is true.
Image-capable decision models can also evaluate photos and return the same typed answers. Supported formats and limits vary by model; see Image input, Bison-1 and Groundhog-1, and Mercury Decide.For new HTTP integrations, use the native POST /api/v1/decisions endpoint. If you already use the official TypeSafe SDK, point it at NanoGPT’s POST /api/v1/systemone compatibility endpoint. Most decision models are also available through NanoGPT’s OpenAI-compatible Chat Completions and Responses APIs and the Anthropic-compatible Messages API. Mercury Decide requires the native Decisions endpoint.Only input tokens are billed. Browse every decision model, with current pricing, on nano-gpt.com/models/decisions, or list them with GET /api/v1/decision-models.
Decision models work on both API hosts. The examples use the direct API host, https://api.nano-gpt.com; https://nano-gpt.com accepts the same requests. See API Hosts.Before using a model on either host, check that host’s GET /api/v1/models?detailed=true&output_modalities=decisions catalog for the model, its supported_endpoints, and its decision_input capabilities and limits. Catalogs can differ during rollouts.
Decision models return calibrated probabilities, not generated text. Use a chat model when you need an explanation or other free-form response.
Models
Model
Context
Images
Use
typesafe/jev-1.13
32K
No
TypeSafe Jev 1.13, pinned for integrations that should not follow alias upgrades.
typesafe/jev-latest
32K
No
Moving alias for the latest TypeSafe Jev release.
liquid/d1
64K
No
Liquid AI’s D1.
baselabs/bison-1
32,768 per question
Yes, PNG
Base Labs’ dense decision model for classification, routing and scoring.
Perplexity’s PPLX Decider v1.2. Supports zero data retention.
cloudflare/clef
1,800 text tokens
Yes
Cloudflare’s open decision model.
cloudflare/clef-flash
1,800 text tokens
Yes
Lower-cost Clef variant.
Use perplexity/pplx-decider-v1.2 for PPLX integrations. Requests for the retired perplexity/pplx-decider-v1.1-27b ID return HTTP 410 with code model_retired; update the model ID explicitly to use v1.2. The v1.2 price is $0.02 per million input tokens, with free output.Clef also accepts clef. The System One compatibility endpoint also accepts the official SDK model names jev-1.13 and jev-latest. GET /api/v1/models leaves decision models out, because they reject plain chat requests. List them with GET /api/v1/decision-models, which returns detailed entries by default (detailed=false for IDs only), or add output_modalities=decisions to /api/v1/models and its subscription, paid and personalized variants. Each entry has architecture.output_modalities: ["decisions"], a supported_endpoints list, and a decision_input object. decision_input.image_input is true for the image-capable models, and decision_input.image_limits lists their limits.For Clef and Clef Flash, the 1,800-token limit covers all text in the request, including state text, questions and request overhead. Images are counted separately; see Image input.
Bison-1 and Groundhog-1
Use baselabs/bison-1 or baselabs/groundhog-1 with the native Decisions or
System One endpoint. The short IDs bison-1 and groundhog-1 also work. Typed
questions are supported through Chat Completions, Messages and Responses with
text input. Neither model generates prose or supports streaming, tools or reasoning.Bison-1 costs $0.10 per million input tokens; Groundhog-1 costs $0.035. Answer
tokens are free. Shared state is billed once, plus each question, including image
tokens. Cached input uses the ordinary input rate. Both models are excluded from
subscriptions and subscriber discounts.Each request accepts 1–256 questions with non-empty text instructions and
non-empty text criterion descriptions. A choice question accepts 1–255 options;
a score question requires 2–10 levels. Across all questions, the maximum is 512
options, with each noul question counting as two. For noul, omit criteria or
provide exactly true and false descriptions.NanoGPT applies conservative input admission limits of 32,768 tokens per question
for Bison-1 and 16,384 for Groundhog-1. Each limit includes shared state, the
question, criteria, formatting and images. Aggregate billed input across multiple
questions can exceed one question’s context limit.Send text, a JSON object, or an array as state. A top-level null or an object
with a messages key is unsupported. Image input must be placed directly in a
state array: up to four static inline PNG images, each at most 512 × 512 pixels.
All images together may contain at most 240,000 base64 characters (180,000 decoded
bytes), within a 1 MiB JSON request body. Remote URLs, JPEG and WebP are unsupported.
Omit image_url.detail or set it to auto.Omit user, session_id and trace, including when adapting the examples below.
The provider object accepts only zdr and data_collection; provider selection
is unavailable. Zero data retention is unverified: requests requiring
provider.zdr: true, an API-key ZDR policy, or provider.data_collection: "deny"
return 400 zdr_not_supported. Transport redaction is unsupported, and image
input cannot be combined with PII redaction.
Mercury Decide
Use inception/mercury-decide (or mercury-decide) only with
POST /api/v1/decisions. It does not support System One, Chat Completions,
Responses, or Messages compatibility endpoints. It costs $0.02 per million input
tokens at the current launch price, with no output charge. It is not included in
subscriptions and is excluded from subscriber discounts.Omit user, session_id, and trace when selecting Mercury Decide, including
when adapting the native examples below. These fields return HTTP 400 with code
parameter_not_supported. A minimal extraction request is:
Mercury Decide accepts 1–64 named questions of type noul, choice, score, or
extract. Text or JSON state is supported. Image requests accept up to four
inline PNG images in a state array; remote image URLs are unsupported. Extraction
is text-only, supports up to 26 fields per question, and returns exact spans with
Unicode code-point offsets. Check decision_input in the
live decision catalog for image
size limits and extraction controls.Zero data retention and provider selection are unavailable. Requests requiring
provider.zdr: true or provider.data_collection: "deny" are rejected. Transport
redaction is unsupported, and extraction cannot use masked or redacted input.
Native Decisions API
Endpoint
POST https://api.nano-gpt.com/api/v1/decisions
Authenticate with either Authorization: Bearer YOUR_API_KEY or x-api-key: YOUR_API_KEY.
Example request
curl https://api.nano-gpt.com/api/v1/decisions \ -H "Authorization: Bearer $NANOGPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "typesafe/jev-1.13", "state": { "ticket": "I was charged twice and need this fixed before Friday.", "customer_tier": "business" }, "questions": { "route": { "type": "choice", "instructions": "Which team should handle this ticket?", "criteria": { "billing": "Payments, invoices, refunds, or duplicate charges", "technical": "Product behavior, bugs, or integrations", "sales": "Plans, pricing, or purchasing" } }, "urgency": { "type": "score", "instructions": "How urgent is the ticket?", "criteria": [ "No time pressure", "Can wait several days", "Needs attention within one business day", "Immediate action is required" ] }, "needs_human_review": { "type": "noul", "instructions": "Does this ticket need human review?", "criteria": { "true": "A person should review the case", "false": "Automation can safely handle the case" } } }, "user": "customer_123" }'
const response = await fetch("https://api.nano-gpt.com/api/v1/decisions", { method: "POST", headers: { Authorization: `Bearer ${process.env.NANOGPT_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ model: "typesafe/jev-1.13", state: { ticket: "I was charged twice and need this fixed before Friday.", customer_tier: "business", }, questions: { route: { type: "choice", instructions: "Which team should handle this ticket?", criteria: { billing: "Payments, invoices, refunds, or duplicate charges", technical: "Product behavior, bugs, or integrations", sales: "Plans, pricing, or purchasing", }, }, urgency: { type: "score", instructions: "How urgent is the ticket?", criteria: [ "No time pressure", "Can wait several days", "Needs attention within one business day", "Immediate action is required", ], }, needs_human_review: { type: "noul", instructions: "Does this ticket need human review?", criteria: { true: "A person should review the case", false: "Automation can safely handle the case", }, }, }, user: "customer_123", }),});if (!response.ok) throw new Error(await response.text());const decision = await response.json();console.log(decision.answers);
import osimport requestsresponse = requests.post( "https://api.nano-gpt.com/api/v1/decisions", headers={ "Authorization": f"Bearer {os.environ['NANOGPT_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "typesafe/jev-1.13", "state": { "ticket": "I was charged twice and need this fixed before Friday.", "customer_tier": "business", }, "questions": { "route": { "type": "choice", "instructions": "Which team should handle this ticket?", "criteria": { "billing": "Payments, invoices, refunds, or duplicate charges", "technical": "Product behavior, bugs, or integrations", "sales": "Plans, pricing, or purchasing", }, }, "urgency": { "type": "score", "instructions": "How urgent is the ticket?", "criteria": [ "No time pressure", "Can wait several days", "Needs attention within one business day", "Immediate action is required", ], }, "needs_human_review": { "type": "noul", "instructions": "Does this ticket need human review?", "criteria": { "true": "A person should review the case", "false": "Automation can safely handle the case", }, }, }, "user": "customer_123", }, timeout=30,)response.raise_for_status()print(response.json()["answers"])
noul is the probability of the true outcome. A score can be fractional because it is the expected value across the returned score distribution.
Usage and cost
Every response reports usage.input_tokens and usage.output_tokens. Only input tokens are billed; output tokens are free.By default, the response is returned as soon as the answers are ready, and billing settles immediately afterwards. The charge itself is unaffected. These responses report usage.estimated_cost: the model’s published input price for the reported input tokens, in USD. It does not include account discounts or payment-currency conversion, so your actual charge can differ.To get the exact amount charged instead, send "include_usage": true. The response then waits for billing to settle and reports the exact charge, in USD, as usage.cost instead of usage.estimated_cost. This adds a little latency. Your usage history always shows the exact charge.
A decision model can decline individual questions. On models that do this, such as GPT-6 Luna Decisions, a declined question comes back with only a type, and the other questions keep their answers:
Check each answer’s type before reading its value. A response with a declined question returns 200 and is charged normally. If every question is declined, the request returns 400 with the code content_policy_violation and isn’t charged. The compatibility endpoints return a declined question the same way, inside the JSON text. The official TypeSafe JavaScript SDK returns it as is. The Python SDK drops answer types it doesn’t recognize and logs a warning, so a declined question is simply missing from answers.
Image input
perplexity/pplx-decider-v1.2, cloudflare/clef and cloudflare/clef-flash accept images on the native POST /api/v1/decisions endpoint and the POST /api/v1/systemone compatibility endpoint. Use them to classify photos, score visual content, or answer yes/no questions about an image.Make state an array, and put each image directly in it as an image_url part with a base64 data URL. Plain strings in the same array add text context. The optional image_url.detail field accepts auto, low or high.
import base64import osimport requestswith open("return-photo.jpg", "rb") as f: image = base64.b64encode(f.read()).decode()response = requests.post( "https://api.nano-gpt.com/api/v1/decisions", headers={"Authorization": f"Bearer {os.environ['NANOGPT_API_KEY']}"}, json={ "model": "perplexity/pplx-decider-v1.2", "state": [ "Return claim photo.", {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{image}"}}, ], "questions": { "condition": { "type": "choice", "instructions": "What condition is the returned item in?", "criteria": { "like_new": "No visible wear", "used": "Normal signs of use", "damaged": "Cracked, broken or missing parts", }, }, "screen_cracked": { "type": "noul", "instructions": "Is the screen cracked?", }, }, }, timeout=30,)response.raise_for_status()print(response.json()["answers"])
To compare several images, put a label before each one, for example ["Photo 1", image1, "Photo 2", image2], and refer to the labels in your question criteria.The following limits apply to PPLX Decider v1.2, Clef and Clef Flash. For the PNG-only
Base Labs models, use the Bison-1 and Groundhog-1 limits.
Limit
Value
Images per request
Up to 4
Formats
Static PNG, JPEG or WebP, sent inline as base64 data URLs. Remote image URLs are not fetched, and animated images are rejected.
Dimensions
Each image at most 512 × 512 pixels
Size
All images together at most 240,000 base64 characters (180,000 decoded bytes); the whole JSON body at most 1 MiB
Questions
Up to 128 per request
Text
Clef and Clef Flash: at most 1,800 text tokens, including questions and request overhead
Images are billed as input tokens at the model’s normal input price; usage.input_tokens includes them. Resize larger photos before sending them.Privacy rules for image requests:
PPLX Decider v1.2 supports zero data retention: set provider.zdr to true, or use an API key with a ZDR policy.
Clef and Clef Flash do not support zero data retention. On these models, requests that require ZDR, and image requests with provider.data_collection: "deny", return 400.
Image input cannot be combined with PII redaction.
PII redaction uses the provider you chose (Tinfoil or Grepture; see PII Redaction). Tinfoil-hosted decision models do not support it.
Image errors use these codes:
Status
Code
Meaning
400
invalid_image
The image is not a valid static PNG, JPEG or WebP data URL, or it is not placed directly in the state array.
400
unsupported_modality
The model does not accept images, or the requested privacy settings are not available for image input.
413
image_too_large
An image, or all images together, exceed the limits above. A JSON body over 1 MiB returns 413 request_body_too_large.
400
context_length_exceeded
The text and images exceed the model’s input limit.
The Chat Completions, Responses and Messages compatibility endpoints accept text only.
Question types
Type
Required fields
Answer
choice
instructions and a non-empty criteria object
choice, confidence, and probabilities keyed by the supplied labels
score
instructions and 2-10 ordered criteria entries
Fractional score, confidence, legend, and probabilities keyed from 0
noul
instructions; optional criteria.true and criteria.false descriptions
noul, a probability from 0 to 1
instructions and criterion descriptions can be strings, non-empty JSON objects, or non-empty arrays on models that support structured criteria. A choice criterion may also be null when its label is self-explanatory. Bison-1 and Groundhog-1 require non-empty text instructions and criterion descriptions. The top-level state can be a string, JSON object, or JSON array. Question names become keys in answers. Any question can come back declined instead.
Model-specific rules
Rule
Applies to
Noul questions need instructions, and criteria needs both true and false when it is sent.
Text input, including questions and request overhead, is limited to 1,800 tokens.
Clef, Clef Flash
Request fields
Field
Type
Required
Description
model
string
Yes
A decision model from the table above.
state
string, object, or array
Yes
Application state for the model to evaluate. Image-capable models also accept image parts in a state array; see Image input.
questions
object
Yes
One or more named choice, score, or noul questions. Mercury Decide also supports extract.
user
string
No
Your end-user identifier, up to 256 characters. Unsupported by Mercury Decide, Bison-1 and Groundhog-1; omit it for these models.
session_id
string
No
Your session identifier, up to 256 characters. Unsupported by Mercury Decide, Bison-1 and Groundhog-1; omit it for these models.
trace
object
No
Caller-supplied trace metadata. Unsupported by Mercury Decide, Bison-1 and Groundhog-1; omit it for these models.
provider
object or null
No
Model-specific routing controls, described below. Usually omit this field.
include_usage
boolean
No
Wait for billing to settle and report the exact charge as usage.cost. Defaults to false, which returns usage.estimated_cost without waiting. See Usage and cost.
For Jev 1.13, Jev Latest and Liquid D1, the provider object can contain endpoint-level order, only, ignore, allow_fallbacks, require_parameters, max_price, zdr, and data_collection controls. These names describe native Decisions endpoints such as TypeSafe; they are not NanoGPT provider IDs.PPLX Decider v1.2 uses a fixed decision endpoint and accepts only zdr and data_collection. Clef and Clef Flash support NanoGPT provider selection, including only, order, ignore, allow_fallbacks, max_price, and sort (price or auto). Clef and Clef Flash reject zdr: true.API-key provider restrictions and zero-data-retention requirements apply to every model.
Official TypeSafe SDK
NanoGPT exposes POST /api/v1/systemone so the official TypeSafe JavaScript and Python SDKs can call supported decision models without changing their request types. Mercury Decide is not supported on this endpoint. Set the model to jev-latest, jev-1.13, liquid/d1, perplexity/pplx-decider-v1.2, clef, cloudflare/clef-flash, baselabs/bison-1 or baselabs/groundhog-1. Image input and include_usage work the same way as on the native endpoint; preserve each model’s request restrictions above.
// npm install @typesafe-ai/sdkimport { choice, TypeSafeClient } from "@typesafe-ai/sdk";const client = new TypeSafeClient({ apiKey: process.env.NANOGPT_API_KEY!, baseURL: "https://api.nano-gpt.com/api", defaultModel: "jev-latest",});const result = await client.systemOne({ state: { ticket: "I was charged twice. Please fix this." }, questions: { route: choice("Which team should handle this ticket?", { billing: null, technical: null, sales: null, }), },});console.log(result.answers.route.choice);
# pip install typesafe-sdkimport osfrom typesafe_sdk import Choice, TypeSafeClientwith TypeSafeClient( api_key=os.environ["NANOGPT_API_KEY"], base_url="https://api.nano-gpt.com/api", model="jev-latest",) as client: result = client.system_one( state={"ticket": "I was charged twice. Please fix this."}, questions={ "route": Choice( instructions="Which team should handle this ticket?", criteria={ "billing": None, "technical": None, "sales": None, }, ), }, )print(result.choices["route"].choice)
The SDK’s System One call is supported. The SDK’s model-list method is not, because NanoGPT’s /api/v1/models response uses the NanoGPT/OpenAI-compatible model-list shape rather than TypeSafe’s model-list shape.
OpenAI and Anthropic compatibility
Use these shapes when a decision model must fit into an existing OpenAI- or Anthropic-compatible client. The answer object is returned as JSON text, so parse the returned string once.Chat Completions and Responses report usage.estimated_cost by default. To get the exact charge as usage.cost, send "include_usage": true or "stream_options": {"include_usage": true}. Messages responses always report the exact charge.
Parse content[0].text as JSON. max_tokens is accepted for Anthropic SDK compatibility but does not change the fixed typed output.
Limitations
Decision-model requests are deliberately narrower than chat generation requests:
Only non-streaming text input in user messages is supported on Chat Completions, Messages and Responses compatibility endpoints. PPLX Decider v1.2, Clef, Clef Flash, Bison-1 and Groundhog-1 accept images on the native Decisions and System One endpoints, subject to each model’s format and size limits. Mercury Decide accepts inline PNG images on the native Decisions endpoint only.
System, developer, assistant, tool, audio, video, and file input is not supported. Compatibility endpoints also reject images.
Tools, sampling controls, log probabilities, and reasoning generation controls are not supported.
On compatibility endpoints, output-token-limit fields are accepted where an SDK requires them, but they do not change the fixed typed output. Mercury Decide rejects these fields.
BYOK and accountless Lightning L402 payments are not supported.
Standard NanoGPT or X-Provider provider pins are not supported. Use the native Decisions provider object only when you need endpoint-level routing controls.
Unsupported combinations return a 400 error instead of being silently ignored.
Authorizations
bearerAuthapiKeyAuth
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Option 1
Option 2
model
enum<string>
required
Decision model ID. clef is an alias of the prefixed IDs. Use perplexity/pplx-decider-v1.2 for PPLX. The retired perplexity/pplx-decider-v1.1-27b ID returns HTTP 410 with code model_retired. Bison-1 uses baselabs/bison-1 (alias bison-1); Groundhog-1 uses baselabs/groundhog-1 (alias groundhog-1).
Available options:
typesafe/jev-1.13,
~typesafe/jev-latest,
typesafe/jev-latest,
liquid/d1,
cloudflare/clef,
clef,
cloudflare/clef-flash,
perplexity/pplx-decider-v1.2,
baselabs/bison-1,
bison-1,
baselabs/groundhog-1,
groundhog-1
state
stringobjectany[]
required
Application state to evaluate. PPLX Decider v1.2, Clef and Clef Flash also accept an array that mixes plain strings with up to four image_url parts holding static PNG, JPEG or WebP base64 data URLs, each at most 512x512 pixels (240,000 base64 characters in total). Remote image URLs are not fetched. For Bison-1 and Groundhog-1, state must be text, an array or a JSON object without a messages key; null is unsupported. Images must be direct state-array image_url parts with static PNG base64 data URLs. Maximum: four images, 512x512 pixels each, 240,000 aggregate base64 characters / 180,000 decoded bytes, within a 1 MiB request body. Omit image_url.detail or set auto. JPEG, WebP, remote URLs and image input with PII redaction are unsupported.
questions
object
required
Bison-1 and Groundhog-1 accept 1–256 questions with non-empty text instructions and criterion descriptions. Choice supports 1–255 options, score requires 2–10 levels, and noul criteria must be omitted or contain exactly true and false. At most 512 options total; each noul counts as two.
Show child attributes
provider
object | null
Optional model-specific routing controls. Jev 1.13, Jev Latest and Liquid D1 use native Decisions endpoint names. PPLX Decider v1.2 accepts only zdr and data_collection. Clef and Clef Flash support NanoGPT provider selection and reject zdr true. Bison-1 and Groundhog-1 accept only zdr and data_collection; provider selection is unavailable. Requiring zdr true or data_collection deny returns 400 zdr_not_supported.
session_id
string
Unsupported by Bison-1 and Groundhog-1; omit this field for these models.
Maximum string length: 256
trace
object
Unsupported by Bison-1 and Groundhog-1; omit this field for these models.
user
string
Unsupported by Bison-1 and Groundhog-1; omit this field for these models.
Maximum string length: 256
include_usage
boolean
default:false
Wait for billing to settle and report the exact charge as usage.cost. By default the response returns without waiting and reports usage.estimated_cost.
Response
Typed decisions response
model
string
required
answers
object
required
Show child attributes
usage
object
required
Show child attributes
id
string
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NanoGPT API Documentation","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/nano-gpt/6FCMRUAo4M2hGCVC/logo/light.svg?fit=max\u0026auto=format\u0026n=6FCMRUAo4M2hGCVC\u0026q=85\u0026s=d89f6de57aa2b12dc2ea56df5d7ec9f6","dark":"https://mintcdn.com/nano-gpt/6FCMRUAo4M2hGCVC/logo/dark.svg?fit=max\u0026auto=format\u0026n=6FCMRUAo4M2hGCVC\u0026q=85\u0026s=8717638b8ac464bcb371e66f6429ec5d"},"favicon":"https://mintcdn.com/nano-gpt/1yMRHEfiogPQFOKv/favicon.ico?fit=max\u0026auto=format\u0026n=1yMRHEfiogPQFOKv\u0026q=85\u0026s=c3c8e62fe0b2e0c9b152dad359de4eae","api":{"openapi":"api-reference/openapi.json","playground":{}},"navbar":{"links":[{"href":"/volume-pricing","label":"Volume Pricing"},{"href":"mailto:support@nano-gpt.com","label":"Support"}],"primary":{"type":"button","label":"Back to NanoGPT","href":"https://nano-gpt.com"}},"footer":{"socials":{"x":"https://x.com/nanogptcom","discord":"https://discord.gg/KaQt8gPG6V","linkedin":"https://linkedin.com/company/nanogpt"}},"variables":{"example-text-model":"openai/gpt-6.1-sol","example-text-model-name":"GPT 6.1 Sol"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Back to NanoGPT","icon":"book-open-cover","href":"https://nano-gpt.com"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/KaQt8gPG6V"},{"anchor":"Blog","icon":"newspaper","href":"https://nano-gpt.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nano-gpt","hasAudioNarration":false,"actualSubdomain":"nano-gpt","customDomains":["docs.nano-gpt.com"],"gitSource":{"type":"github","owner":"nano-gpt-com","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b049cef067338f84d94a805","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Endpoint Examples","count":57},{"language":"default","tag":"Miscellaneous","count":36},{"language":"default","tag":"Integrations","count":24},{"language":"default","tag":"API Reference","count":11},{"language":"default","tag":"Get Started","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/decisions","slug":"/api-reference/endpoint/decisions","pageMetadata":{"title":"Decisions","description":"Typed choices, scores, and yes/no probabilities from decision models.","openapi":"POST /v1/decisions","href":"/api-reference/endpoint/decisions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Typed choices, scores, and yes/no probabilities from decision models.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Decision models answer named, typed questions about the state you provide instead of generating prose:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`choice`}),` selects one named option and returns a probability for every option.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`score`}),` returns an expected score over an ordered rubric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`noul`}),` returns the probability that a yes/no statement is true.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Image-capable decision models can also evaluate photos and return the same typed answers. Supported formats and limits vary by model; see `,_jsx(_components.a,{href:`#image-input`,children:`Image input`}),`, `,_jsx(_components.a,{href:`#bison-1-and-groundhog-1`,children:`Bison-1 and Groundhog-1`}),`, and `,_jsx(_components.a,{href:`#mercury-decide`,children:`Mercury Decide`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`For new HTTP integrations, use the native `,_jsx(_components.code,{children:`POST /api/v1/decisions`}),` endpoint. If you already use the official TypeSafe SDK, point it at NanoGPT’s `,_jsx(_components.code,{children:`POST /api/v1/systemone`}),` compatibility endpoint. Most decision models are also available through NanoGPT’s OpenAI-compatible Chat Completions and Responses APIs and the Anthropic-compatible Messages API. Mercury Decide requires the native Decisions endpoint.`]}),`\n`,_jsxs(_components.p,{children:[`Only input tokens are billed. Browse every decision model, with current pricing, on `,_jsx(_components.a,{href:`https://nano-gpt.com/models/decisions`,children:`nano-gpt.com/models/decisions`}),`, or list them with `,_jsx(_components.code,{children:`GET /api/v1/decision-models`}),`.`]}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[`Decision models work on both API hosts. The examples use the direct API host, `,_jsx(_components.code,{children:`https://api.nano-gpt.com`}),`; `,_jsx(_components.code,{children:`https://nano-gpt.com`}),` accepts the same requests. See `,_jsx(_components.a,{href:`/api-reference/miscellaneous/api-hosts`,children:`API Hosts`}),`.`]}),_jsxs(_components.p,{children:[`Before using a model on either host, check that host’s `,_jsx(_components.code,{children:`GET /api/v1/models?detailed=true\u0026output_modalities=decisions`}),` catalog for the model, its `,_jsx(_components.code,{children:`supported_endpoints`}),`, and its `,_jsx(_components.code,{children:`decision_input`}),` capabilities and limits. Catalogs can differ during rollouts.`]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Decision models return calibrated probabilities, not generated text. Use a chat model when you need an explanation or other free-form response.`})}),`\n`,_jsx(Heading,{level:`2`,id:`models`,children:`Models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Context`}),_jsx(_components.th,{children:`Images`}),_jsx(_components.th,{children:`Use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`typesafe/jev-1.13`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`32K`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`TypeSafe Jev 1.13, pinned for integrations that should not follow alias upgrades.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`typesafe/jev-latest`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`32K`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Moving alias for the latest TypeSafe Jev release.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`liquid/d1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`64K`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Liquid AI’s D1.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`baselabs/bison-1`})}),_jsx(_components.td,{children:`32,768 per question`}),_jsx(_components.td,{children:`Yes, PNG`}),_jsx(_components.td,{children:`Base Labs’ dense decision model for classification, routing and scoring.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`baselabs/groundhog-1`})}),_jsx(_components.td,{children:`16,384 per question`}),_jsx(_components.td,{children:`Yes, PNG`}),_jsx(_components.td,{children:`Lower-cost Base Labs decision model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`inception/mercury-decide`})}),_jsx(_components.td,{children:`65,536; 32,768 for extraction`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Native Decisions endpoint only; supports exact text-span extraction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`perplexity/pplx-decider-v1.2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`262K`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Perplexity’s PPLX Decider v1.2. Supports zero data retention.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cloudflare/clef`})}),_jsx(_components.td,{children:`1,800 text tokens`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Cloudflare’s open decision model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cloudflare/clef-flash`})}),_jsx(_components.td,{children:`1,800 text tokens`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Lower-cost Clef variant.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`perplexity/pplx-decider-v1.2`}),` for PPLX integrations. Requests for the retired `,_jsx(_components.code,{children:`perplexity/pplx-decider-v1.1-27b`}),` ID return HTTP 410 with code `,_jsx(_components.code,{children:`model_retired`}),`; update the model ID explicitly to use v1.2. The v1.2 price is $0.02 per million input tokens, with free output.`]}),`\n`,_jsxs(_components.p,{children:[`Clef also accepts `,_jsx(_components.code,{children:`clef`}),`. The System One compatibility endpoint also accepts the official SDK model names `,_jsx(_components.code,{children:`jev-1.13`}),` and `,_jsx(_components.code,{children:`jev-latest`}),`. `,_jsx(_components.code,{children:`GET /api/v1/models`}),` leaves decision models out, because they reject plain chat requests. List them with `,_jsx(_components.code,{children:`GET /api/v1/decision-models`}),`, which returns detailed entries by default (`,_jsx(_components.code,{children:`detailed=false`}),` for IDs only), or add `,_jsx(_components.code,{children:`output_modalities=decisions`}),` to `,_jsx(_components.code,{children:`/api/v1/models`}),` and its subscription, paid and personalized variants. Each entry has `,_jsx(_components.code,{children:`architecture.output_modalities: [\"decisions\"]`}),`, a `,_jsx(_components.code,{children:`supported_endpoints`}),` list, and a `,_jsx(_components.code,{children:`decision_input`}),` object. `,_jsx(_components.code,{children:`decision_input.image_input`}),` is `,_jsx(_components.code,{children:`true`}),` for the image-capable models, and `,_jsx(_components.code,{children:`decision_input.image_limits`}),` lists their limits.`]}),`\n`,_jsxs(_components.p,{children:[`For Clef and Clef Flash, the 1,800-token limit covers all text in the request, including `,_jsx(_components.code,{children:`state`}),` text, `,_jsx(_components.code,{children:`questions`}),` and request overhead. Images are counted separately; see `,_jsx(_components.a,{href:`#image-input`,children:`Image input`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`bison-1-and-groundhog-1`,children:`Bison-1 and Groundhog-1`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`baselabs/bison-1`}),` or `,_jsx(_components.code,{children:`baselabs/groundhog-1`}),` with the native Decisions or\nSystem One endpoint. The short IDs `,_jsx(_components.code,{children:`bison-1`}),` and `,_jsx(_components.code,{children:`groundhog-1`}),` also work. Typed\nquestions are supported through Chat Completions, Messages and Responses with\ntext input. Neither model generates prose or supports streaming, tools or reasoning.`]}),`\n`,_jsxs(_components.p,{children:[`Bison-1 costs `,`$0.10 per million input tokens; Groundhog-1 costs $`,`0.035. Answer\ntokens are free. Shared state is billed once, plus each question, including image\ntokens. Cached input uses the ordinary input rate. Both models are excluded from\nsubscriptions and subscriber discounts.`]}),`\n`,_jsxs(_components.p,{children:[`Each request accepts 1–256 questions with non-empty text `,_jsx(_components.code,{children:`instructions`}),` and\nnon-empty text criterion descriptions. A `,_jsx(_components.code,{children:`choice`}),` question accepts 1–255 options;\na `,_jsx(_components.code,{children:`score`}),` question requires 2–10 levels. Across all questions, the maximum is 512\noptions, with each `,_jsx(_components.code,{children:`noul`}),` question counting as two. For `,_jsx(_components.code,{children:`noul`}),`, omit `,_jsx(_components.code,{children:`criteria`}),` or\nprovide exactly `,_jsx(_components.code,{children:`true`}),` and `,_jsx(_components.code,{children:`false`}),` descriptions.`]}),`\n`,_jsx(_components.p,{children:`NanoGPT applies conservative input admission limits of 32,768 tokens per question\nfor Bison-1 and 16,384 for Groundhog-1. Each limit includes shared state, the\nquestion, criteria, formatting and images. Aggregate billed input across multiple\nquestions can exceed one question’s context limit.`}),`\n`,_jsxs(_components.p,{children:[`Send text, a JSON object, or an array as `,_jsx(_components.code,{children:`state`}),`. A top-level `,_jsx(_components.code,{children:`null`}),` or an object\nwith a `,_jsx(_components.code,{children:`messages`}),` key is unsupported. Image input must be placed directly in a\n`,_jsx(_components.code,{children:`state`}),` array: up to four static inline PNG images, each at most 512 × 512 pixels.\nAll images together may contain at most 240,000 base64 characters (180,000 decoded\nbytes), within a 1 MiB JSON request body. Remote URLs, JPEG and WebP are unsupported.\nOmit `,_jsx(_components.code,{children:`image_url.detail`}),` or set it to `,_jsx(_components.code,{children:`auto`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`user`}),`, `,_jsx(_components.code,{children:`session_id`}),` and `,_jsx(_components.code,{children:`trace`}),`, including when adapting the examples below.\nThe `,_jsx(_components.code,{children:`provider`}),` object accepts only `,_jsx(_components.code,{children:`zdr`}),` and `,_jsx(_components.code,{children:`data_collection`}),`; provider selection\nis unavailable. Zero data retention is unverified: requests requiring\n`,_jsx(_components.code,{children:`provider.zdr: true`}),`, an API-key ZDR policy, or `,_jsx(_components.code,{children:`provider.data_collection: \"deny\"`}),`\nreturn `,_jsx(_components.code,{children:`400 zdr_not_supported`}),`. Transport redaction is unsupported, and image\ninput cannot be combined with PII redaction.`]}),`\n`,_jsx(Heading,{level:`3`,id:`mercury-decide`,children:`Mercury Decide`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`inception/mercury-decide`}),` (or `,_jsx(_components.code,{children:`mercury-decide`}),`) only with\n`,_jsx(_components.code,{children:`POST /api/v1/decisions`}),`. It does not support System One, Chat Completions,\nResponses, or Messages compatibility endpoints. It costs $0.02 per million input\ntokens at the current launch price, with no output charge. It is not included in\nsubscriptions and is excluded from subscriber discounts.`]}),`\n`,_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`user`}),`, `,_jsx(_components.code,{children:`session_id`}),`, and `,_jsx(_components.code,{children:`trace`}),` when selecting Mercury Decide, including\nwhen adapting the native examples below. These fields return HTTP 400 with code\n`,_jsx(_components.code,{children:`parameter_not_supported`}),`. A minimal extraction request is:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"inception/mercury-decide\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Parcel A123 arrived.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"questions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parcel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The parcel identifier\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Mercury Decide accepts 1–64 named questions of type `,_jsx(_components.code,{children:`noul`}),`, `,_jsx(_components.code,{children:`choice`}),`, `,_jsx(_components.code,{children:`score`}),`, or\n`,_jsx(_components.code,{children:`extract`}),`. Text or JSON state is supported. Image requests accept up to four\ninline PNG images in a state array; remote image URLs are unsupported. Extraction\nis text-only, supports up to 26 fields per question, and returns exact spans with\nUnicode code-point offsets. Check `,_jsx(_components.code,{children:`decision_input`}),` in the\n`,_jsx(_components.a,{href:`https://api.nano-gpt.com/api/v1/decision-models`,children:`live decision catalog`}),` for image\nsize limits and extraction controls.`]}),`\n`,_jsxs(_components.p,{children:[`Zero data retention and provider selection are unavailable. Requests requiring\n`,_jsx(_components.code,{children:`provider.zdr: true`}),` or `,_jsx(_components.code,{children:`provider.data_collection: \"deny\"`}),` are rejected. Transport\nredaction is unsupported, and extraction cannot use masked or redacted input.`]}),`\n`,_jsx(Heading,{level:`2`,id:`native-decisions-api`,children:`Native Decisions API`}),`\n`,_jsx(Heading,{level:`3`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST https://api.nano-gpt.com/api/v1/decisions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Authenticate with either `,_jsx(_components.code,{children:`Authorization: Bearer YOUR_API_KEY`}),` or `,_jsx(_components.code,{children:`x-api-key: YOUR_API_KEY`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example request`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`40`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`40`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.nano-gpt.com/api/v1/decisions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"typesafe/jev-1.13\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ticket\": \"I was charged twice and need this fixed before Friday.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_tier\": \"business\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"route\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"choice\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Which team should handle this ticket?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billing\": \"Payments, invoices, refunds, or duplicate charges\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"technical\": \"Product behavior, bugs, or integrations\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sales\": \"Plans, pricing, or purchasing\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"urgency\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"score\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"How urgent is the ticket?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"No time pressure\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Can wait several days\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Needs attention within one business day\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Immediate action is required\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"needs_human_review\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"noul\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Does this ticket need human review?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"true\": \"A person should review the case\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"false\": \"Automation can safely handle the case\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user\": \"customer_123\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`48`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`48`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.nano-gpt.com/api/v1/decisions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"typesafe/jev-1.13\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` state:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ticket:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"I was charged twice and need this fixed before Friday.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` customer_tier:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"business\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` questions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` route:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Which team should handle this ticket?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` criteria:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` billing:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Payments, invoices, refunds, or duplicate charges\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` technical:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Product behavior, bugs, or integrations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sales:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Plans, pricing, or purchasing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` urgency:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"How urgent is the ticket?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` criteria:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"No time pressure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Can wait several days\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Needs attention within one business day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Immediate action is required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` needs_human_review:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"noul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Does this ticket need human review?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` criteria:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` true:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A person should review the case\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` false:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Automation can safely handle the case\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` decision`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`decision`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`50`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`50`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.nano-gpt.com/api/v1/decisions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'NANOGPT_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"typesafe/jev-1.13\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ticket\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I was charged twice and need this fixed before Friday.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"business\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Which team should handle this ticket?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Payments, invoices, refunds, or duplicate charges\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"technical\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product behavior, bugs, or integrations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sales\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Plans, pricing, or purchasing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"urgency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"How urgent is the ticket?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"No time pressure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Can wait several days\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Needs attention within one business day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Immediate action is required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"needs_human_review\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"noul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Does this ticket need human review?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"true\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A person should review the case\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"false\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Automation can safely handle the case\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"answers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`42`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`42`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decision_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"typesafe/jev-1.13\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"answers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"confidence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.97`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"probabilities\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.97`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"technical\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.02`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sales\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.01`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"urgency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2.63`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"confidence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.81`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"legend\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No time pressure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Can wait several days\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Needs attention within one business day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Immediate action is required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"probabilities\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.01`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.05`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.24`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.70`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"needs_human_review\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"noul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"noul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.84`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`126`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"estimated_cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.000005292`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`noul`}),` is the probability of the `,_jsx(_components.code,{children:`true`}),` outcome. A `,_jsx(_components.code,{children:`score`}),` can be fractional because it is the expected value across the returned score distribution.`]}),`\n`,_jsx(Heading,{level:`3`,id:`usage-and-cost`,children:`Usage and cost`}),`\n`,_jsxs(_components.p,{children:[`Every response reports `,_jsx(_components.code,{children:`usage.input_tokens`}),` and `,_jsx(_components.code,{children:`usage.output_tokens`}),`. Only input tokens are billed; output tokens are free.`]}),`\n`,_jsxs(_components.p,{children:[`By default, the response is returned as soon as the answers are ready, and billing settles immediately afterwards. The charge itself is unaffected. These responses report `,_jsx(_components.code,{children:`usage.estimated_cost`}),`: the model’s published input price for the reported input tokens, in USD. It does not include account discounts or payment-currency conversion, so your actual charge can differ.`]}),`\n`,_jsxs(_components.p,{children:[`To get the exact amount charged instead, send `,_jsx(_components.code,{children:`\"include_usage\": true`}),`. The response then waits for billing to settle and reports the exact charge, in USD, as `,_jsx(_components.code,{children:`usage.cost`}),` instead of `,_jsx(_components.code,{children:`usage.estimated_cost`}),`. This adds a little latency. Your usage history always shows the exact charge.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`126`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.000005027`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`declined-questions`,children:`Declined questions`}),`\n`,_jsxs(_components.p,{children:[`A decision model can decline individual questions. On models that do this, such as GPT-6 Luna Decisions, a declined question comes back with only a `,_jsx(_components.code,{children:`type`}),`, and the other questions keep their answers:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"answers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"needs_human_review\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refusal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"confidence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.97`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"probabilities\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.97`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"technical\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.03`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Check each answer’s `,_jsx(_components.code,{children:`type`}),` before reading its value. A response with a declined question returns `,_jsx(_components.code,{children:`200`}),` and is charged normally. If every question is declined, the request returns `,_jsx(_components.code,{children:`400`}),` with the code `,_jsx(_components.code,{children:`content_policy_violation`}),` and isn’t charged. The compatibility endpoints return a declined question the same way, inside the JSON text. The official TypeSafe JavaScript SDK returns it as is. The Python SDK drops answer types it doesn’t recognize and logs a warning, so a declined question is simply missing from `,_jsx(_components.code,{children:`answers`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`image-input`,children:`Image input`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`perplexity/pplx-decider-v1.2`}),`, `,_jsx(_components.code,{children:`cloudflare/clef`}),` and `,_jsx(_components.code,{children:`cloudflare/clef-flash`}),` accept images on the native `,_jsx(_components.code,{children:`POST /api/v1/decisions`}),` endpoint and the `,_jsx(_components.code,{children:`POST /api/v1/systemone`}),` compatibility endpoint. Use them to classify photos, score visual content, or answer yes/no questions about an image.`]}),`\n`,_jsxs(_components.p,{children:[`Make `,_jsx(_components.code,{children:`state`}),` an array, and put each image directly in it as an `,_jsx(_components.code,{children:`image_url`}),` part with a base64 data URL. Plain strings in the same array add text context. The optional `,_jsx(_components.code,{children:`image_url.detail`}),` field accepts `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`low`}),` or `,_jsx(_components.code,{children:`high`}),`.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`29`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`IMAGE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`base64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` return-photo.jpg`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` tr`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\\\\n'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.nano-gpt.com/api/v1/decisions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`EOF`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"perplexity/pplx-decider-v1.2\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Return claim photo.\",`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"type\": \"image_url\", \"image_url\": { \"url\": \"data:image/jpeg;base64,`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$IMAGE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"condition\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"choice\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"What condition is the returned item in?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"like_new\": \"No visible wear\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"used\": \"Normal signs of use\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"damaged\": \"Cracked, broken or missing parts\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"screen_cracked\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"noul\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Is the screen cracked?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`EOF`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`36`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` image`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"return-photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.nano-gpt.com/api/v1/decisions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"perplexity/pplx-decider-v1.2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` state:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Return claim photo.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`image_url:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `data:image/jpeg;base64,\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`image`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` questions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` condition:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"What condition is the returned item in?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` criteria:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` like_new:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"No visible wear\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` used:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Normal signs of use\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` damaged:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Cracked, broken or missing parts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` screen_cracked:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"noul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Is the screen cracked?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`36`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` base64`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"return-photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` image `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` base64.b64encode(f.read()).decode()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.nano-gpt.com/api/v1/decisions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'NANOGPT_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"perplexity/pplx-decider-v1.2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Return claim photo.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data:image/jpeg;base64,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`image`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"What condition is the returned item in?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"like_new\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No visible wear\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"used\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Normal signs of use\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"damaged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cracked, broken or missing parts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"screen_cracked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"noul\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Is the screen cracked?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"answers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`To compare several images, put a label before each one, for example `,_jsx(_components.code,{children:`[\"Photo 1\", image1, \"Photo 2\", image2]`}),`, and refer to the labels in your question criteria.`]}),`\n`,_jsxs(_components.p,{children:[`The following limits apply to PPLX Decider v1.2, Clef and Clef Flash. For the PNG-only\nBase Labs models, use the `,_jsx(_components.a,{href:`#bison-1-and-groundhog-1`,children:`Bison-1 and Groundhog-1 limits`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Limit`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Images per request`}),_jsx(_components.td,{children:`Up to 4`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Formats`}),_jsx(_components.td,{children:`Static PNG, JPEG or WebP, sent inline as base64 data URLs. Remote image URLs are not fetched, and animated images are rejected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Dimensions`}),_jsx(_components.td,{children:`Each image at most 512 × 512 pixels`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Size`}),_jsx(_components.td,{children:`All images together at most 240,000 base64 characters (180,000 decoded bytes); the whole JSON body at most 1 MiB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Questions`}),_jsx(_components.td,{children:`Up to 128 per request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`Clef and Clef Flash: at most 1,800 text tokens, including questions and request overhead`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Images are billed as input tokens at the model’s normal input price; `,_jsx(_components.code,{children:`usage.input_tokens`}),` includes them. Resize larger photos before sending them.`]}),`\n`,_jsx(_components.p,{children:`Privacy rules for image requests:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`PPLX Decider v1.2 supports zero data retention: set `,_jsx(_components.code,{children:`provider.zdr`}),` to `,_jsx(_components.code,{children:`true`}),`, or use an API key with a ZDR policy.`]}),`\n`,_jsxs(_components.li,{children:[`Clef and Clef Flash do not support zero data retention. On these models, requests that require ZDR, and image requests with `,_jsx(_components.code,{children:`provider.data_collection: \"deny\"`}),`, return `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsx(_components.li,{children:`Image input cannot be combined with PII redaction.`}),`\n`,_jsxs(_components.li,{children:[`PII redaction uses the provider you chose (Tinfoil or Grepture; see `,_jsx(_components.a,{href:`/api-reference/miscellaneous/pii-redaction`,children:`PII Redaction`}),`). Tinfoil-hosted decision models do not support it.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Image errors use these codes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_image`})}),_jsxs(_components.td,{children:[`The image is not a valid static PNG, JPEG or WebP data URL, or it is not placed directly in the `,_jsx(_components.code,{children:`state`}),` array.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_modality`})}),_jsx(_components.td,{children:`The model does not accept images, or the requested privacy settings are not available for image input.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`image_too_large`})}),_jsxs(_components.td,{children:[`An image, or all images together, exceed the limits above. A JSON body over 1 MiB returns `,_jsx(_components.code,{children:`413 request_body_too_large`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`context_length_exceeded`})}),_jsx(_components.td,{children:`The text and images exceed the model’s input limit.`})]})]})]}),`\n`,_jsx(_components.p,{children:`The Chat Completions, Responses and Messages compatibility endpoints accept text only.`}),`\n`,_jsx(Heading,{level:`2`,id:`question-types`,children:`Question types`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required fields`}),_jsx(_components.th,{children:`Answer`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`choice`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`instructions`}),` and a non-empty `,_jsx(_components.code,{children:`criteria`}),` object`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`choice`}),`, `,_jsx(_components.code,{children:`confidence`}),`, and `,_jsx(_components.code,{children:`probabilities`}),` keyed by the supplied labels`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`instructions`}),` and 2-10 ordered `,_jsx(_components.code,{children:`criteria`}),` entries`]}),_jsxs(_components.td,{children:[`Fractional `,_jsx(_components.code,{children:`score`}),`, `,_jsx(_components.code,{children:`confidence`}),`, `,_jsx(_components.code,{children:`legend`}),`, and `,_jsx(_components.code,{children:`probabilities`}),` keyed from `,_jsx(_components.code,{children:`0`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`noul`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`instructions`}),`; optional `,_jsx(_components.code,{children:`criteria.true`}),` and `,_jsx(_components.code,{children:`criteria.false`}),` descriptions`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`noul`}),`, a probability from `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`1`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`instructions`}),` and criterion descriptions can be strings, non-empty JSON objects, or non-empty arrays on models that support structured criteria. A `,_jsx(_components.code,{children:`choice`}),` criterion may also be `,_jsx(_components.code,{children:`null`}),` when its label is self-explanatory. Bison-1 and Groundhog-1 require non-empty text instructions and criterion descriptions. The top-level `,_jsx(_components.code,{children:`state`}),` can be a string, JSON object, or JSON array. Question names become keys in `,_jsx(_components.code,{children:`answers`}),`. Any question can come back `,_jsx(_components.a,{href:`#declined-questions`,children:`declined`}),` instead.`]}),`\n`,_jsx(Heading,{level:`2`,id:`model-specific-rules`,children:`Model-specific rules`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Rule`}),_jsx(_components.th,{children:`Applies to`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Noul questions need `,_jsx(_components.code,{children:`instructions`}),`, and `,_jsx(_components.code,{children:`criteria`}),` needs both `,_jsx(_components.code,{children:`true`}),` and `,_jsx(_components.code,{children:`false`}),` when it is sent.`]}),_jsx(_components.td,{children:`Jev, Liquid D1, PPLX Decider v1.2, Clef, Clef Flash`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A request can contain at most 128 questions.`}),_jsx(_components.td,{children:`PPLX Decider v1.2, Clef, Clef Flash`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text input, including questions and request overhead, is limited to 1,800 tokens.`}),_jsx(_components.td,{children:`Clef, Clef Flash`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-fields`,children:`Request fields`}),`\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,{style:{textAlign:`right`},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:`string`}),_jsx(_components.td,{style:{textAlign:`right`},children:`Yes`}),_jsx(_components.td,{children:`A decision model from the table above.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`string, object, or array`}),_jsx(_components.td,{style:{textAlign:`right`},children:`Yes`}),_jsxs(_components.td,{children:[`Application state for the model to evaluate. Image-capable models also accept image parts in a `,_jsx(_components.code,{children:`state`}),` array; see `,_jsx(_components.a,{href:`#image-input`,children:`Image input`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`questions`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{style:{textAlign:`right`},children:`Yes`}),_jsxs(_components.td,{children:[`One or more named `,_jsx(_components.code,{children:`choice`}),`, `,_jsx(_components.code,{children:`score`}),`, or `,_jsx(_components.code,{children:`noul`}),` questions. Mercury Decide also supports `,_jsx(_components.code,{children:`extract`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`right`},children:`No`}),_jsx(_components.td,{children:`Your end-user identifier, up to 256 characters. Unsupported by Mercury Decide, Bison-1 and Groundhog-1; omit it for these models.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`session_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`right`},children:`No`}),_jsx(_components.td,{children:`Your session identifier, up to 256 characters. Unsupported by Mercury Decide, Bison-1 and Groundhog-1; omit it for these models.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trace`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{style:{textAlign:`right`},children:`No`}),_jsx(_components.td,{children:`Caller-supplied trace metadata. Unsupported by Mercury Decide, Bison-1 and Groundhog-1; omit it for these models.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{style:{textAlign:`right`},children:`No`}),_jsx(_components.td,{children:`Model-specific routing controls, described below. Usually omit this field.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include_usage`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{style:{textAlign:`right`},children:`No`}),_jsxs(_components.td,{children:[`Wait for billing to settle and report the exact charge as `,_jsx(_components.code,{children:`usage.cost`}),`. Defaults to `,_jsx(_components.code,{children:`false`}),`, which returns `,_jsx(_components.code,{children:`usage.estimated_cost`}),` without waiting. See `,_jsx(_components.a,{href:`#usage-and-cost`,children:`Usage and cost`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For Jev 1.13, Jev Latest and Liquid D1, the `,_jsx(_components.code,{children:`provider`}),` object can contain endpoint-level `,_jsx(_components.code,{children:`order`}),`, `,_jsx(_components.code,{children:`only`}),`, `,_jsx(_components.code,{children:`ignore`}),`, `,_jsx(_components.code,{children:`allow_fallbacks`}),`, `,_jsx(_components.code,{children:`require_parameters`}),`, `,_jsx(_components.code,{children:`max_price`}),`, `,_jsx(_components.code,{children:`zdr`}),`, and `,_jsx(_components.code,{children:`data_collection`}),` controls. These names describe native Decisions endpoints such as `,_jsx(_components.code,{children:`TypeSafe`}),`; they are not NanoGPT provider IDs.`]}),`\n`,_jsxs(_components.p,{children:[`PPLX Decider v1.2 uses a fixed decision endpoint and accepts only `,_jsx(_components.code,{children:`zdr`}),` and `,_jsx(_components.code,{children:`data_collection`}),`. Clef and Clef Flash support `,_jsx(_components.a,{href:`/api-reference/miscellaneous/provider-selection`,children:`NanoGPT provider selection`}),`, including `,_jsx(_components.code,{children:`only`}),`, `,_jsx(_components.code,{children:`order`}),`, `,_jsx(_components.code,{children:`ignore`}),`, `,_jsx(_components.code,{children:`allow_fallbacks`}),`, `,_jsx(_components.code,{children:`max_price`}),`, and `,_jsx(_components.code,{children:`sort`}),` (`,_jsx(_components.code,{children:`price`}),` or `,_jsx(_components.code,{children:`auto`}),`). Clef and Clef Flash reject `,_jsx(_components.code,{children:`zdr: true`}),`.`]}),`\n`,_jsx(_components.p,{children:`API-key provider restrictions and zero-data-retention requirements apply to every model.`}),`\n`,_jsx(Heading,{level:`2`,id:`official-typesafe-sdk`,children:`Official TypeSafe SDK`}),`\n`,_jsxs(_components.p,{children:[`NanoGPT exposes `,_jsx(_components.code,{children:`POST /api/v1/systemone`}),` so the official TypeSafe JavaScript and Python SDKs can call supported decision models without changing their request types. Mercury Decide is not supported on this endpoint. Set the model to `,_jsx(_components.code,{children:`jev-latest`}),`, `,_jsx(_components.code,{children:`jev-1.13`}),`, `,_jsx(_components.code,{children:`liquid/d1`}),`, `,_jsx(_components.code,{children:`perplexity/pplx-decider-v1.2`}),`, `,_jsx(_components.code,{children:`clef`}),`, `,_jsx(_components.code,{children:`cloudflare/clef-flash`}),`, `,_jsx(_components.code,{children:`baselabs/bison-1`}),` or `,_jsx(_components.code,{children:`baselabs/groundhog-1`}),`. Image input and `,_jsx(_components.code,{children:`include_usage`}),` work the same way as on the native endpoint; preserve each model’s request restrictions above.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`JavaScript / TypeScript`,numberOfLines:`21`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// npm install @typesafe-ai/sdk`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`choice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TypeSafeClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@typesafe-ai/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TypeSafeClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.nano-gpt.com/api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` defaultModel:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"jev-latest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`systemOne`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` state:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ticket:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"I was charged twice. Please fix this.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` questions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` route:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` choice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Which team should handle this ticket?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` billing:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` technical:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sales:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`answers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`route`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`choice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`24`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# pip install typesafe-sdk`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` typesafe_sdk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Choice, TypeSafeClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TypeSafeClient(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NANOGPT_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.nano-gpt.com/api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jev-latest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.system_one(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` state`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ticket\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I was charged twice. Please fix this.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` questions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: Choice(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instructions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Which team should handle this ticket?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` criteria`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"technical\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sales\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result.choices[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].choice)`})]}),`\n`]})})})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The SDK’s System One call is supported. The SDK’s model-list method is not, because NanoGPT’s `,_jsx(_components.code,{children:`/api/v1/models`}),` response uses the NanoGPT/OpenAI-compatible model-list shape rather than TypeSafe’s model-list shape.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`openai-and-anthropic-compatibility`,children:`OpenAI and Anthropic compatibility`}),`\n`,_jsx(_components.p,{children:`Use these shapes when a decision model must fit into an existing OpenAI- or Anthropic-compatible client. The answer object is returned as JSON text, so parse the returned string once.`}),`\n`,_jsxs(_components.p,{children:[`Chat Completions and Responses report `,_jsx(_components.code,{children:`usage.estimated_cost`}),` by default. To get the exact charge as `,_jsx(_components.code,{children:`usage.cost`}),`, send `,_jsx(_components.code,{children:`\"include_usage\": true`}),` or `,_jsx(_components.code,{children:`\"stream_options\": {\"include_usage\": true}`}),`. Messages responses always report the exact charge.`]}),`\n`,_jsx(Heading,{level:`3`,id:`chat-completions`,children:`Chat Completions`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.nano-gpt.com/api/v1/chat/completions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"typesafe/jev-latest\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {\"role\": \"user\", \"content\": \"I was charged twice. Please fix this.\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stream\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"response_format\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"questions\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billing\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"noul\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Is this request about billing?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Parse `,_jsx(_components.code,{children:`choices[0].message.content`}),` as JSON.`]}),`\n`,_jsx(Heading,{level:`3`,id:`responses-api`,children:`Responses API`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.nano-gpt.com/api/v1/responses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"typesafe/jev-latest\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": \"I was charged twice. Please fix this.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stream\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"store\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"questions\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billing\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"noul\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Is this request about billing?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Parse `,_jsx(_components.code,{children:`output_text`}),` as JSON. The same JSON text is also available in the assistant output item.`]}),`\n`,_jsx(Heading,{level:`3`,id:`anthropic-messages`,children:`Anthropic Messages`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.nano-gpt.com/api/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NANOGPT_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"anthropic-version: 2023-06-01\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"typesafe/jev-latest\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_tokens\": 128,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {\"role\": \"user\", \"content\": \"I was charged twice. Please fix this.\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stream\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"output_config\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"questions\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billing\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"noul\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Is this request about billing?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Parse `,_jsx(_components.code,{children:`content[0].text`}),` as JSON. `,_jsx(_components.code,{children:`max_tokens`}),` is accepted for Anthropic SDK compatibility but does not change the fixed typed output.`]}),`\n`,_jsx(Heading,{level:`2`,id:`limitations`,children:`Limitations`}),`\n`,_jsx(_components.p,{children:`Decision-model requests are deliberately narrower than chat generation requests:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Only non-streaming text input in `,_jsx(_components.code,{children:`user`}),` messages is supported on Chat Completions, Messages and Responses compatibility endpoints. PPLX Decider v1.2, Clef, Clef Flash, Bison-1 and Groundhog-1 accept images on the native Decisions and System One endpoints, subject to each model’s format and size limits. Mercury Decide accepts inline PNG images on the native Decisions endpoint only.`]}),`\n`,_jsx(_components.li,{children:`System, developer, assistant, tool, audio, video, and file input is not supported. Compatibility endpoints also reject images.`}),`\n`,_jsx(_components.li,{children:`Tools, sampling controls, log probabilities, and reasoning generation controls are not supported.`}),`\n`,_jsx(_components.li,{children:`On compatibility endpoints, output-token-limit fields are accepted where an SDK requires them, but they do not change the fixed typed output. Mercury Decide rejects these fields.`}),`\n`,_jsx(_components.li,{children:`BYOK and accountless Lightning L402 payments are not supported.`}),`\n`,_jsxs(_components.li,{children:[`Standard NanoGPT or `,_jsx(_components.code,{children:`X-Provider`}),` provider pins are not supported. Use the native Decisions `,_jsx(_components.code,{children:`provider`}),` object only when you need endpoint-level routing controls.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Unsupported combinations return a `,_jsx(_components.code,{children:`400`}),` error instead of being silently ignored.`]})]})}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":{"config":{},"pageMetadata":{"title":"Decisions","description":"Typed choices, scores, and yes/no probabilities from decision models.","openapi":"POST /v1/decisions","href":"/api-reference/endpoint/decisions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Models","slug":"models","depth":2,"children":[{"title":"Bison-1 and Groundhog-1","slug":"bison-1-and-groundhog-1","depth":3,"children":[]},{"title":"Mercury Decide","slug":"mercury-decide","depth":3,"children":[]}]},{"title":"Native Decisions API","slug":"native-decisions-api","depth":2,"children":[{"title":"Endpoint","slug":"endpoint","depth":3,"children":[]},{"title":"Example request","slug":"example-request","depth":3,"children":[]},{"title":"Example response","slug":"example-response","depth":3,"children":[]},{"title":"Usage and cost","slug":"usage-and-cost","depth":3,"children":[]},{"title":"Declined questions","slug":"declined-questions","depth":3,"children":[]},{"title":"Image input","slug":"image-input","depth":3,"children":[]}]},{"title":"Question types","slug":"question-types","depth":2,"children":[]},{"title":"Model-specific rules","slug":"model-specific-rules","depth":2,"children":[]},{"title":"Request fields","slug":"request-fields","depth":2,"children":[]},{"title":"Official TypeSafe SDK","slug":"official-typesafe-sdk","depth":2,"children":[]},{"title":"OpenAI and Anthropic compatibility","slug":"openai-and-anthropic-compatibility","depth":2,"children":[{"title":"Chat Completions","slug":"chat-completions","depth":3,"children":[]},{"title":"Responses API","slug":"responses-api","depth":3,"children":[]},{"title":"Anthropic Messages","slug":"anthropic-messages","depth":3,"children":[]}]},{"title":"Limitations","slug":"limitations","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nano-gpt/4d1e35af7642852b/copy-markdown.js"],"openApiReferenceData":{"operation":{"operationId":"createDecision","tags":["Decisions"],"summary":"Create typed decisions with a decision model","description":"Typed choices, scores, and yes/no probabilities from decision models.","security":["bdc6238f-ea2b-4e58-96dc-7d3d5cefe11f","15119db5-d12c-45ae-b6fc-abdd99d813eb"],"requestBody":"d576b62f-aaac-4f1b-adc6-8da0afc85d00","responses":{"200":"3761464f-9192-439d-b92c-85ac5848db3f","400":"cbb44d36-5883-4930-a9be-917559e9ca55","401":"d84f6f03-5770-4b3e-a18b-dfdd466eec50","410":"8cf3c351-88af-47cd-be1b-dada83bc225e","429":"fbbb5eb0-cf0e-4dd0-8e6f-23d616fd8886"},"method":"post","type":"path","servers":["427dda23-95a4-4363-a778-747f1cc52984","868f091a-bebf-4228-a626-1318a4aa7597"],"path":"/v1/decisions","baseUrlOptions":["https://api.nano-gpt.com/api","https://nano-gpt.com/api"],"title":"Create typed decisions with a decision model","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["model","state","questions"],"properties":{"model":{"type":"string","description":"Decision model ID. clef is an alias of the prefixed IDs. Use perplexity/pplx-decider-v1.2 for PPLX. The retired perplexity/pplx-decider-v1.1-27b ID returns HTTP 410 with code model_retired. Bison-1 uses baselabs/bison-1 (alias bison-1); Groundhog-1 uses baselabs/groundhog-1 (alias groundhog-1).","enum":["typesafe/jev-1.13","~typesafe/jev-latest","typesafe/jev-latest","liquid/d1","cloudflare/clef","clef","cloudflare/clef-flash","perplexity/pplx-decider-v1.2","baselabs/bison-1","bison-1","baselabs/groundhog-1","groundhog-1"],"isRequired":true,"uniqueKey":"oneOf.0.model","typeLabel":"enum\u003cstring>"},"state":{"oneOf":[{"type":"string","description":"Application state to evaluate. PPLX Decider v1.2, Clef and Clef Flash also accept an array that mixes plain strings with up to four image_url parts holding static PNG, JPEG or WebP base64 data URLs, each at most 512x512 pixels (240,000 base64 characters in total). Remote image URLs are not fetched. For Bison-1 and Groundhog-1, state must be text, an array or a JSON object without a messages key; null is unsupported. Images must be direct state-array image_url parts with static PNG base64 data URLs. Maximum: four images, 512x512 pixels each, 240,000 aggregate base64 characters / 180,000 decoded bytes, within a 1 MiB request body. Omit image_url.detail or set auto. JPEG, WebP, remote URLs and image input with PII redaction are unsupported.","isRequired":true,"uniqueKey":"oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"object","description":"Application state to evaluate. PPLX Decider v1.2, Clef and Clef Flash also accept an array that mixes plain strings with up to four image_url parts holding static PNG, JPEG or WebP base64 data URLs, each at most 512x512 pixels (240,000 base64 characters in total). Remote image URLs are not fetched. For Bison-1 and Groundhog-1, state must be text, an array or a JSON object without a messages key; null is unsupported. Images must be direct state-array image_url parts with static PNG base64 data URLs. Maximum: four images, 512x512 pixels each, 240,000 aggregate base64 characters / 180,000 decoded bytes, within a 1 MiB request body. Omit image_url.detail or set auto. JPEG, WebP, remote URLs and image input with PII redaction are unsupported.","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.state.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.state.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"Application state to evaluate. PPLX Decider v1.2, Clef and Clef Flash also accept an array that mixes plain strings with up to four image_url parts holding static PNG, JPEG or WebP base64 data URLs, each at most 512x512 pixels (240,000 base64 characters in total). Remote image URLs are not fetched. For Bison-1 and Groundhog-1, state must be text, an array or a JSON object without a messages key; null is unsupported. Images must be direct state-array image_url parts with static PNG base64 data URLs. Maximum: four images, 512x512 pixels each, 240,000 aggregate base64 characters / 180,000 decoded bytes, within a 1 MiB request body. Omit image_url.detail or set auto. JPEG, WebP, remote URLs and image input with PII redaction are unsupported.","isRequired":true,"uniqueKey":"oneOf.0.state.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"oneOf.0.state","typeLabel":"string | object | any[]"},"questions":{"type":"object","minProperties":1,"additionalProperties":{"oneOf":[{"type":"object","required":["type","instructions","criteria"],"properties":{"type":{"type":"string","const":"choice","isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.instructions.oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.instructions.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.instructions.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.instructions","typeLabel":"string | object | any[]"},"criteria":{"type":"object","minProperties":1,"additionalProperties":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria.additionalProperties.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria.additionalProperties.oneOf.2","typeLabel":"any[]"},{"type":"null","uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria.additionalProperties","typeLabel":"string | object | any[] | null"},"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0.criteria","typeLabel":"object"}},"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","instructions","criteria"],"properties":{"type":{"type":"string","const":"score","isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.instructions.oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.instructions.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.instructions.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.instructions","typeLabel":"string | object | any[]"},"criteria":{"type":"array","minItems":2,"maxItems":10,"items":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.criteria.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.criteria.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.criteria.items.[INDEX].oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.criteria.items.[INDEX].oneOf.2","typeLabel":"any[]"}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.criteria.items.[INDEX]","typeLabel":"string | object | any[]"},"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1.criteria","typeLabel":"(string | object | any[])[]"}},"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A yes/no question. Instructions are required and, when criteria is sent, both true and false descriptions.","required":["type","instructions"],"properties":{"type":{"type":"string","const":"noul","isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.instructions.oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.instructions.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.instructions.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.instructions.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.instructions","typeLabel":"string | object | any[]"},"criteria":{"type":"object","required":["true","false"],"properties":{"true":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.true.oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.true.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.true.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.true.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.true","typeLabel":"string | object | any[]"},"false":{"oneOf":[{"type":"string","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.false.oneOf.0","typeLabel":"string"},{"type":"object","description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minProperties":1,"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.false.oneOf.1","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.false.oneOf.2.items.[INDEX]","typeLabel":"any"},"description":"A non-empty string, JSON object, or JSON array used to describe a question or outcome.","minItems":1,"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.false.oneOf.2","typeLabel":"any[]"}],"isRequired":true,"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria.false","typeLabel":"string | object | any[]"}},"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2.criteria","typeLabel":"object"}},"uniqueKey":"oneOf.0.questions.additionalProperties.oneOf.2","typeLabel":"object"}],"uniqueKey":"oneOf.0.questions.additionalProperties","typeLabel":"object"},"description":"Bison-1 and Groundhog-1 accept 1–256 questions with non-empty text instructions and criterion descriptions. Choice supports 1–255 options, score requires 2–10 levels, and noul criteria must be omitted or contain exactly true and false. At most 512 options total; each noul counts as two.","isRequired":true,"uniqueKey":"oneOf.0.questions","typeLabel":"object"},"provider":{"oneOf":[{"description":"Optional model-specific routing controls. Jev 1.13, Jev Latest and Liquid D1 use native Decisions endpoint names. PPLX Decider v1.2 accepts only zdr and data_collection. Clef and Clef Flash support NanoGPT provider selection and reject zdr true. Bison-1 and Groundhog-1 accept only zdr and data_collection; provider selection is unavailable. Requiring zdr true or data_collection deny returns 400 zdr_not_supported.","type":"object","additionalProperties":true,"uniqueKey":"oneOf.0.provider.oneOf.0","typeLabel":"object"},{"description":"Optional model-specific routing controls. Jev 1.13, Jev Latest and Liquid D1 use native Decisions endpoint names. PPLX Decider v1.2 accepts only zdr and data_collection. Clef and Clef Flash support NanoGPT provider selection and reject zdr true. Bison-1 and Groundhog-1 accept only zdr and data_collection; provider selection is unavailable. Requiring zdr true or data_collection deny returns 400 zdr_not_supported.","type":"null","additionalProperties":true,"uniqueKey":"oneOf.0.provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.provider","typeLabel":"object | null"},"session_id":{"type":"string","maxLength":256,"description":"Unsupported by Bison-1 and Groundhog-1; omit this field for these models.","uniqueKey":"oneOf.0.session_id","typeLabel":"string"},"trace":{"type":"object","additionalProperties":true,"description":"Unsupported by Bison-1 and Groundhog-1; omit this field for these models.","uniqueKey":"oneOf.0.trace","typeLabel":"object"},"user":{"type":"string","maxLength":256,"description":"Unsupported by Bison-1 and Groundhog-1; omit this field for these models.","uniqueKey":"oneOf.0.user","typeLabel":"string"},"include_usage":{"type":"boolean","default":false,"description":"Wait for billing to settle and report the exact charge as usage.cost. By default the response returns without waiting and reports usage.estimated_cost.","uniqueKey":"oneOf.0.include_usage","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Mercury Decide is native Decisions only. Local admission limits are 65,536 tokens, or 32,768 when any question extracts text. Extraction requires string state or a source field naming a string in object state; it cannot use images or masked/redacted input.","required":["model","state","questions"],"properties":{"model":{"type":"string","enum":["inception/mercury-decide","mercury-decide"],"isRequired":true,"uniqueKey":"oneOf.1.model","typeLabel":"enum\u003cstring>"},"state":{"oneOf":[{"description":"Text, JSON object or array. Images must be inline PNG data URLs in a state array: up to four images, each at most 512x512 pixels; 240,000 encoded characters total. Remote URLs are unsupported.","type":"string","isRequired":true,"uniqueKey":"oneOf.1.state.oneOf.0","typeLabel":"string"},{"description":"Text, JSON object or array. Images must be inline PNG data URLs in a state array: up to four images, each at most 512x512 pixels; 240,000 encoded characters total. Remote URLs are unsupported.","type":"object","isRequired":true,"uniqueKey":"oneOf.1.state.oneOf.1","typeLabel":"object"},{"description":"Text, JSON object or array. Images must be inline PNG data URLs in a state array: up to four images, each at most 512x512 pixels; 240,000 encoded characters total. Remote URLs are unsupported.","type":"array","isRequired":true,"uniqueKey":"oneOf.1.state.oneOf.2","typeLabel":"array"}],"isRequired":true,"uniqueKey":"oneOf.1.state","typeLabel":"string | object | array"},"questions":{"type":"object","minProperties":1,"maxProperties":64,"additionalProperties":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"noul","isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.type","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.instructions.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.instructions.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.instructions.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.instructions","typeLabel":"string | object | array | null"},"criteria":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"true":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.true.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.true","typeLabel":"string | object | array | null"},"false":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.false.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0.false","typeLabel":"string | object | array | null"}},"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":false,"properties":{"true":{"oneOf":[{"type":"string"},{"type":"object"},{"type":"array"},{"type":"null"}]},"false":{"oneOf":[{"type":"string"},{"type":"object"},{"type":"array"},{"type":"null"}]}},"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0.criteria","typeLabel":"object | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","criteria"],"properties":{"type":{"type":"string","const":"choice","isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.type","typeLabel":"string"},"criteria":{"type":"object","minProperties":1,"maxProperties":255,"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.criteria.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.criteria.additionalProperties","typeLabel":"string | object | array | null"},"isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.criteria","typeLabel":"object"},"instructions":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.instructions.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.instructions.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.instructions.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1.instructions","typeLabel":"string | object | array | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","criteria"],"properties":{"type":{"type":"string","const":"score","isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.type","typeLabel":"string"},"criteria":{"type":"array","minItems":1,"maxItems":10,"items":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.criteria.items.[INDEX].oneOf.2","typeLabel":"array"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.criteria.items.[INDEX]","typeLabel":"string | object | array"},"isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.criteria","typeLabel":"(string | object | array)[]"},"instructions":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.instructions.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.instructions.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.instructions.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2.instructions","typeLabel":"string | object | array | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","criteria"],"properties":{"type":{"type":"string","const":"extract","isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.type","typeLabel":"string"},"criteria":{"type":"object","minProperties":1,"maxProperties":26,"additionalProperties":{"type":"string","pattern":"\\S","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.criteria.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.criteria","typeLabel":"object"},"instructions":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.instructions.oneOf.0","typeLabel":"string"},{"type":"object","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.instructions.oneOf.1","typeLabel":"object"},{"type":"array","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.instructions.oneOf.2","typeLabel":"array"},{"type":"null","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.instructions.oneOf.3","typeLabel":"null"}],"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.instructions","typeLabel":"string | object | array | null"},"source":{"type":"string","description":"Required for object state: names a string field to extract from. Omit for string state. Array state and images are unsupported for extraction.","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.source","typeLabel":"string"},"threshold":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.threshold","typeLabel":"number"},"snap_to_words":{"type":"boolean","default":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3.snap_to_words","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.3","typeLabel":"object"},{"type":"object","required":["type","instructions"],"properties":{"instructions":{"type":"string","pattern":"\\S","isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.instructions","typeLabel":"string"},"type":{"type":"string","const":"extract","isRequired":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.type","typeLabel":"string"},"criteria":{"type":"object","minProperties":1,"maxProperties":26,"additionalProperties":{"type":"string","pattern":"\\S","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.criteria.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.criteria","typeLabel":"object"},"source":{"type":"string","description":"Required for object state: names a string field to extract from. Omit for string state. Array state and images are unsupported for extraction.","uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.source","typeLabel":"string"},"threshold":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.threshold","typeLabel":"number"},"snap_to_words":{"type":"boolean","default":true,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4.snap_to_words","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.1.questions.additionalProperties.oneOf.4","typeLabel":"object"}],"uniqueKey":"oneOf.1.questions.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.questions","typeLabel":"object"},"provider":{"oneOf":[{"type":"object","additionalProperties":false,"description":"No provider selection or verified ZDR. zdr true and data_collection deny are rejected.","properties":{"zdr":{"oneOf":[{"type":"boolean","enum":[false,null],"uniqueKey":"oneOf.1.provider.oneOf.0.zdr.oneOf.0","typeLabel":"enum\u003cboolean>"},{"type":"null","enum":[false,null],"uniqueKey":"oneOf.1.provider.oneOf.0.zdr.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.provider.oneOf.0.zdr","typeLabel":"enum\u003cboolean> | null"},"data_collection":{"oneOf":[{"type":"string","enum":["allow",null],"uniqueKey":"oneOf.1.provider.oneOf.0.data_collection.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["allow",null],"uniqueKey":"oneOf.1.provider.oneOf.0.data_collection.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.provider.oneOf.0.data_collection","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"oneOf.1.provider.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":false,"description":"No provider selection or verified ZDR. zdr true and data_collection deny are rejected.","properties":{"zdr":{"oneOf":[{"type":"boolean","enum":[false,null]},{"type":"null","enum":[false,null]}]},"data_collection":{"oneOf":[{"type":"string","enum":["allow",null]},{"type":"null","enum":["allow",null]}]}},"uniqueKey":"oneOf.1.provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.provider","typeLabel":"object | null"},"include_usage":{"type":"boolean","default":false,"description":"Wait for billing to settle and report the exact charge as usage.cost. By default the response returns without waiting and reports usage.estimated_cost.","uniqueKey":"oneOf.1.include_usage","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"state":"\u003cstring>","questions":{},"provider":{},"session_id":"\u003cstring>","trace":{},"user":"\u003cstring>","include_usage":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"3761464f-9192-439d-b92c-85ac5848db3f":{"description":"Typed decisions response","content":{"application/json":{"schema":{"type":"object","required":["model","answers","usage"],"properties":{"model":{"type":"string","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"answers":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","required":["type","choice","confidence","probabilities"],"properties":{"type":{"type":"string","const":"choice","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.0.type","typeLabel":"string"},"choice":{"type":"string","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.0.choice","typeLabel":"string"},"confidence":{"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.0.confidence","typeLabel":"number"},"probabilities":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.oneOf.0.probabilities.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.0.probabilities","typeLabel":"object"}},"uniqueKey":"answers.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","score","confidence","legend","probabilities"],"properties":{"type":{"type":"string","const":"score","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.type","typeLabel":"string"},"score":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.score","typeLabel":"number"},"confidence":{"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.confidence","typeLabel":"number"},"legend":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.legend","typeLabel":"object"},"probabilities":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.oneOf.1.probabilities.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.1.probabilities","typeLabel":"object"}},"uniqueKey":"answers.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","noul"],"properties":{"type":{"type":"string","const":"noul","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.2.type","typeLabel":"string"},"noul":{"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.2.noul","typeLabel":"number"}},"uniqueKey":"answers.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"The model declined this question, so it has no value or probabilities. Other questions in the same request can still have answers. If every question is declined, the request fails with 400 content_policy_violation and is not charged.","required":["type"],"properties":{"type":{"type":"string","const":"refusal","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"answers.additionalProperties.oneOf.3","typeLabel":"object"},{"type":"object","description":"Mercury Decide extraction answer; native Decisions endpoint only. Field keys match criteria, or the question name when criteria is omitted.","required":["type","spans","not_stated"],"properties":{"type":{"type":"string","const":"extract","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.type","typeLabel":"string"},"spans":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["text","start","end","confidence"],"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.spans.additionalProperties.items.[INDEX].text","typeLabel":"string"},"start":{"type":"integer","minimum":0,"description":"Inclusive Unicode code-point offset in the source text.","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.spans.additionalProperties.items.[INDEX].start","typeLabel":"integer"},"end":{"type":"integer","minimum":1,"description":"Exclusive Unicode code-point offset in the source text.","isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.spans.additionalProperties.items.[INDEX].end","typeLabel":"integer"},"confidence":{"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.spans.additionalProperties.items.[INDEX].confidence","typeLabel":"number"}},"uniqueKey":"answers.additionalProperties.oneOf.4.spans.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"answers.additionalProperties.oneOf.4.spans.additionalProperties","typeLabel":"object[]"},"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.spans","typeLabel":"object"},"not_stated":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"answers.additionalProperties.oneOf.4.not_stated.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"answers.additionalProperties.oneOf.4.not_stated","typeLabel":"object"}},"uniqueKey":"answers.additionalProperties.oneOf.4","typeLabel":"object"}],"uniqueKey":"answers.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"answers","typeLabel":"object"},"usage":{"type":"object","required":["input_tokens","output_tokens"],"properties":{"input_tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer"},"cost":{"type":"number","minimum":0,"description":"Exact charge in USD. Returned when the request sets include_usage to true.","uniqueKey":"usage.cost","typeLabel":"number"},"estimated_cost":{"type":"number","minimum":0,"description":"Estimated charge in USD at the model's published input price for the reported input tokens, before account discounts and payment-currency conversion. Returned when include_usage is not set; billing settles right after the response.","uniqueKey":"usage.estimated_cost","typeLabel":"number"}},"isRequired":true,"uniqueKey":"usage","typeLabel":"object"},"id":{"type":"string","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","answers":{},"usage":{"input_tokens":1,"output_tokens":1,"cost":1,"estimated_cost":1},"id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"cbb44d36-5883-4930-a9be-917559e9ca55":{"description":"Invalid state, questions, model, or unsupported parameter","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d84f6f03-5770-4b3e-a18b-dfdd466eec50":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8cf3c351-88af-47cd-be1b-dada83bc225e":{"description":"The requested model is retired (code model_retired)","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"fbbb5eb0-cf0e-4dd0-8e6f-23d616fd8886":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bdc6238f-ea2b-4e58-96dc-7d3d5cefe11f":{"bearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearerAuth"}},"15119db5-d12c-45ae-b6fc-abdd99d813eb":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"427dda23-95a4-4363-a778-747f1cc52984":{"url":"https://api.nano-gpt.com/api","description":"Direct API host"},"868f091a-bebf-4228-a626-1318a4aa7597":{"url":"https://nano-gpt.com/api","description":"Website host, for IPv6-only clients and the routes that name it"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearerAuth"},"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":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"nano-gpt","siteName":"NanoGPT API Documentation","title":"Decisions - NanoGPT API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-21T20:23:35.409Z","originalFileLocation":"api-reference/endpoint/decisions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Typed choices, scores, and yes/no probabilities from decision models.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NanoGPT API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_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/nano-gpt/ojaWxmEVE943ykND/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Decisions - NanoGPT API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Typed choices, scores, and yes/no probabilities from decision models.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NanoGPT API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nano-gpt.com/api-reference/endpoint/decisions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nano-gpt.mintlify.site/_mintlify/api/og/v2?division=Endpoint+Examples\u0026amp;title=Decisions\u0026amp;description=Typed+choices%2C+scores%2C+and+yes%2Fno+probabilities+from+decision+models.\u0026amp;theme=acc4bdc262f9cc8fb36c21bb\u0026amp;signature=eea2ea188490430621e20f50a096bf6d246977d3d35a46b43fbaa23264c5adb0\">\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=\"Decisions - NanoGPT API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Typed choices, scores, and yes/no probabilities from decision models.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nano-gpt.mintlify.site/_mintlify/api/og/v2?division=Endpoint+Examples\u0026amp;title=Decisions\u0026amp;description=Typed+choices%2C+scores%2C+and+yes%2Fno+probabilities+from+decision+models.\u0026amp;theme=acc4bdc262f9cc8fb36c21bb\u0026amp;signature=eea2ea188490430621e20f50a096bf6d246977d3d35a46b43fbaa23264c5adb0\">\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/nano-gpt/ojaWxmEVE943ykND/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NanoGPT API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nano-gpt.com/api-reference/endpoint/decisions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/decisions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nano-gpt.com/#organization\",\"name\":\"NanoGPT API Documentation\",\"url\":\"https://docs.nano-gpt.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nano-gpt/6FCMRUAo4M2hGCVC/logo/light.svg?fit=max\u0026auto=format\u0026n=6FCMRUAo4M2hGCVC\u0026q=85\u0026s=d89f6de57aa2b12dc2ea56df5d7ec9f6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nano-gpt.com#website\",\"name\":\"NanoGPT API Documentation\",\"url\":\"https://docs.nano-gpt.com\",\"publisher\":{\"@id\":\"https://docs.nano-gpt.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions#webpage\",\"url\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions\",\"name\":\"Decisions\",\"description\":\"Typed choices, scores, and yes/no probabilities from decision models.\",\"dateModified\":\"2026-11-21T20:23:35.409Z\",\"isPartOf\":{\"@id\":\"https://docs.nano-gpt.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoint Examples\",\"item\":\"https://docs.nano-gpt.com/api-reference/endpoint/models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Decisions\",\"item\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions#apireference\",\"headline\":\"Decisions\",\"name\":\"Decisions\",\"description\":\"Typed choices, scores, and yes/no probabilities from decision models.\",\"url\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nano-gpt.com/api-reference/endpoint/decisions#webpage\"},\"dateModified\":\"2026-11-21T20:23:35.409Z\",\"publisher\":{\"@id\":\"https://docs.nano-gpt.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nano-gpt.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NanoGPT API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NanoGPT API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/decisions.md","siteName":"NanoGPT API Documentation","nav":{"global":{"anchors":[{"anchor":"Back to NanoGPT","icon":"book-open-cover","href":"https://nano-gpt.com"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/KaQt8gPG6V"},{"anchor":"Blog","icon":"newspaper","href":"https://nano-gpt.com/blog"}]},"groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Authentication","href":"/authentication"},{"title":"Quickstart","href":"/quickstart"},{"title":"Migrate from OpenRouter","href":"/migrate-from-openrouter"},{"title":"Volume Pricing","href":"/volume-pricing"}]},{"group":"Endpoint Examples","pages":[{"title":"Models","openapi":"GET /v1/models","href":"/api-reference/endpoint/models"},{"title":"List Image Models","api":"GET https://api.nano-gpt.com/api/v1/images/models","href":"/api-reference/endpoint/image-api-models"},{"title":"Get Image Model Endpoints","api":"GET https://api.nano-gpt.com/api/v1/images/models/{modelId}/endpoints","href":"/api-reference/endpoint/image-api-model-endpoints"},{"title":"Image Models","api":"GET https://api.nano-gpt.com/api/v1/image-models","href":"/api-reference/endpoint/image-models"},{"title":"Video Models","api":"GET https://api.nano-gpt.com/api/v1/video-models","href":"/api-reference/endpoint/video-models"},{"title":"Audio Models","api":"GET https://api.nano-gpt.com/api/v1/audio-models","href":"/api-reference/endpoint/audio-models"},{"title":"Personalized Models","openapi":"GET /personalized/v1/models","href":"/api-reference/endpoint/personalized-models"},{"title":"Characters","openapi":"GET /v1/characters","href":"/api-reference/endpoint/characters"},{"title":"Character Models","openapi":"GET /v1/character-models","href":"/api-reference/endpoint/character-models"},{"title":"Chat Completion","openapi":"POST /v1/chat/completions","href":"/api-reference/endpoint/chat-completion"},{"title":"Batch API","href":"/api-reference/endpoint/batches"},{"title":"List Inline Batches","openapi":"GET /api/beta/batches","href":"/api-reference/endpoint/inline-batches-list"},{"title":"List All Batches","openapi":"GET /api/v1/batches","href":"/api-reference/endpoint/batches-list"},{"title":"Direct Web Search API","api":"POST https://api.nano-gpt.com/api/web","href":"/api-reference/endpoint/web-search"},{"title":"Data API","api":"GET https://api.nano-gpt.com/api/v1/data","description":"Discover and call NanoGPT data tools through one stable endpoint family","href":"/api-reference/endpoint/data-api"},{"title":"Decisions","openapi":"POST /v1/decisions","href":"/api-reference/endpoint/decisions"},{"title":"Responses","openapi":"POST /v1/responses","description":"Create a response with the OpenAI-compatible Responses API. Compatible models can use the Responses-only hosted tool-search pilot by adding a nanogpt:tool_search or tool_search entry and marking function tools with defer_loading: true. The NanoGPT Advisor extension is available for non-streaming, foreground, platform-billed pay-as-you-go API-key requests that do not use client tools, structured output, inline moderation, BYOK, accountless payment, memory, or server-side content enhancements.","href":"/api-reference/endpoint/responses"},{"title":"Messages","openapi":"POST /v1/messages","href":"/api-reference/endpoint/messages"},{"title":"Messages Count Tokens","api":"POST https://api.nano-gpt.com/api/v1/messages/count_tokens","href":"/api-reference/endpoint/messages-count-tokens"},{"title":"Completions","openapi":"POST /v1/completions","href":"/api-reference/endpoint/completion"},{"title":"v1/audio/transcriptions (STT)","api":"POST https://api.nano-gpt.com/api/v1/audio/transcriptions","href":"/api-reference/endpoint/audio-transcriptions"},{"title":"Embeddings","openapi":"POST /v1/embeddings","href":"/api-reference/endpoint/embeddings"},{"title":"Rerank","href":"/api-reference/endpoint/rerank"},{"title":"Embedding Models","openapi":"GET /v1/embedding-models","href":"/api-reference/endpoint/embedding-models"},{"title":"Generate Images","api":"POST https://api.nano-gpt.com/api/v1/images","href":"/api-reference/endpoint/image-api-generate"},{"title":"Image Generation (OpenAI-Compatible)","openapi":"POST /v1/images/generations","href":"/api-reference/endpoint/image-generation-openai"},{"title":"Image Edits","api":"POST https://api.nano-gpt.com/api/v1/images/edits","href":"/api-reference/endpoint/image-edits"},{"title":"NSFW Image Classification","openapi":"POST /nsfw/image","href":"/api-reference/endpoint/nsfw-image"},{"title":"Moderation Models","openapi":"GET /v1/moderation-models","href":"/api-reference/endpoint/moderation-models"},{"title":"Moderations","openapi":"POST /v1/moderations","href":"/api-reference/endpoint/moderations"},{"title":"AI Detection","api":"POST https://api.nano-gpt.com/api/v1/ai-detection","href":"/api-reference/endpoint/ai-detection"},{"title":"AI Image Detection","api":"POST https://nano-gpt.com/api/v1/ai-detection/image","href":"/api-reference/endpoint/ai-detection-image"},{"title":"AI Video Detection","api":"POST https://nano-gpt.com/api/v1/ai-detection/video","href":"/api-reference/endpoint/ai-detection-video"},{"title":"Speech-to-Text Transcription","openapi":"POST /transcribe","href":"/api-reference/endpoint/transcribe"},{"title":"Speech-to-Text Status","openapi":"POST /transcribe/status","href":"/api-reference/endpoint/transcribe-status"},{"title":"YouTube Transcription","openapi":"POST /youtube-transcribe","href":"/api-reference/endpoint/youtube-transcribe"},{"title":"Context Memory (Standalone)","openapi":"POST /v1/memory","href":"/api-reference/endpoint/memory"},{"title":"Web Scraping","openapi":"POST /scrape-urls","href":"/api-reference/endpoint/scrape-urls"},{"title":"Data Extraction APIs","api":"POST https://api.nano-gpt.com/api/v1/firecrawl","href":"/api-reference/endpoint/data-extraction"},{"title":"v1/audio/speech (TTS + Music)","api":"POST https://api.nano-gpt.com/api/v1/audio/speech","href":"/api-reference/endpoint/speech"},{"title":"Text-to-Speech","openapi":"POST /tts","href":"/api-reference/endpoint/tts"},{"title":"TTS Status","openapi":"GET /tts/status","href":"/api-reference/endpoint/tts-status"},{"title":"Voice Cloning","api":"POST https://api.nano-gpt.com/api/voice-clone/minimax","href":"/api-reference/endpoint/voice-cloning"},{"title":"TEE Attestation","openapi":"GET /v1/tee/attestation","href":"/api-reference/endpoint/tee-attestation"},{"title":"TEE Signature","openapi":"GET /v1/tee/signature/{requestId}","href":"/api-reference/endpoint/tee-signature"},{"title":"Video Generation","openapi":"POST /generate-video","href":"/api-reference/endpoint/video-generation"},{"title":"Video Status (Unified)","openapi":"GET /video/status","href":"/api-reference/endpoint/video-status-unified"},{"title":"Video Recover","openapi":"GET /generate-video/recover","href":"/api-reference/endpoint/video-recover"},{"title":"Video Content","openapi":"GET /generate-video/content","href":"/api-reference/endpoint/video-content"},{"title":"Check Balance","openapi":"POST /check-balance","href":"/api-reference/endpoint/check-balance"},{"title":"Usage","openapi":"GET /v1/usage","href":"/api-reference/endpoint/usage"},{"title":"Request Billing","openapi":"GET /v1/usage/requests/{request_id}","href":"/api-reference/endpoint/request-billing"},{"title":"Feedback API","openapi":"GET /v1/feedback/{id}","href":"/api-reference/endpoint/feedback"},{"title":"Create Invitation","openapi":"POST /invitations/create","href":"/api-reference/endpoint/invitations-create"},{"title":"Subscription Usage","openapi":"GET /subscription/v1/usage","href":"/api-reference/endpoint/subscription-usage"},{"title":"Receive Nano","openapi":"POST /receive-nano","href":"/api-reference/endpoint/receive-nano"},{"title":"Deposits (Crypto + Fiat)","api":"POST https://nano-gpt.com/api/transaction/create/{ticker}","href":"/api-reference/endpoint/crypto-deposits"}]},{"group":"API Reference","pages":[{"title":"Text Generation","href":"/api-reference/text-generation"},{"title":"Embeddings","href":"/api-reference/embeddings"},{"title":"Image API","href":"/api-reference/image-generation"},{"title":"Video Generation","href":"/api-reference/video-generation"},{"title":"Speech-to-Text (STT)","href":"/api-reference/speech-to-text"},{"title":"Text-to-Speech (TTS)","href":"/api-reference/text-to-speech"},{"title":"Music Generation","href":"/api-reference/music-generation"},{"title":"TEE Verification","href":"/api-reference/tee-verification"},{"title":"Evals and Observability","href":"/api-reference/evals"},{"title":"Teams","href":"/api-reference/teams"},{"title":"Management API","href":"/api-reference/management-api"}]},{"group":"Miscellaneous","pages":[{"title":"API Hosts","href":"/api-reference/miscellaneous/api-hosts"},{"title":"Rate Limits","href":"/api-reference/miscellaneous/rate-limits"},{"title":"Webhooks","href":"/api-reference/miscellaneous/webhooks"},{"title":"Error Handling","href":"/api-reference/miscellaneous/error-handling"},{"title":"Inline Moderation","href":"/api-reference/miscellaneous/inline-moderation"},{"title":"Accountless Lightning L402 API Payments","href":"/api-reference/miscellaneous/x402"},{"title":"Extended Thinking (Reasoning)","href":"/api-reference/miscellaneous/extended-thinking"},{"title":"Change Reasoning Effort Within a Conversation","href":"/api-reference/miscellaneous/inline-reasoning-effort"},{"title":"Streaming Protocol (SSE)","href":"/api-reference/miscellaneous/streaming-protocol"},{"title":"Compressed Request Bodies","href":"/api-reference/miscellaneous/request-compression"},{"title":"Tool Calling Diagnostics","href":"/api-reference/miscellaneous/tool-calling-diagnostics"},{"title":"Prompt Metadata in Downloaded Images","href":"/api-reference/miscellaneous/image-prompt-metadata"},{"title":"Hosted tool search","href":"/api-reference/miscellaneous/hosted-tool-search"},{"title":"Advisor","href":"/api-reference/miscellaneous/advisor"},{"title":"Video Input","href":"/api-reference/miscellaneous/video-input"},{"title":"Prompt Caching","href":"/api-reference/miscellaneous/prompt-caching"},{"title":"Pricing and Fees","href":"/api-reference/miscellaneous/pricing"},{"title":"Pay-As-You-Go Billing Override","href":"/api-reference/miscellaneous/billing-override"},{"title":"Provider Selection","href":"/api-reference/miscellaneous/provider-selection"},{"title":"Distillation Policy","href":"/api-reference/miscellaneous/distillation-policy"},{"title":"Model Suffixes","href":"/api-reference/miscellaneous/model-suffixes"},{"title":"Model Presets","href":"/api-reference/miscellaneous/model-presets"},{"title":"PII Redaction","href":"/api-reference/miscellaneous/pii-redaction"},{"title":"Private Mode API","href":"/api-reference/miscellaneous/private-mode"},{"title":"API Key Masking","href":"/api-reference/miscellaneous/api-key-masking"},{"title":"OAuth PKCE","href":"/api-reference/miscellaneous/oauth-pkce"},{"title":"Brave","href":"/api-reference/miscellaneous/brave"},{"title":"Bring Your Own Key (BYOK)","href":"/api-reference/miscellaneous/byok"},{"title":"For Providers","href":"/api-reference/miscellaneous/for-providers"},{"title":"Auto Recharge","href":"/api-reference/miscellaneous/auto-recharge"},{"title":"Chrome Extension","href":"/api-reference/miscellaneous/chrome-extension"},{"title":"URL Parameters (Web App)","href":"/web-app/url-parameters"},{"title":"JavaScript SDK","href":"/api-reference/miscellaneous/javascript"},{"title":"Context Memory","href":"/api-reference/miscellaneous/context-memory"},{"title":"TypeScript SDK","href":"/api-reference/miscellaneous/typescript"},{"title":"Model Context Protocol (MCP)","href":"/api-reference/miscellaneous/mcp-server"}]},{"group":"Integrations","pages":[{"title":"Integrations","href":"/integrations"},{"title":"CLI Device Login","href":"/integrations/cli-login"},{"title":"Cline","href":"/integrations/cline"},{"title":"Codex CLI","href":"/integrations/codex-cli"},{"title":"Grok CLI","href":"/integrations/grok-cli"},{"title":"Claude Code","href":"/integrations/claude-code"},{"title":"DeepSeek Harness","href":"/integrations/deepseek-harness"},{"title":"Roo Code","href":"/integrations/roocode"},{"title":"Kilo Code","href":"/integrations/kilocode"},{"title":"Cursor","href":"/integrations/cursor"},{"title":"Fluent","href":"/integrations/fluent"},{"title":"MCP","href":"/integrations/mcp"},{"title":"n8n","href":"/integrations/n8n"},{"title":"SillyTavern","href":"/integrations/sillytavern"},{"title":"RisuAI","href":"/integrations/risuai"},{"title":"OpenWebUI","href":"/integrations/openwebui"},{"title":"Otaku","href":"/integrations/otaku"},{"title":"TypingMind","href":"/integrations/typingmind"},{"title":"LibreChat","href":"/integrations/librechat"},{"title":"OpenHands","href":"/integrations/openhands"},{"title":"OpenClaw (ClawdBot)","href":"/integrations/openclaw"},{"title":"OpenCode","href":"/integrations/opencode"},{"title":"JanitorAI","href":"/integrations/janitorai"},{"title":"Droid","href":"/integrations/droid"}]}]},"basePath":"","title":"Decisions - NanoGPT API Documentation","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}