decide
Answer typed questions about a state with probabilities, in one pass and no generated text. questions is a map of id to {type, instructions, criteria}: noul (yes/no; the answer is the probability of yes), choice (criteria {option_id: description}, 2 to 20; the answer names the option with a probability per option and a confidence), score (criteria [lowest, ..., highest], 2 to 10; the answer is the probability-weighted level, 0 = lowest). Up to 64 questions per call. Models: cloudflare/clef-flash, cloudflare/clef (default cloudflare/clef-flash). Price per decision is quoted in the 402 from your input size (input rate x 1.4 + $0.0005, minimum $0.001); output is free. Charged only if the model call succeeds. The answer is a probability, not a verified fact. Images not accepted yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| state | Yes | ||
| questions | Yes |