Liquid AI · Text
d1 API pricing
liquid/d1
Structured decisions. d1 by Liquid AI, routed through INFRO on a Liquid AI account you connect — alongside every other provider you run. Liquid AI bills you for it directly, on that account and at your own rate. INFRO adds routing, failover, request logs, cost attribution and policy around it, and takes no part of what you pay Liquid AI.
Pricing
Liquid AI rate
$0.04
per 1M input tokens, output free, billed to you by Liquid AI
INFRO adds
$0
0% markup on model spend
Per-token rates
$0.04 / 1M input tokens·$0.00 / 1M output tokens
Output tokens are free, so the headline figure above is the input rate, as Liquid AI publishes it.
Calling d1
POST /v1/decisionsimport os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
decision = client.decisions.create(
model="liquid/d1",
input="I was charged twice. Please fix this.",
questions=[{
"type": "predicate",
"name": "refund_request",
"instructions": "Is the customer asking for a refund?",
}],
)What a decision model answers
- Typed questions about the evidence you send: yes or no, one option of a closed set, a level on a rubric.
- Probabilities on every answer, and a confidence for choice and score. No generated text.
- Every INFRO decision feature runs on it: decision policies, rerank, classifier guardrails, the route classifier and evals.
OpenAI's or TypeSafe's request body, on your own Liquid AI connection or an OpenRouter one: your INFRO gateway key, spend limits checked before the call, and an estimated cost on every response.