Skip to main content
POST /v1/data/llm/decisions/run Pricing: Metered: you pay exactly each call’s cost at the selected model’s rates (default TypeSafe: Jev Latest: $0.04 per 1M input tokens).

Request

Send the inputs under params. Only the keys below are accepted; any other key returns 422 invalid_params.
string[]
required
The texts to judge, one per row. Each item is one call to the model.
string
required
The one question to ask about every item, e.g. ‘Is this review negative?’.
string
default:"yes_no"
yes_no, choice (decision is one of your options) or score (your options are an ordered scale, lowest first).Allowed values: yes_no (Yes or no), choice (Pick one option), score (Position on a scale).
string[]
For choice: the options to pick from (2 to 50). For score: the scale, lowest first (2 to 50). Not used for yes_no.
string
default:"~typesafe/jev-latest"
The decision model. Pick from the list (the leaders first). Each model shows its own rate per 1M input tokens, and that is exactly what each call costs.37 allowed values, for example ~typesafe/jev-latest (TypeSafe: Jev Latest), typesafe/jev-1.14 (TypeSafe: Jev 1.14), perplexity/pplx-decider-flash-v1.2 (Perplexity: Decider Flash V1.2), liquid/d1.2-ultra (LiquidAI: d1.2-ultra), nace-ai/drex-max-finance (Nace.AI: Drex Max Finance), cloudflare/clef-omni (Cloudflare: Clef Omni), openai/gpt-6-luna-decisions (OpenAI: GPT-6 Luna Decisions), baseten/elephant-1 (Baseten: Elephant 1), baseten/joey-1 (Baseten: Joey 1), baseten/mammoth-1 (Baseten: Mammoth 1). Fetch the full list with GET /v1/data/llm/decisions?expand=options.

Example

Response fields

Each row in data is one decision, keyed by these fields.

Example response

Abridged: long text and lists are shortened.