🔌 Connection Check
This page tells you whether your AI key is working — no technical knowledge needed.
1. Your setup
Checking…
3. What the results mean
Green “AI generated” badge on the generators = everything is working. Your teachers are getting live AI content.
Amber “Sample content” badge = no key is set yet. The site still works, but shows built-in sample documents. Add your key in
api/config.php.About your key format. Google now issues auth keys that begin with
AQ. — these are the current, correct format. Older keys begin with AIza. Both are valid and neither is an error. If the key line says Correct, your key format is fine.Red error card on a generator = read the message, it names the exact cause:
• “Could not reach the AI provider” / “did not answer within … seconds” = a network problem on your hosting, not your key. Your server cannot reach Google. Report it to your host (ask them to allow outbound HTTPS from PHP).
• “rejected the API key (HTTP 401/403)” = the key itself was refused. Copy a fresh key from Google AI Studio and paste it again.
• “model … not found (HTTP 404)” = the model name is retired. Change
• “rate-limiting (HTTP 429)” = you have hit the free quota. Wait, or upgrade your plan.
• “Could not reach the AI provider” / “did not answer within … seconds” = a network problem on your hosting, not your key. Your server cannot reach Google. Report it to your host (ask them to allow outbound HTTPS from PHP).
• “rejected the API key (HTTP 401/403)” = the key itself was refused. Copy a fresh key from Google AI Studio and paste it again.
• “model … not found (HTTP 404)” = the model name is retired. Change
model in api/config.php.• “rate-limiting (HTTP 429)” = you have hit the free quota. Wait, or upgrade your plan.
Each error card also has a “Technical details” section you can open and copy — send that to your host or support and they will know exactly what to fix.