We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
LiquidAI: d1
liquid/d1Try LiquidAI: d1 now
Runs on your balance at the prices above. New accounts start with free usage.
Results will appear here.
Settings
LiquidAI: d1 at a glance
- Input price is 52% lower than the median of 25 Decisions models.
- Context window of 65,536 tokens, enough for long documents and multi-turn conversations.
- A typical request (1,000 input / 500 output tokens) costs about $0.000070.
About LiquidAI: d1
LiquidAI d1 is a structured decision model from Liquid AI. It is listed on api14 under the model id liquid/d1 and the provider LiquidAI, and its main category is decisions. Rather than generating free form prose, d1 is built around making choices, which makes it a different kind of tool from a general chat or writing model. If your application needs a model to pick an option, assign a score, or answer yes or no, that is the role d1 is designed to fill.
The model takes text as its input and returns decisions as its output. Its context window is 65536 tokens, and the maximum output is 58982 tokens. The provider describes d1 as a structured decision model served as a System One endpoint: you send a state along with typed questions, and it returns a choice, a score, or a yes/no answer. That framing matters when you plan an integration, because the response you get back is meant to be consumed by code rather than read as conversational text.
The practical use cases follow directly from that shape. Anywhere a system has to evaluate a state and commit to an answer, d1 can serve as the decision step: routing a request down one of several paths, scoring an item against criteria you supply, or returning a boolean for a gate or filter. Because the input is text and the output is a decision, it fits naturally into pipelines where an upstream component assembles context and a downstream component acts on the result. It is not positioned as a generator of long explanations, so treat it as the component that decides, not the one that narrates.
You can call it through api14's OpenAI-compatible API using the model id liquid/d1. Because the endpoint follows the OpenAI chat completions format, existing clients and SDKs work without special handling. One thing to check before you build: d1 lists no supported request parameters, so do not assume that sampling controls or similar options will have an effect. Send your state and typed questions in the request, and read the decision out of the response.
The main constraint to keep in mind is the 65536 token context window. If your task depends on very long inputs, plan how you will fit them, since the state and the questions both draw on that budget. And if what you actually need is text generation, summarisation, or open ended conversation, a model in a different category will fit better than d1. Choose d1 when the thing you want back is a decision.
How to call the LiquidAI: d1 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "liquid/d1".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.post("/decisions", { body: {
"model": "liquid/d1",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
} });
console.log(result.answers);
Specifications
- Context length
- 65,536
- Max output
- 58,982
- Input
- text, image
- Output
- decisions
Requests on api14 · last 7 days
LiquidAI: d1: frequently asked questions
- How much does the LiquidAI: d1 API cost?
- LiquidAI: d1 costs Input $0.07 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of LiquidAI: d1?
- LiquidAI: d1 reads up to 65,536 tokens per request: prompt, history and documents together. It writes up to 58,982 output tokens per response.
- What can LiquidAI: d1 do?
- LiquidAI: d1 accepts text, image and returns decisions.
- How do I call LiquidAI: d1 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "liquid/d1". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to LiquidAI: d1?
- Comparable Decisions models at a similar price: ScaleDown: Classify-1, Nace.AI: Drex v1.5, TypeSafe: Jev 1.14. Each runs through the same API key, so switching is one string.
LiquidAI: d1 community
New topicThis community has no topics yet. Open the first one about LiquidAI: d1.