![](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fhallucination-backdrop.be3e3861.png&w=3840&q=75)
LLM Correctness Testing API
Detect LLM quality issues with simple API
Compatible with all LLM providers
![OpenAI](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fopenai.fb8ffdd9.png&w=384&q=75)
![Anthropic](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fanthropic.5d5e5cf3.png&w=384&q=75)
![Azure](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fazure.b95026c2.png&w=384&q=75)
Correctness Testing API
Get started in 3 simple steps
- 1
Sign up for Punya account
- 2
Create LLM App Analytics and grab your API key
- 3
Call Correctness Testing API and get the result
curl --location 'https://api.punya.ai/v1/correctness/test' --header 'Content-Type: application/json' --header 'Authorization: Bearer <YOUR_API_KEY>' --data '{ "user_message": "What type of mammal lays the biggest eggs?", "bot_response": "Ostrich lays the biggest eggs"}'
curl --location 'https://api.punya.ai/v1/correctness/test' --header 'Content-Type: application/json' --header 'Authorization: Bearer <YOUR_API_KEY>' --data '{ "user_message": "What type of mammal lays the biggest eggs?", "bot_response": "Ostrich lays the biggest eggs"}'