
Liquid AI's d1 is available on AI Gateway
Quick Answer
Liquid AI's d1 model is now available on AI Gateway, enabling classification and scoring through typed questions and image analysis.
Quick Take
It supports decision-making without generating text tokens and integrates with various APIs for streamlined access.
Key Points
- d1 evaluates shared state for classification, routing, and scoring.
- It can analyze images for visual classification and inspection.
- Use d1 via the AI SDK decision API or OpenAI-compatible Decisions API.
- AI Gateway tracks model usage and costs in a unified manner.
- Documentation available for Choice, Score, and Boolean questions.
📖 Reader Mode
~1 min readLiquid d1 is now available on AI Gateway.
d1 is a decision model that evaluates shared state against typed questions for classification, routing, and scoring. It returns structured answers with probabilities without generating text tokens. d1 also has vision support: the model can answer typed questions about images for visual classification, inspection, and scoring.
Use liquid/d1 through the AI SDK decision API, the OpenAI-compatible Decisions API, or the TypeSafe-compatible API. These examples ask whether a support agent issued a refund:
Copy link to headingImage input
This example reads a local PNG named square.png and asks which color it shows:
AI Gateway provides a unified way to access models and track usage and cost. Decision calls appear in logs and count toward budgets alongside other model requests.
See the decision documentation for Choice, Score, and Boolean questions, or browse all decision models on AI Gateway.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

