Skip to content
Dashboard

Liquid AI's d1-ultra now available on AI Gateway

d1-ultra from Liquid AI is now available on AI Gateway. It is a multimodal decision model for classification, routing, and scoring across text and images, including visual defect inspection and checking damage claims against customer photos.

Rather than generating text, d1-ultra returns structured answers with probabilities. Ask a Boolean question to get the probability of a yes/no answer, use Choice to select among named categories, or use Score to rate an ordered scale. You can ask multiple questions about the same input in one request and use the probabilities to decide when to automate an action or request human review.

d1-ultra is designed for harder real-world decisions, with an emphasis on calibrated probabilities. It supports a 32,768-token context window and is billed on input tokens only, including image input, with no output-token charges.

Use liquid/d1-ultra as the model name. The examples below ask the same question through the AI SDK, OpenAI-compatible Decisions API, and TypeSafe-compatible API:

import { experimental_decide as decide } from 'ai';
const result = await decide({
model: 'liquid/d1-ultra',
state: 'The customer reports that the delivered laptop has a cracked screen.',
questions: {
damaged: {
type: 'boolean',
instructions: 'Does the customer report that the item arrived damaged?',
},
},
});
console.log(result.answers.damaged);

See the decision models documentation for question types and additional usage details.

Try d1-ultra in the model playground.

AI Gateway provides a unified API for accessing models and tracking usage and cost. Decision calls appear in logs and count toward budgets alongside other model requests.

AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key requests.

Browse all decision models available on AI Gateway.

Reference Architecture

Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.

  • Agent stack: Build and operate agents with models, tools, and durable workflows.
  • Web applications: Choose rendering, data, authentication, and caching approaches.
  • Backends: Choose a runtime, connect services, and run background work.

Browse all stacks

Build with prompts

Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.