- Go to https://console.groq.com/keys
- Sign up for a free account
- Generate an API key
- Add to your
.env.local:
GROQ_API_KEY=gsk_your_api_key_hereYour system is already configured to use Groq. The provider selection is automatic based on availability.
# Free tier: 30 req/min, 14,400 req/day
GROQ_API_KEY=gsk_your_api_key_here- Best for: Lead extraction, data parsing
- Speed: 300+ tokens/second
- Cost: FREE
- Get key: https://console.groq.com/keys
# GPT-4o-mini: $0.15/1M input, $0.60/1M output
OPENAI_API_KEY=sk-your_api_key_here- Best for: Email generation, versatile tasks
- Speed: Fast
- Cost: ~$15-20/month for 1000 leads/day
- Get key: https://platform.openai.com/api-keys
# Claude 3 Haiku: $0.25/1M input, $1.25/1M output
ANTHROPIC_API_KEY=sk-ant-your_api_key_here- Best for: Professional emails, proposals
- Speed: Moderate
- Cost: ~$25-30/month for 1000 leads/day
- Get key: https://console.anthropic.com/settings/keys
| Daily Volume | Groq (Free) | OpenAI Mini | Claude Haiku |
|---|---|---|---|
| 100 leads | $0 | ~$1.50/mo | ~$2.50/mo |
| 500 leads | $0 | ~$7.50/mo | ~$12.50/mo |
| 1000 leads | $0 | ~$15/mo | ~$25/mo |
| 5000 leads | Need paid | ~$75/mo | ~$125/mo |
| Feature | Groq | OpenAI | Anthropic |
|---|---|---|---|
| Lead Extraction | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
| Email Generation | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| Upwork Proposals | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| Speed | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
| Cost | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ |
| Rate Limits | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
The system automatically selects the best available provider:
- Lead Extraction: Uses Groq if available (fastest, free)
- Email Generation: Uses OpenAI if available (best balance)
- Fallback: Pattern-based extraction (no API needed)
After adding your API key, test it at:
/[lang]/test-import- Test lead creation/[lang]/leads- Full lead management with AI extraction
- Check console for error messages
- Verify API key is correctly set in
.env.local - Check rate limits (Groq: 30 req/min)
- System will fallback to pattern matching if no API keys are configured
- Groq: 30 requests/minute → Process in batches
- OpenAI: 3,500 requests/minute → Usually sufficient
- Anthropic: 1,000 requests/minute → Good for most cases
- Primary: OpenAI GPT-4o-mini
- Fallback: Groq (for overflow)
- Primary: Groq (free tier)
- Fallback: Pattern matching
- Primary: Anthropic Claude
- Secondary: OpenAI GPT-4o
- Lead Extraction: Groq
- Email Generation: OpenAI
- Proposal Writing: Anthropic