跳到正文
Vercel Blog(vercel.com)· Jerilyn Zheng·· 4 天前品質評分60

Vercel AI Gateway 上線 Liquid AI 的 d1.2 與 d1.2-ultra

Liquid AI's d1.2 and d1.2-ultra are now available on AI Gateway

重點導讀

需要從音訊或圖片中找出特定資訊時,單靠生成文字不一定方便整理答案。

  • Vercel AI Gateway 現在提供 Liquid AI 的 d1.2 和 d1.2-ultra,這兩個決策模型會直接回傳結構化結果,可回答是或否、選出類別、依規準評分,也能辨認音訊內容或找出圖片物件的位置。d1.2 速度較快、成本較低。
  • d1.2-ultra 則是 Liquid AI 準確度最高的決策模型。使用者可在同一個請求中提出多個問題,請求也會記錄在 AI Gateway 的紀錄中並計入預算。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

# Liquid AI's d1.2 and d1.2-ultra are now available on AI Gateway - Vercel
Skip to content

[](https://vercel.com/home)

Copy Wordmark Copy Logo

Download Brand Assets Brand Guidelines

Products

Agent Stack

Core Platform

Tools

Resources

Learn

Build

Explore

EnterprisePricing

Get a DemoLog InSign Up

Ask AIDashboard

Image 1

  • * *

Products

Agent Stack

Core Platform

Tools

Resources

Learn

Build

Explore

Enterprise

Pricing

Get a Demo

Log InSign Up

Liquid AI's d1.2 and d1.2-ultra are now available on AI Gateway

Image 2Image 3Image 4

Jerilyn Zheng, Nick Oates, Zachary Chen

BlogChangelog

19 Nov 2026

1 min read

Copy

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.

Copy link to headingClassify a voicemail with AI SDK 7

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.

AI SDK

AI SDK AI SDK

1import { readFile } from 'node:fs/promises';2import { experimental_decide as decide } from 'ai';3
4const { answers } = await decide({5  model: 'liquid/d1.2-ultra',6  state: [7    { type: 'file', mediaType: 'audio/flac', data: await readFile('voicemail.flac') },8  ],9  questions: {10    refund: { type: 'boolean', instructions: 'Is the caller asking for a refund?' },11  },12});13
14console.log(answers.refund.probability);

Copy for agentView model details ↗

For image classification, pass image bytes with the matching media type, such as image/png.

Copy link to headingLocate an object with the Decisions API

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:

Decisions API

Decisions API Decisions API

1import base642import json3import os4from pathlib import Path5from urllib.request import Request, urlopen6
7image = base64.b64encode(Path("label.png").read_bytes()).decode("ascii")8body = {9    "model": "liquid/d1.2-ultra",10    "input": [{"role": "user", "content": [11        {"type": "input_image", "image_url": f"data:image/png;base64,{image}"},12    ]}],13    "questions": [{"type": "box", "name": "label", "instructions": "Locate the red rectangle."}],14}15request = Request(16    "https://ai-gateway.vercel.sh/v1/decisions",17    data=json.dumps(body).encode(),18    headers={19        "Authorization": f"Bearer {os.environ['AI_GATEWAY_API_KEY']}",20        "Content-Type": "application/json",21    },22)23with urlopen(request, timeout=30) as response:24    answer = json.load(response)["answers"][0]25print(answer.get("box"))

Copy for agentView model details ↗

Decision requests appear in AI Gateway logs and count toward budgets.

Learn more in the decision model documentation, or browse all decision models.

Agent Stack

Core Platform

Security

Tools

Frameworks

SDKs

Build

Learn

Explore

Company

Legal & Trust

Social

  • Image 5: VercelImage 6: Vercel

Loading status…

Select a display theme:system light dark

來源: Vercel Blog (vercel.com)
開啟原文

讀者討論

理性交流 · 即時討論