Documentation
Integrations

How to Setup AI Providers

Configure OpenAI, Anthropic Claude, Google Gemini, and Groq for AI-powered question generation, grading, student AI chat, and content creation

How to Setup AI Providers

Course37 uses AI for intelligent question generation, automated essay grading, student AI chat, content suggestions, and more. You can configure multiple providers and choose which ones students and admins use.


Supported Providers

Course37 supports four AI providers. You can enable one or all of them:

ProviderModelsBest For
OpenAIgpt-4o, gpt-4o-mini, gpt-3.5-turboGeneral purpose, question generation, grading
Anthropicclaude-3-5-sonnet, claude-3-haiku, claude-3-opusLong-form content, nuanced grading
Google Geminigemini-1.5-pro, gemini-1.5-flashFast generation, translations, cost-effective
Groqllama-3.1-70b, llama-3.1-8b, mixtral-8x7bUltra-fast inference, budget-friendly

Adding an AI Provider

  1. Go to Settings → Integrations
  2. Scroll to the AI/LLM Integrations section
  3. Click the toggle to enable your chosen provider
  4. Enter the required credentials:

OpenAI

FieldDescription
API KeyYour OpenAI API key (starts with sk-)
Organization IDOptional — your OpenAI org ID

Get your API key from platform.openai.com/api-keys

Anthropic (Claude)

FieldDescription
API KeyYour Anthropic API key (starts with sk-ant-)

Get your API key from console.anthropic.com

Google Gemini

FieldDescription
API KeyYour Google AI API key

Get your API key from aistudio.google.com

Groq

FieldDescription
API KeyYour Groq API key (starts with gsk_)

Get your API key from console.groq.com/keys

Why Groq? Groq runs open-source models (Llama, Mixtral) on custom hardware at extremely fast speeds. It's the most cost-effective option — ideal for student AI chat where volume is high.

  1. Click Save

All API keys are encrypted at rest and never exposed in the UI after saving.


Configuring AI for Students vs Admins

Course37 lets you assign different providers and models for students and admin/teachers:

Student AI Settings

SettingDescription
Enable Student AIToggle AI chat on/off for students
ProviderWhich provider students use (OpenAI, Anthropic, Gemini, or Groq)
ModelThe specific model (e.g., gpt-4o-mini, llama-3.1-8b)
Fallback ModelBackup model if the primary hits rate limits
Custom PromptOrganization-defined instructions appended to every student AI interaction

Tip: Use a cheaper, faster model for students (like gpt-4o-mini or llama-3.1-8b via Groq) and a more powerful model for admin tasks.

Admin AI Settings

SettingDescription
Enable Admin AIToggle AI assistant on/off for admins (enabled by default)
ProviderWhich provider admins use
ModelThe specific model for admin AI
Custom PromptCustom instructions for the admin AI assistant

To configure:

  1. Go to Settings → Integrations
  2. Scroll to Student AI Chat Settings or Admin AI Chat Settings
  3. Select the provider and model
  4. Optionally add a custom prompt
  5. Click Save

AI Token Management

Course37 tracks AI usage via tokens (the units AI providers use to measure text input/output).

Free Platform Tokens

Every organization gets 200,000 free AI tokens per month from the platform. These are used when you haven't configured your own API keys.

WhatDetails
Monthly Allocation200,000 tokens (resets monthly)
Usage TrackingVisible at Settings → Integrations → AI Usage
When ExhaustedAI features pause until next month or you add your own API key

Using Your Own API Keys

When you add your own API key, AI calls go directly to your provider account:

  • No platform token limits — usage is billed by your provider
  • You control costs — set spending limits in your provider's dashboard
  • Per-message tracking — Course37 tracks input/output tokens for every AI message

Token Usage Per Feature

FeatureApprox. TokensCost (gpt-4o-mini)
Generate 5 MCQ questions~2,000~$0.001
Grade an essay~3,000~$0.002
Student AI chat message~1,000~$0.0005
Content suggestion~500~$0.0003

AI-Powered Features

Once configured, these features become available:

FeatureDescriptionWhere
Question GenerationAI generates MCQ, CQ, Short Questions from topics or textQuestion Bank
Essay GradingAI evaluates written answers against rubricsExam Results
Student AI ChatStudents can chat with an AI tutor within coursesStudent portal
Admin AI AssistantAI assistant for admins to manage content, get insightsAdmin dashboard
Content SuggestionsAI suggests course descriptions, titlesCourse creation
Answer ExplanationAI generates explanations for correct answersQuestion editor
TranslationAI translates content between languagesContent editor

Cost Comparison

Provider / ModelInput Cost (per 1M tokens)Output Cost (per 1M tokens)SpeedBest For
OpenAI gpt-4o-mini$0.15$0.60FastGeneral tasks
OpenAI gpt-4o$2.50$10.00MediumComplex grading
Anthropic claude-3-haiku$0.25$1.25FastStudent chat
Anthropic claude-3-5-sonnet$3.00$15.00MediumAdvanced content
Gemini gemini-1.5-flash$0.075$0.30Very FastTranslations, bulk tasks
Groq llama-3.1-8b$0.05$0.08Ultra FastStudent chat, high volume
Groq llama-3.1-70b$0.59$0.79FastQuality + speed

Recommendation: Start with Groq (llama-3.1-8b) for student AI chat (cheapest, fastest) and OpenAI (gpt-4o-mini) for admin tasks and question generation.


Related Articles

AIOpenAIGeminiGroqAnthropicClaudesetupLLMquestion generationgradingAPI key