# Liquid d1

Liquid d1 is a decision model for classification, routing, and scoring. It evaluates shared state against typed Choice, Score, and yes/no questions and returns structured answers with calibrated probabilities through the TypeSafe-compatible System One API.

- **Model ID:** `liquid/d1`
- **Type:** evaluation
- **Providers:** liquid
- **Context window:** 65,536
- **Maximum output tokens:** 0
- **Pricing:** $0.02/1M input tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/d1

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { experimental_decide as decide } from 'ai';

const result = await decide({
  model: 'liquid/d1',
  state: 'The support agent issued a full refund to the customer.',
  questions: {
    refunded: {
      type: 'boolean',
      instructions: 'Was a refund issued?',
    },
  },
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/d1)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://docs.liquid.ai/lfm/models/decision-models)
- [Provider pricing](https://www.liquid.ai/pricing)
