Skip to main content

Liquid AI d1-ultra Explained: Choose a Label, Keep Control of the Action

Liquid AI d1-ultra workflow from text and image evidence to declared choices, followed by application-controlled routing or review.

I would stop asking AI to write a paragraph when the software only needs a routing label. But I would not mistake a neatly returned label for a correct or authorized decision. Liquid AI’s d1-ultra makes that distinction useful: choosing among known answers and composing new text are different jobs.

Available through Liquid’s API and partner gateways, d1-ultra evaluates text and images for bounded decisions. Vercel’s October 15 announcement documents its arrival on AI Gateway. This guide explains the output contract, image billing and review policy a beginner should understand before moving a classifier into a live workflow.

Key takeaways
  • Known answer choices suit a decision model; a newly written response remains a generative task.
  • Typed output reduces formatting work, not semantic mistakes.
  • Images are charged again for each question, even when questions share one request.
  • Validate probabilities on your data and keep action permissions separate.

Start with what the application needs back

A classifier assigns an input to a category. A router uses that category to choose a next destination. An enum is simply a software list of allowed values. If the allowed outputs are billing, technical and other, the application needs one of those values—not a new essay explaining customer service.

Liquid’s decision-model overview describes models that return structured decisions without generating text tokens. By contrast, a generative language model composes a sequence of tokens that can become a reply, report or program. Both can appear in one system: classify the request first, then let a generative model draft a response for review.

Read Figure 1: compare the output contract of each branch. Arrow length does not represent elapsed time.

Choose a route or compose an answer?The same input can be used for a bounded decision with declared options or a generative task that writes new text. An application can combine both paths. Arrows show flow, not measured speed.Choose a route or compose an answer?Conceptual workflow: the output contract selects the model path.INPUTText + optional imagesCHOOSEDeclared optionsTyped probabilitiesAPPLICATIONRoute or reviewCOMPOSENew prose or codeGenerative modelREADERRead the new textOne workflow may use both paths; choose by the output the task needs.
Two output contractsThe same input can be used for a bounded decision with declared options or a generative task that writes new text. An application can combine both paths. Arrows show flow, not measured speed.Two output contractsConceptual choose / compose workflow.INPUTText + optional imagesCHOOSE: BOUNDED OUTPUTDeclared optionsReturn typed probabilitiesApplication routes or reviewsCOMPOSE: NEW CONTENTA generative model writesthe answer or code.Different output contracts; not a race.
Figure 1. Conceptual choose-versus-compose paths. A routing label and the customer-facing response are different deliverables. Original diagram: Tech Trend Insight. Source and context.

Suppose a fictional repair desk receives a message and a photo of a scratched device. Routing it to an inspection queue is a bounded decision. Writing a considerate explanation of warranty options is a separate task. Issuing a replacement is a third task with its own authority. Keeping those three jobs apart makes failures easier to diagnose.

Choose the primitive that matches the question

A primitive is a basic supported question type. d1-ultra uses the same hosted question contracts as d1. Liquid documents Noul for a yes/no probability, Choice for named unordered options, and Score for a probability-weighted position on an ordered rubric. See the hosted API reference.

Read Figure 2: the numbers are constructed examples. Each primitive answers a different kind of question.

Three primitives answer three different questionsHypothetical Noul probability 0.8; Choice distribution technical 0.7 billing 0.2 other 0.1; Score on levels 0,1,2 has probabilities 0.1,0.2,0.7 and expected value 1.6. These values explain the contracts, not observed model performance.Three primitives answer three different questionsConstructed response specimens for reading each output field.NOULYes/no questionP(yes) = 0.80An estimated probability,not an action permission.CHOICEUnordered categoriestechnical 0.70billing 0.20other 0.10Sum = 1.00SCOREOrdered rubric: 0, 1, 2P = [0.10, 0.20, 0.70]0×.10 + 1×.20 + 2×.70Expected score = 1.60Constructed response values for explanation; not d1-ultra measurements.The Score value is a position on your rubric—not a probability of correctness.
Read the right outputHypothetical Noul probability 0.8; Choice distribution technical 0.7 billing 0.2 other 0.1; Score on levels 0,1,2 has probabilities 0.1,0.2,0.7 and expected value 1.6. These values explain the contracts, not observed model performance.Read the right outputHypothetical response specimens.NOULP(yes) = 0.80Probability, not permission.CHOICEtechnical .70 / billing .20other .10 → total 1.00Categories have no numeric order.SCORELevels: 0, 1, 2Probabilities: .10, .20, .70Weighted position = 1.60Constructed values for explanation.Score is a rubric position,not a correctness probability.
Figure 2. Worked response specimens. Score uses zero-indexed ordered levels. A Choice confidence field is separate from the category probabilities. Original diagram: Tech Trend Insight. Source and context.

For the repair desk, Noul could ask whether visible damage is present; Choice could select the next team; Score could rate urgency using carefully defined levels. These are three distinct questions, not three names for certainty. A rubric is a list of descriptions that explains what each level means. In the zero-indexed example, levels 0, 1 and 2 weighted by 0.10, 0.20 and 0.70 give 0×0.10 + 1×0.20 + 2×0.70 = 1.60.

Do not treat a Score of 1.60 as a 160% probability. Likewise, Choice’s separate confidence field summarizes how clear-cut the answer is; do not assume it equals the top option’s probability. Keep field names and meanings explicit in your integration.

A bounded answer can still be the wrong answer

The migration guide recommends decision models when possible answers are known beforehand. That condition deserves more attention than the API call. A category list is a model of your business process. If an important category is absent, a response can satisfy the format while failing the real task.

Read Figure 3: the shipping request has no appropriate destination in the supplied choices.

A legal label can still be the wrong answerA fictional shipping request is forced into billing or technical categories because the schema omits shipping and other. A well-formed response can be semantically wrong. The application should define out-of-scope behavior and evidence requirements.A legal label can still be the wrong answerFictional counterexample: the permitted answer set is incomplete.FICTIONAL TICKET“Where is my parcel?”Actual need: shippingINCOMPLETE OPTIONSbilling / technicalNo shipping or otherVALID LABELStill thewrong taskFIX THE QUESTION BEFORE TUNING THE THRESHOLDAPPLICATION-OWNED FALLBACKAdd an out-of-scope route, define evidence needs, and send uncertain cases to review.Normalizing probabilities over available labels cannot create a missing category.
The missing-option trapA fictional shipping request is forced into billing or technical categories because the schema omits shipping and other. A well-formed response can be semantically wrong. The application should define out-of-scope behavior and evidence requirements.The missing-option trapFictional ticket; proposed schema check.FICTIONAL TICKET“Where is my parcel?”Actual need: shippingINCOMPLETE OPTIONSbilling / technicalMissing: shipping and otherA valid label can still be wrong.The missing answer is unavailable.Add an out-of-scope path.Define required evidence.Review ambiguous cases.Proposed schema and fallback check.
Figure 3. Fictional schema-failure example. Restricting output vocabulary reduces format drift; it does not prove the chosen category is appropriate. Original diagram: Tech Trend Insight. Source and context.

My proposed schema review asks three things: are the options distinguishable, is the evidence sufficient, and where should an unfamiliar request go? Include an out-of-scope category when appropriate, then give it a real review path. Adding other alone is not a guarantee that every novel case will be recognized. Use examples of mixed topics, unreadable photos and requests outside your service to test that boundary.

Restricted outputs remove one source of text-format drift. They do not make damage assessments infallible, turn an ambiguous image into evidence, or prevent errors caused by bad question wording. Maintain ordinary response, transport and business-rule checks around the model.

Count questions as well as pixels

Liquid bills the hosted models on input tokens; output generation contributes zero tokens. Its image rule uses 32×32-pixel patches at 1.5 tokens per patch, with rounding per image. Each question is charged for its own text and all supplied images again. The image token accounting section is the source for that contract.

For a 1,024×1,024 image, ceil(1024/32) × ceil(1024/32) = 1,024 patches and ceil(1024×1.5) = 1,536 image tokens per question. For other dimensions, round the patch counts up rather than treating partial edge patches as free.

Read Figure 4: assume 200 additional text tokens per question, including the relevant prompt material. Three questions repeat the image charge.

One image can be charged for more than one questionA 1024 square image makes 1024 patches of 32 square pixels, billed as 1536 tokens per question. Assuming 200 text tokens per question, one question is 1736 input tokens and three questions are 5208. Bar lengths share a zero-based 0 to 6000 scale.One image can be charged for more than one questionWorked input-token estimate; bars share a zero-based 0–6,000-token scale.1,024 × 1,024 pixels32 × 32 patch grid1,024 patches × 1.51,536 image tokens / questionSchematic crop grid; full image has 32 × 32 patches.ASSUME 200 TEXT TOKENS PER QUESTION02000400060001 question17363 questions5208Billable input tokens / requestSame image, more questions: repeated image charges are counted again.
Count images per questionA 1024 square image makes 1024 patches of 32 square pixels, billed as 1536 tokens per question. Assuming 200 text tokens per question, one question is 1736 input tokens and three questions are 5208. Bar lengths share a zero-based 0 to 6000 scale.Count images per questionCalculated input tokens per request.1,024 × 1,024 pixels32 × 32 patches = 1,024Image tokens / question = 1,536Assume 200 text tokens / question.Grid above is schematic.1 question17363 questions520806,000 tokensEvery question is billed forthe image and its own text again.
Figure 4. Calculated image-plus-text token counts under the stated assumptions. The decorative grid shows a schematic subset, not all 1,024 patches. Original diagram: Tech Trend Insight. Source and context.

The Liquid price page, checked October 17, lists d1-ultra at $0.042 per million input tokens; cached input has the same listed rate. Using that rate, the assumed three-question request has 3 × (1,536 + 200) = 5,208 input tokens. Estimated inference cost is 5,208 × $0.042 / 1,000,000 = $0.000218736. At 100,000 identical requests that is $21.8736, before retries, additional questions, downstream models, review work, taxes or credits.

One network call can reduce round trips without reducing the count of billable questions. A useful cost log therefore records input usage, question count, retry count and the final outcome. Compare total cost per correctly handled request, not just a cheap model call. This example is arithmetic under stated assumptions; actual token usage comes from the endpoint’s usage report.

Confirm the endpoint, limits and data path

An API endpoint is the address and contract used to call a service. Liquid’s reference uses /decisions/v1/systemone and selects d1-ultra in the model field; OpenRouter uses its Decisions interface and the model ID liquid/d1-ultra. These are decision interfaces, so do not assume an ordinary chat-completion request is interchangeable.

Vercel’s model catalog specifies a 32,768-token context window and shows an input price of $0.04/M, while Liquid and OpenRouter list $0.042/M. The worked estimate above uses Liquid’s explicit rate; check the exact billing route rather than silently treating differently displayed prices as identical invoices.

Liquid’s image documentation currently requires encoded image content, not a remote image URL, on its direct API. Gateway wrappers can expose different request shapes. Verify image support and request-size limits for the path you actually use. On October 17, OpenRouter’s catalog also states that this model is not available through EU in-region routing. A gateway’s general compliance capabilities are not proof of this model’s availability in a particular region.

Liquid describes a single-call decision path and Vercel describes a single forward pass. That avoids generating a text sequence, but it does not make network, queue or input-processing time constant. Measure end-to-end latency at representative input sizes and load; no universal sub-second service guarantee is established here.

Test the probability before turning it into policy

Accuracy asks how often the chosen category matches a checked answer. Calibration asks whether predicted probabilities agree with observed frequencies across comparable cases. A classifier can choose the right label often but be too certain when it is wrong. Liquid describes its outputs as calibrated; the deployment question is whether that remains true on your own inputs.

Read Figure 5: the dashed diagonal is an ideal reference. You must supply actual held-out observations.

Probability needs an observed reliability checkA diagonal ideal-calibration reference relates mean predicted category probability to the observed correct fraction of matched examples. No observed d1-ultra points are plotted. The illustration explains how to check calibration on held-out labeled examples.Probability needs an observed reliability checkIdeal reference: compare held-out observations against the diagonal.Observed correct share01.0Mean predicted probability in a group →IDEAL REFERENCEOnly if calibrated:P = .90 group →about 90% correctover enough matched casesPlot your observed groups against the reference using held-out labeled examples.Reference only; add your held-out observations.1.00
Test the probabilitiesA diagonal ideal-calibration reference relates mean predicted category probability to the observed correct fraction of matched examples. No observed d1-ultra points are plotted. The illustration explains how to check calibration on held-out labeled examples.Test the probabilitiesIdeal calibration reference only.Observed correct share01.0Mean predicted probability →Dashed line: ideal calibration.P = .90 only means about90% correct if calibrationholds for that case group.Add your held-out observations.No model measurements shown.1.00
Figure 5. Conceptual calibration reference. A high probability or confidence field is not a verified accuracy rate on your deployment data. Original diagram: Tech Trend Insight. Source and context.

Build a held-out set of labeled cases not used to tune the questions. Group cases by predicted category probability, then compare mean probability with the fraction correctly classified. Retain the sample count and inspect results by category and image quality. A group near 0.90 should be about 90% correct only when calibration holds there; a few examples cannot establish that reliability.

For the repair desk, a wrong queue assignment may be cheaply corrected while an unauthorized replacement may be costly. Choose thresholds and review rules from those error costs and validated performance. Copying generic cutoffs such as 0.95 for automatic execution would turn an arbitrary number into policy.

Keep a separate gate for action

Read Figure 6: eligibility and evidence lead to a routing decision; they do not grant new permissions.

The application owns the action boundaryInput eligibility and hard rules precede automated routing. Uncertain, incomplete or out-of-scope cases go to review or abstention. Routing confidence does not grant permission for refunds, external messages or writes. Thresholds require workload validation.The application owns the action boundaryProposed decision and review gates; no universal automation threshold.EVIDENCECheck input + scopeExclude forbidden actionsELIGIBLEAND RELIABLE?ALLOWED PATHRoute inside policyREVIEW / ABSTAINMissing evidence?Uncertain or out of scope?SEPARATE ACTION AUTHORITYA routing result does not grant refund or write permission.Keep audit records and an explicit approval boundary.Proposed policy: choose thresholds from validation and the cost of each error.YESNO / UNCERTAIN
Probability is not permissionInput eligibility and hard rules precede automated routing. Uncertain, incomplete or out-of-scope cases go to review or abstention. Routing confidence does not grant permission for refunds, external messages or writes. Thresholds require workload validation.Probability is not permissionProposed routing and review policy.EVIDENCECheck input and scope.Reject forbidden actions.ELIGIBLE ANDRELIABLE?Yes: route within existing policy.No: review or abstain.ACTION AUTHORITYRouting does not approvea refund, message or write.Keep approval separate.Choose gates from workload validation.
Figure 6. Proposed application policy. Probability supplies evidence; authorization and review remain software and human responsibilities. Original diagram: Tech Trend Insight. Source and context.
  1. Freeze the task. Record the question wording, options, rubric, model, endpoint and preprocessing. Change one variable at a time.
  2. Run in shadow mode. Produce a proposed route alongside the existing process without executing it. Compare with reviewed labels, including mixed-topic and out-of-scope requests.
  3. Separate error types. Count misroutes, missed review cases, transport failures and prohibited actions. Record latency and total work cost alongside accuracy.
  4. Promote a narrow workflow. Start with a reversible queue assignment if validation supports it. Keep hard rules and approval for external messages, refunds or writes.
  5. Monitor and recheck. Log policy versions and reviewed overrides, protect sensitive evidence, and rerun the held-out test after model or schema changes.

My adoption rule is simple: move a bounded task only when its answer set is sound, the probabilities are useful on matched data, and the full workflow improves. Keep a generative model where the output really needs to be written. Less text generation is a design choice, not a substitute for judgment.

Practical questions

Does zero generated tokens mean the response is empty?

No. The service returns structured decision values through its API. “Generated tokens” refers to composing a text sequence, not the absence of response data.

Can a valid category still be a hallucination-like mistake?

It can still be wrong or unsupported by the evidence. The category constraint governs format; the input, taxonomy and validation determine whether that category is useful.

Should I replace every classification prompt immediately?

No. Evaluate a matched sample and the surrounding workflow first. Existing structured-output language models may already meet your needs; measure the benefit of changing the contract and integration.

Sources and method — checked October 17, 2026. API contracts and rates come from the linked first-party documentation. Response specimens, the repair-desk scenario, token arithmetic and proposed validation policy are explanatory examples. The calibration figure shows an ideal reference, not measured d1-ultra performance.

Official technical sources

Popular posts from this blog

Meta’s VideoJAM Explained: Why Motion Coherence Matters in AI Video

VideoJAM is easy to misunderstand because its name sounds like a product. The paper presents something narrower and more useful to analyze: a framework that gives a video generator an explicit motion prior. It is designed to address temporal coherence—the way objects, bodies, and physical interactions should remain plausible as a clip unfolds—not to provide a consumer dashboard with templates or a “generate video” button. Key Takeaways VideoJAM is a research framework for video generators, not a consumer-facing app with templates or a standalone UI. The training objective predicts appearance and motion from one joint representation; Inner-Guidance uses the model’s evolving motion prediction during sampling. On VideoJAM-bench, the authors reported motion-preference results against Sora, Kling 1.5, and Runway Gen3, while visual quality and motion remain separate measures. The experiments used 256×256, 128-frame clips at 24 fps and a motion-focused 128-prompt benchmark, so the results do ...

Grok 3’s 2025 Release: What xAI Announced, What Arrived, and What Changed

“When will Grok 3 launch?” was a moving target in February 2025. Elon Musk and xAI teased the model before the public beta announcement, so headlines often mixed a promised date with a product that was still being staged. The durable story is the timeline: a training claim, an announcement, limited access, and a later evaluation period are four different events. Key Takeaways xAI’s written Grok 3 announcement is dated February 19, 2025. That document date alone does not establish the time of a livestream or first access for every account. The beta included Grok 3, Grok 3 mini, optional Think modes, and the DeepSearch research agent. Early access was tied to Grok.com and X Premium tiers; xAI said API access was coming later at announcement time. A release date is not a quality guarantee. Check availability, rate limits, citations, and tool permissions in the environment you actually use. Open original image at full size ↗ Figure 1: Official NVIDIA–xAI visual from the October 2024 Coloss...

How to Process Apple Mail in Bulk with Claude: A Safer, Review-First Workflow

A crowded Apple Mail inbox is easier to review when message selection, classification, and the final action remain separate. This guide uses Claude to help summarize and draft from deliberately supplied text, while a person checks the original thread before sending, archiving, or deleting anything. The worked example uses fictional messages to make that review boundary concrete. Key Takeaways Claude is useful for triage, summaries, and draft replies, but a chat session is not a native Apple Mail control layer. A safer workflow separates four steps: select, redact, classify, and review. Use a structured output format so every message receives an explicit category, urgency, next action, and an uncertainty note. Measure the workflow on a small labelled sample before expanding it to a real mailbox. Open original diagram at full size ↗ Figure 1: Prompt chaining workflow from Anthropic: break a review task into explicit steps so selection, redaction, classification, and drafting c...