1. Create a key and find a model
Sign in to the console and check your account status. An active account can create an API key. Copy the key when it is shown and keep it on your server.data list. Choose an available base model; catalogue entries can also be unavailable or require early access. A waitlisted account can view the catalogue and its own account, but cannot run authenticated decisions yet.
2. Send a decision
This request routes a message and defers uncertain cases. The0.8 threshold is an example policy to evaluate on your own messages.
3. Use the action
Given the parsed response asresult:
top is the most probable raw outcome. action also accounts for any weights, costs and abstention policy. When you declare a policy, use its action and handle abstained explicitly.
Inspect usage.input_tokens and usage.decisions for the request’s usage. Use the account usage endpoints for costs. Record X-Request-ID when diagnosing an error; the decision id identifies the returned decision and can be used for feedback if you requested storage.
