Liquid AI’s d1.2 and d1.2-ultra are now available on AI Gateway with audio input and bounding box support.
These decision models return structured answers instead of generating text. Ask Boolean questions for yes/no probabilities, Choice questions to select a category, or Score questions to rate an input against a rubric. Multiple questions can share the same input in one request.
d1.2 is the faster, lower-cost model. d1.2-ultra is Liquid AI’s most accurate decision model.
Use liquid/d1.2 or liquid/d1.2-ultra as the model name. Before running the examples, set AI_GATEWAY_API_KEY to an AI Gateway API key.
Pass audio as a file part in state. This example reads voicemail.flac and returns the probability that the caller is requesting a refund. It requires ai 7.0.136 or later.
For image classification, pass image bytes with the matching media type, such as image/png.
Box questions return top and bottom as fractions of the image height, and left and right as fractions of its width.
This Python example uses the Decisions API to locate a signature in form.png and print its bounding box:
Decision requests appear in AI Gateway logs and count toward budgets.
Learn more in the decision model documentation, or browse all decision models.