REST API
Every SDK and gateway integration on this page ends up at the same evaluate endpoint. If your stack is not covered, call it directly from any language with an API key and an application id.
Status: Generally available · Evaluates: Prompts, Responses · Vendor: Alice
Prompts and responses, one message per call.
Setup
Configuration: ALICE_API_KEY, app_id
Timeout
Send alice-timeout-ms to tell the API how long you will wait for an answer, in whole milliseconds from 1 to 60000. Any other value is rejected with 400.
- The time counts from when your request reaches the API, so set it below your own client timeout by your network round trip.
- Without the header, each endpoint uses its own default timeout.
- A short timeout (a few seconds or less) may return results from the fast detectors only, without the deeper second check. Allow more time when you need it.