Endpoints
Chat Completions (OpenAI Compatible)
POST
An OpenAI-compatible endpoint that allows you to use CheckThat AI’s claim normalization and fact-checking capabilities with existing OpenAI-style integrations and tools.
This endpoint follows the OpenAI Chat Completions API format, making it easy to integrate with existing applications and libraries designed for OpenAI’s API.
Key Features
- Drop-in replacement: Compatible with OpenAI chat completion clients
- Fact-checking enhanced: Responses include claim analysis and verification
- Streaming support: Optional streaming responses for real-time interactions
- Multiple models: Support for various AI models through CheckThat AI
Request Parameters
Your CheckThat AI API key for authentication.
The model to use for generating responses. Use
/models endpoint to see available options.Array of message objects representing the conversation history.
Whether to stream the response back as it’s generated. Set to
true for real-time streaming.Controls randomness in the response. Lower values make output more focused and deterministic. Range: 0.0 to 2.0.
Alternative to temperature. Controls diversity via nucleus sampling. Range: 0.0 to 1.0.
Maximum number of tokens to generate in the response.
Request Examples
Response Format
Standard Response
Streaming Response
Whenstream: true is set, responses are sent as Server-Sent Events:
Response Fields
Unique identifier for the chat completion response.
Object type, always “chat.completion” for this endpoint.
Unix timestamp of when the completion was created.
The model used for generating the completion.
Array of completion choices (typically contains one choice).
Token usage statistics for the request.
CheckThat AI specific metadata about claim analysis (unique to our platform).
Integration Benefits
Easy Migration
Drop-in replacement for OpenAI API calls in existing applications
Enhanced Output
All responses include fact-checking analysis and source verification
Library Support
Works with popular OpenAI client libraries without modification
Streaming Support
Real-time streaming for interactive applications and chatbots

