π VisionQ - API Keys & Authentication
π― Quick Answer
Do you need API keys for VisionQ?
NO! β
VisionQ works 100% offline without any API keys.
β What Works Without API Keys
All core features work without any authentication:
| Feature | Model | API Key Needed? |
|---|---|---|
| Object Detection | YOLO/SSD | β No |
| Image Captioning | BLIP | β No |
| Visual Embeddings | CLIP | β No |
| OCR (90+ languages) | EasyOCR | β No |
| Text Embeddings | sentence-transformers | β No |
| Vector Search | FAISS | β No |
| Intent Classification | DistilBERT | β No |
| Speech Recognition | Vosk | β No |
| Text-to-Speech | pyttsx3 | β No |
Everything runs locally on your machine!
π Optional: Hugging Face Token
When You Might Need It
A Hugging Face token is optional and only needed for:
- Private Models - Models you've created and marked private
- Gated Models - Some models require accepting terms
- Higher Rate Limits - Faster model downloads
- Enterprise Features - Advanced Hugging Face features
VisionQ Default Models
All default models in VisionQ are public and free:
- β
Salesforce/blip-image-captioning-base- Public - β
openai/clip-vit-base-patch32- Public - β
typeform/distilbert-base-uncased-mnli- Public - β
all-MiniLM-L6-v2- Public
No token needed!
π§ How to Add Hugging Face Token (Optional)
Step 1: Get Token
- Go to https://huggingface.co/
- Create free account (if you don't have one)
- Go to Settings β Access Tokens
- Click "New token"
- Select "Read" access
- Copy token
Step 2: Add to VisionQ
Method 1: Environment Variable (Recommended)
Create .env file in project root:
HUGGINGFACE_TOKEN=hf_your_token_here
Method 2: Direct Configuration
Edit config/settings.py:
HUGGINGFACE_TOKEN = "hf_your_token_here"
Method 3: System Environment
Windows:
setx HUGGINGFACE_TOKEN "hf_your_token_here"
Linux/Mac:
export HUGGINGFACE_TOKEN="hf_your_token_here"
Step 3: Restart VisionQ
Token will be automatically used for model downloads.
π Internet Connection
First Run
Internet required to download models (~2GB):
- YOLO weights (~50MB)
- BLIP model (~1GB)
- CLIP model (~500MB)
- DistilBERT (~250MB)
- EasyOCR languages (~50MB each)
Download happens once - models are cached locally.
Subsequent Runs
No internet required! All models run offline.
π Privacy & Security
Data Privacy
- β No data sent to cloud
- β All processing local
- β No telemetry
- β No tracking
- β Memories stored locally
Model Security
- β Models from trusted sources (Hugging Face, Ultralytics)
- β Open-source and auditable
- β No backdoors or malware
- β Community-verified
Token Security
If you use a Hugging Face token:
- β
Store in
.envfile (not in code) - β
Add
.envto.gitignore - β Use "Read" access only
- β Revoke if compromised
π« What VisionQ Does NOT Need
| Service | Needed? | Why Not? |
|---|---|---|
| OpenAI API | β No | Using open-source models |
| Google Cloud Vision | β No | Using local YOLO/BLIP |
| AWS Rekognition | β No | Using local models |
| Azure Computer Vision | β No | Using local models |
| Anthropic API | β No | Using local models |
| Cohere API | β No | Using local models |
VisionQ is 100% self-contained!
π Comparison: Cloud vs Local
Cloud-Based (Other Solutions)
β Requires API keys
β Costs money per request
β Needs internet connection
β Data sent to cloud
β Privacy concerns
β Rate limits
β Vendor lock-in
VisionQ (Local)
β
No API keys needed
β
Completely free
β
Works offline
β
Data stays local
β
Full privacy
β
No rate limits
β
Open source
π Model Sources
All models are from trusted open-source repositories:
Hugging Face Models
- BLIP: https://huggingface.co/Salesforce/blip-image-captioning-base
- CLIP: https://huggingface.co/openai/clip-vit-base-patch32
- DistilBERT: https://huggingface.co/typeform/distilbert-base-uncased-mnli
- MiniLM: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
Other Sources
- YOLO: https://github.com/ultralytics/ultralytics
- EasyOCR: https://github.com/JaidedAI/EasyOCR
- FAISS: https://github.com/facebookresearch/faiss
- Vosk: https://alphacephei.com/vosk/
All are free, open-source, and require no API keys!
π§ Troubleshooting
"Model download failed"
- Check internet connection
- Try again (downloads can be interrupted)
- Clear cache:
rm -rf ~/.cache/huggingface/ - Use VPN if blocked in your region
"Authentication required"
This should never happen with default VisionQ models.
If it does:
- Check you're using default models
- Verify model names in
config/settings.py - Try adding Hugging Face token (optional)
"Rate limit exceeded"
This only happens during model downloads if you download too many models quickly.
Solutions:
- Wait a few minutes
- Add Hugging Face token (increases limits)
- Download models one at a time
π FAQ
Q: Do I need to pay for anything?
A: No! VisionQ is completely free. All models are open-source and free to use.
Q: Can I use VisionQ commercially?
A: Yes! All models have permissive licenses (MIT, Apache 2.0, etc.). Check individual model licenses for details.
Q: Will VisionQ always be free?
A: Yes! It's open-source and runs locally. No cloud costs, no subscriptions.
Q: What about GPU usage?
A: VisionQ works on CPU (free). GPU is optional for faster processing.
Q: Do I need a Hugging Face account?
A: No! Only needed if you want to use private/gated models.
Q: Can I use my own models?
A: Yes! Edit config/settings.py to point to your models.
β Summary
VisionQ requires:
- β Python 3.8+
- β ~2GB disk space (for models)
- β Internet (first run only)
- β Webcam (for vision features)
VisionQ does NOT require:
- β API keys
- β Cloud accounts
- β Subscriptions
- β Payment
- β Internet (after first run)
100% free, 100% local, 100% private! π
π Support
Questions about API keys?
Check:
- This document
README.md.env.examplefileconfig/settings.py
Still have questions?
Open an issue on GitHub or check the documentation.
VisionQ - Powerful AI without the API hassle! π