1. Create an account
Sign up in the console with your email address. We send you a sign-in link; open it to verify your email and sign in. There is no password.2. Add credit
The API draws from a prepaid USD balance, and a request needs enough balance to run. Card top-ups in the console are not available yet: to add credit, contact us at contact@torchcast.ai. See Billing.3. Create an API key
In the console, open API keys and choose Create key. Copy the key when it is shown: it is displayed only once. Decision API keys start withtcd_. Keys from the Torchcast app (tc_) do not work here.
Store the key in an environment variable:
4. Make a request
This request asks two questions about a support email: whether the customer wants a refund (a yes/nonoul question) and which team should handle it (a choice question).
torchcast-decider-latest always points at the newest stable model. To pin a version, use a pinned id from GET /v1/models.
5. Read the answer
Response
answers.refund_request.noulis the probability that the answer is yes: here 0.97.answers.team.choiceis the most likely option, andprobabilitiesgives every option’s probability.modelis the pinned model that answered, even though the request named the alias. Log it with your results.usage.input_tokensis what you are charged for. Every response also carries anx-request-idheader; quote it if you contact support.
Next steps
Concepts
All three question types, including
score.Errors
Every error and what to do about it.