Choice one of N
Pick one option from up to 255, with a probability for each. Route a ticket, select a tool, pick the next action.
Needle · private preview
Needle is a decision model behind one API call. Send state and typed questions, get back probabilities over the options you declared. About 40 ms, no output tokens, nothing to parse.
{
"model": "needle-1",
"state": "User: How did last quarter's revenue compare
to forecast? Tools: sql, web_search, calculator.",
"questions": {
"tool": {"type": "choice",
"criteria": {"sql": null, "web_search": null,
"calculator": null}},
"clarify": {"type": "noul",
"instructions": "Ask a clarifying question first?"},
"risk": {"type": "score",
"criteria": ["read only", "writes", "irreversible"]}
}
}200 answers 1 forward pass
tool choice → sql
clarify noul → 0.12
risk score → 0.07
0 output tokens Illustrative response
Three primitives
Every question declares its own answer space, so the model can only return an option you defined. Nothing to parse, nothing to retry.
Pick one option from up to 255, with a probability for each. Route a ticket, select a tool, pick the next action.
A fractional rating on a rubric of 2 to 10 levels, weighted by probability. Grade severity, rank candidates, rate quality.
The probability that a statement holds. Gate an action, flag a record, and set the threshold yourself.
Why a forward pass
If a step in your pipeline asks a language model to choose, rate or approve something, it is paying for generation to get a label. Needle is built for exactly that step.
| LLM with structured output | Needle | |
|---|---|---|
| Latency | Seconds. Every output token is a decode step. | 41 ms median, 63 ms p95. One forward pass. |
| Cost | Input tokens plus output tokens, on a large model. | $0.20 per million input tokens. Output is $0. |
| Output | Text you parse, validate and sometimes retry. | A probability for each option you declared. |
| Determinism | Sampled. The same input can answer differently. | No sampling. The distribution is the answer. |
| Confidence | Ask for it and get a number the model made up. | Read it off the distribution and set your own threshold. |
Pricing
$0.20 per million input tokens
Output is always free, because there is none. 10M tokens a month on the free tier.
Research
The planning lives in the model itself: a single forward pass, self-supervised, learned from observation rather than demonstration. No search at test time. No expert to imitate.
Needle is in private preview. Read the docs, then join the list for a key.