Using d1-ultra on Vercel AI Gateway

Implementation guide · d1 · Liquid AI

Serverless

Vercel AI Gateway exposes d1-ultra through model ID liquid/d1-ultra. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-10-15. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Vercel AI Gateway and generate an API key.
  2. 2
    Use the Vercel AI Gateway SDK or REST API to call liquid/d1-ultra — see the documentation for request format.
  3. 3
    You'll be billed $0.04/1M input, Free/1M output tokens. See full pricing.

Code Examples

Install
pip install openai
API key
AI_GATEWAY_API_KEY
Model ID
liquid/d1-ultra

creator/model-name e.g. kwaipilot/kat-coder-pro-v2

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
    model="liquid/d1-ultra",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Pricing on Vercel AI Gateway

TypePrice (per 1M)
Input tokens$0.04
Output tokensFree
Image input$1.00

Capabilities

VisionMultimodalStructured Outputs

About d1-ultra

d1-ultra is a decision model from Liquid AI, released October 15, 2026 on the Liquid API. It reads text, images or both plus typed questions (noul yes/no, Choice, Score) in a single forward pass and returns probabilities without generating output tokens. Liquid states it is built on a larger open-weight base than d1 and targets tasks such as visual defect inspection and checking damage claims against photos. Billed on input tokens only ($0.042 per 1M input; output listed at $0). API-only; no public weights.

Model Specs

Released2026-10-15

More Models on Vercel AI Gateway

Provider

Vercel AI Gateway

Vercel