What you’ll need:
- Python 3.8 or higher
- An API key from at least one provider (OpenAI, Anthropic, Google, xAI, or Together AI)
Step 1: Install the Python SDK
Install via pip
Install the CheckThat AI Python SDK:
The SDK is compatible with Python 3.8+ and includes full type hints for better development experience.
Step 2: Get your API keys
Choose which AI providers you want to use and get their API keys:OpenAI
Models: GPT-5, GPT-5 nano, o3, o4-mini, GPT-4oSign up at platform.openai.com
Anthropic
Models: Claude Sonnet 4, Sonnet Opus 4.1, Claude 3.5 SonnetGet API key from console.anthropic.com
Google AI
Models: Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 1.5 ProGenerate key at ai.google.dev
xAI
Models: Grok 4, Grok 3, Grok 3 MiniObtain key from x.ai platform
Step 3: Set up your environment
Store your API keys securely as environment variables:Step 4: Make your first request
Create a simple Python script to test CheckThat AI:Step 5: Explore advanced features
Streaming Responses
Get real-time streaming responses for better user experience:
Model Discovery
Discover available models across all providers:
Error Handling
Robust error handling for production use:
Structured Outputs
Generate type-safe structured responses:
Next Steps
Read the API Reference
Explore the complete API documentation to learn about all available endpoints and features.
Check out the Python SDK guide
Dive deeper into the Python SDK documentation for advanced usage patterns and best practices.
Join the community
Get help and share your experience:
- GitHub: Report issues or contribute
- PyPI: View package details
- Email: Contact support
Troubleshooting
Installation Issues
Installation Issues
Problem:
pip install checkthat-ai failsSolutions:- Ensure you have Python 3.8 or higher:
python --version - Try upgrading pip:
pip install --upgrade pip - Use a virtual environment:
python -m venv venv && source venv/bin/activate
Authentication Errors
Authentication Errors
Problem: Getting authentication errors with API keysSolutions:
- Verify your API key format matches the provider
- Check that environment variables are properly set:
echo $OPENAI_API_KEY - Ensure you have sufficient credits/quota with the provider
Import Errors
Import Errors
Problem:
ImportError: No module named 'checkthat_ai'Solutions:- Verify installation:
pip list | grep checkthat-ai - Check you’re using the correct Python environment
- Reinstall the package:
pip uninstall checkthat-ai && pip install checkthat-ai
Need more help? Check our GitHub repository for issues and discussions, or contact us at [email protected].

