Parse Your First Document in 3 Minutes ⚡
This quickstart gets you from zero to parsing documents with Lexa. By the end, you’ll have made your first successful API call.Requirements: Python 3.9+ • 3 minutes of your time
Step 1: Installation (30 seconds)
Step 2: Get API Key (30 seconds)
1
Get your API key
Visit cerevox.ai/lexa and sign up for your free API key
2
Copy the key
Save your API key - you’ll need it in the next step
Step 3: Authentication Setup (30 seconds)
Step 4: First API Call (60 seconds)
Copy and run this code to parse your first document:Step 5: Test Your Setup (30 seconds)
Run this verification script to confirm everything works:You’re Ready! 🎉 Lexa is configured and working. Start parsing your documents!
What’s Next?
Real Examples
Copy-paste ready examples with real data
Async Processing
Process multiple documents concurrently (recommended)
Vector DB Integration
Get chunks ready for your RAG applications
API Reference
Complete method signatures and parameters
Common Next Steps
Async Processing (Recommended)
Async Processing (Recommended)
Cloud Storage Integration
Cloud Storage Integration
Vector Database Ready
Vector Database Ready
Having Issues?
Authentication Problems
Authentication Problems
Error:
Authentication failed
or Invalid API key
Quick fixes:- Double-check your API key from cerevox.ai/lexa
- Verify
CEREVOX_API_KEY
environment variable is set correctly - Remove any extra spaces or quotes around the key
- Try passing the key directly:
Lexa(api_key="your-key")
Connection Issues
Connection Issues
Error:
Connection timeout
or Network error
Quick fixes:- Check internet connection
- Increase timeout:
client.parse(files, timeout=120.0)
- Verify firewall allows HTTPS connections to
data.cerevox.ai
- Test with smaller files first
File Issues
File Issues
Error:
File not found
or parsing errorsQuick fixes:- Verify file path is correct:
os.path.exists("your-file.pdf")
- Check file permissions (must be readable)
- Supported formats: PDF, DOCX, XLSX, PPTX, HTML, CSV, TXT, and more
- Try with the test content example above first
Ready to build? Check out our code examples or join the Discord community for help.