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
string
required
Your CheckThat AI API key for authentication.
string
required
The model to use for generating responses. Use
/models endpoint to see available options.array
required
Array of message objects representing the conversation history.
boolean
default:"false"
Whether to stream the response back as it’s generated. Set to
true for real-time streaming.number
Controls randomness in the response. Lower values make output more focused and deterministic. Range: 0.0 to 2.0.
number
Alternative to temperature. Controls diversity via nucleus sampling. Range: 0.0 to 1.0.
integer
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
string
required
Unique identifier for the chat completion response.
string
required
Object type, always “chat.completion” for this endpoint.
integer
required
Unix timestamp of when the completion was created.
string
required
The model used for generating the completion.
array
required
Array of completion choices (typically contains one choice).
object
Token usage statistics for the request.
object
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

