# Grayson API (/grayson-api)



**Grayson** is Finic's decision model, `grayson-1`. It reads a case, such as an alert, a payment, an application or a dispute, and answers questions about it with **probabilities**. It does not write text, rationales or summaries: every answer is a number that you can compare with a threshold, log and audit.

You call Grayson directly with [`POST /v1/ask`](/reference/grayson/ask). Finic's scores use it too:

| What you call                             | What Grayson does                                                                                                                      |
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| [`POST /v1/ask`](/reference/grayson/ask)  | Answers your own questions about one case. You write the questions.                                                                    |
| [`POST /v1/score/{use_case}`](/score-api) | Answers the scoring endpoint's yes/no questions. The response shows each question with its probability, and the score comes from them. |
| [`POST /v1/score`](/score-model)          | Answers your scoring model's questions. The score is calibrated to your labeled outcomes.                                              |

Use ask when no [scoring endpoint](/score-api) fits your decision, when you need more than one answer about a case (for example, "is this fraud?" and "which team gets it?"), or when you want to write the questions in your own words.

## Ask a question [#ask-a-question]

Send the case as `data` (structured JSON), `context` (free text) or both, and name each question:

```bash
curl https://api.finic.ai/v1/ask \
  --header "Authorization: Bearer $FINIC_API_KEY" \
  --header "Content-Type: application/json" \
  --data @- <<'EOF'
{
  "model": "grayson-1",
  "data": {
    "events": [
      { "ts": "2026-09-20T02:14:09Z", "type": "login", "new_device": true },
      { "ts": "2026-09-20T02:16:40Z", "type": "email_change" },
      { "ts": "2026-09-20T02:21:03Z", "type": "ach_out", "amount_usd": 4900.0 }
    ]
  },
  "context": "Customer called on 9/21: never changed their email, doesn't recognize the transfer.",
  "questions": {
    "ato": { "type": "noul", "instructions": "Is this account takeover?", "base_rate": 0.02 },
    "route_to": {
      "type": "choice",
      "instructions": "Which team should review this case?",
      "criteria": { "ato": "Account security", "aml": "AML investigations", "none": "No review needed" }
    }
  }
}
EOF
```

```json title="200 OK (answers only)"
"answers": {
  "ato": { "type": "noul", "noul": 0.91, "calibrated": true },
  "route_to": { "type": "choice", "choice": "ato", "confidence": 0.87, "probabilities": { "ato": 0.91, "aml": 0.04, "none": 0.05 } }
}
```

A 91% chance of account takeover, at your 2% base rate: hold the transfer, and send the case to account security. The full response also has the request's `id`, the `model`, `usage.input_tokens` and the `request_id`.

## What makes Grayson's answers useful [#what-makes-graysons-answers-useful]

* **Probabilities, not labels.** A `noul` (yes or no) answer is the probability of yes. A `choice` gives a probability for every option, and a `multi_choice` gives one for each option on its own. See [Questions](/grayson-api/questions).
* **Calibrated.** An answer of 0.8 is right about 8 times in 10. Add a `base_rate` to a question, and its answers shift to how common the answer is in your own cases. See [Calibration](/score-model/calibration#base-rates-for-questions).
* **The same request gets the same answers.** Retrying is safe, and you can test thresholds on past requests.
* **Each question is answered on its own.** A question sees the case and its own text, never the other questions, so adding a question does not change the others.
* **No schema.** Send records in the shape you keep them, and free text such as notes, messages and emails. See [Data & context](/grayson-api/data).

## Limits and price [#limits-and-price]

|                                                      |                                                                                                            |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Model                                                | `grayson-1`                                                                                                |
| Questions per request                                | 1 to 128                                                                                                   |
| Tokens per request (`data`, `context` and questions) | Up to 32,768                                                                                               |
| Price                                                | $0.035 per million input tokens: about $0.0002 for a 5,000-token case                                      |
| Data retention                                       | As your organization and you choose, down to zero. See [Data retention](/grayson-api/data#data-retention). |

See [Limits](/reference#limits) for the rate limits, and [Pricing](/pricing#ask-and-custom-scores) for how tokens are counted.

## Next [#next]

<Cards>
  <Card title="Questions" href="/grayson-api/questions" description="The three question types, their answers, and how to write questions that get good answers." />

  <Card title="Data & context" href="/grayson-api/data" description="What to send about a case, how it's read and counted, and how long Finic keeps it." />

  <Card title="ask reference" href="/reference/grayson/ask" description="Every field of POST /v1/ask, with a playground that sends real requests." />
</Cards>
