Vibeleaderboard
← All Intel
Intel / article

Liquid AI's d1 is available on AI Gateway

Source
vercel.com
Author
Zachary Chen
Date

Context

Liquid AI's d1 answers software questions in structured form: for example, whether a support conversation records a refund, or which permitted color appears in an image. A developer supplies the input and specifies the answer type, such as a yes-or-no decision or a choice among labels. The returns answers with probabilities, without composing a prose response. The AI Gateway announcement makes this decision interface available through liquid/d1.

These requests also appear in the gateway's logs and count toward its budgets. That gives applications a common place to track decision calls alongside other model use. Integration details.

Key takeaways · AI-distilled
  • d1 answers typed questions (Boolean, Choice and Score) about a supplied and returns answers with probabilities. It is called through the AI SDK's experimental_decide, an Decisions , or a TypeSafe-compatible API.
  • The state can include images: Vercel's example passes a base64 PNG as an image_url and asks a Choice question with red, blue or green as criteria, the pattern for visual classification, inspection or scoring.
  • On AI Gateway, decision calls appear in logs and count toward budgets alongside other model requests, so their cost is tracked the same way as text models.
Terms in this piece · Glossary
  • Model — A computational system that uses learned patterns to produce an output from information supplied to it.
  • State — Information describing a system at a particular moment, such as its current text, settings or saved records.
  • API — Application programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.
  • OpenAI-compatible API — An API that accepts the common OpenAI request shape so existing clients can call another provider with fewer code changes.
More from Zachary Chen
Recommended reads
Comments

Checking sign-in…

Loading comments…