Get your ChatPDF up and running in 3 simple steps
GROQ provides fast AI inference. You'll need a free API key to use ChatPDF.
Create a .env.local file in your project root and add your API key:
# Add this to your .env.local file NEXT_PUBLIC_GROQ_API_KEY=your_groq_api_key_here
Important: Never commit your API key to version control. The .env.local file should be in your .gitignore.
Restart your development server and test the PDF chat functionality:
npm run dev
You can test your API key here before using it in the application:
This only checks the format - your key is not sent anywhere.
Check the browser console (F12) for detailed error messages, or visit the GROQ documentation for API-related issues.