Integrate hallucination detection into your LLM applications. Send traces via SDK or REST API — we handle evaluation automatically.
https://api.hallutraceai.comSign up, create a project, and copy your sk_live_ key.
pip install hallutraceai or npm install hallutraceai
Call ht.trace() — we evaluate for hallucination automatically.
pip install hallutraceaifrom hallutraceai import HalluTrace
ht = HalluTrace(api_key="sk_live_your_key")
# Single trace
ht.trace(
session_id="chat-123",
type="agent",
input="What is the capital of France?",
output="The capital of France is Paris.",
system_prompt="You are a geography assistant.",
model_name="gpt-4",
)
# Batch trace
ht.trace_batch([
{
"session_id": "chat-456",
"messages": [
{
"message_id": "msg-1",
"type": "agent",
"input": "Hello",
"output": "Hi there! How can I help?",
"model_name": "gpt-4",
},
{
"message_id": "msg-2",
"type": "tool",
"input": "search: weather",
"output": '{"temp": 72, "condition": "sunny"}',
},
],
}
])All trace endpoints authenticate via API key in the X-API-Key header. Dashboard endpoints use JWT Bearer tokens.
# SDK (automatic)
ht = HalluTrace(api_key="sk_live_...")
# REST API (manual)
curl -H "X-API-Key: sk_live_..." https://api.hallutraceai.com/v1/tracesKeep your API key secret. Do not expose it in client-side code. Use environment variables or a backend proxy.
Full interactive API documentation with request/response schemas:
Open Swagger UILLM responses — these are evaluated for hallucination. The system checks if the output aligns with the system prompt. Score: 0 (perfect) to 100 (hallucinated).
Tool/function call results — these are logged but not evaluated. Useful for tracking RAG retrieval, API calls, or any tool output in the conversation chain.
Free
10M tokens/month
1 team member
$0.08
per 1M tokens
1 team member
MAX-T
$895/mo · 15% off tokens
Unlimited team · JSON export · Custom eval prompts
All plans include Zero Storage mode. Paid plans include bring-your-own-model (80% discount). Tokens counted for: input, output, system prompt, and RAG context.
Create a free account and start detecting hallucinations in minutes.