Content Filtering & Safety
Automatic Content Protection
Every query is automatically filtered before processing to ensure quality and safety. Our AI-powered content filter blocks spam, harmful content, and off-topic queries with 98% accuracy.
š”ļø What Gets Filtered
Filter Response Format
When a query is blocked, you'll receive:
{
"error": {
"code": "CONTENT_FILTERED",
"message": "Query blocked by content filter",
"category": "spam",
"confidence": 0.98,
"reason": "Commercial promotional content detected",
"suggestions": [
"Ask a genuine astrology question",
"Remove promotional URLs and content",
"Focus on birth chart or prediction topics"
]
}
}
Filter Categories
Valid astrology query - processing continues
Commercial/promotional content - blocked
Dangerous or harmful content - blocked
Non-astrology question - blocked with suggestions
Too vague or ambiguous - needs clarification
Empty, too short, or malformed - immediate block
Performance Impact:
- Basic validation: <1ms (instant)
- AI filtering: under 2 seconds (Vedika Swift)
- Optimized for speed and accuracy
- Graceful degradation on filter errors
Quality Assurance Scoring
Automatic Response Evaluation
Every response is automatically scored across 6 quality dimensions. Responses scoring below 6/10 are automatically enhanced with Vedika Pro Ultra and re-scored to ensure excellence.
Quality Score Dimensions
Correctness of astrological calculations and interpretations
How well the response addresses the user's question
Coverage of all relevant aspects and details
Ease of understanding for the target audience
Level of insight and advanced analysis provided
Practical remedies and actionable spiritual advice
Enhanced Response Schema
All responses now include comprehensive quality metadata:
{
"answer": "Your personalized astrology response...",
"confidence": 0.85,
"followUpSuggestions": [...],
"qualityScores": {
"overall_score": 8.5,
"accuracy_score": 9,
"relevance_score": 9,
"completeness_score": 8,
"clarity_score": 9,
"depth_score": 8,
"spiritual_guidance_score": 9,
"confidence": 0.92,
"strengths": [
"Accurate planetary details",
"Clear explanations",
"Practical guidance"
],
"weaknesses": [
"Could include more transit timing"
],
"missing_elements": [],
"enhancement_suggestions": [],
"requires_revision": false,
"revision_priority": "low"
},
"metadata": {
"processingTime": 52000,
"enhanced": false
}
}
Auto-Enhancement Process
- Generate Response - Initial response created by Vedika AI
- Quality Scoring - Response evaluated using Vedika Swift (under 5 seconds)
- Enhancement Check - If overall_score < 6/10, enhancement triggered
- Enhancement - Vedika Pro Ultra improves response (5-8 seconds)
- Re-scoring - Enhanced response re-evaluated
- Selection - Best version (original or enhanced) returned
Performance Optimization:
- Quality scoring: Automatic for every response
- Smart enhancement: Only applied when needed (10% of queries)
- Intelligent caching: Up to 40% faster responses for common queries
Advanced Features
LLM Response Caching
Intelligent caching system reduces costs by 40-60% while maintaining response quality. Responses are cached for 30 minutes with SHA-256 key generation.
How Caching Works
- Key Generation - SHA-256 hash from model + prompt + parameters
- Cache Check - Before API call, check if response exists
- Cache Hit - Return cached response (<5ms response time)
- Cache Miss - Call AI model API, cache response for reuse
- TTL Management - Responses expire after 30 minutes
Performance Benefits
Cache Hit Response Time
vs 2-5 seconds API call
Cost Reduction
Based on query patterns
Max Cached Items
~50MB total memory
Cache TTL
Balance freshness & savings
Vedika Intelligence Models
Vedika automatically selects the optimal AI model based on your query complexity and analysis requirements. Our multi-model architecture provides 82% higher accuracy than generic AI.
Automatic Model Selection
Our intelligent routing system analyzes your query and automatically chooses the best combination of models for speed, accuracy, and cost-efficiency. No configuration needed.
Vedika Pro Ultra
Our most advanced model for complex astrological synthesis, final quality scoring, and deep interpretations
Vedika Swift
Optimized for parallel processing of specialized analyses (birth chart, transits, compatibility, yogas)
Vedika Astro Engine
Swiss Ephemeris powered astronomical calculations with 0.01° precision for all planetary positions
š” How It Works
- ⢠Intelligent Routing: Query analyzed automatically to select optimal model combination
- ⢠Parallel Processing: Multiple models work simultaneously for 5-8x faster responses
- ⢠Cost Optimization: Swift models handle 70% of work at lower cost without sacrificing quality
- ⢠Quality Control: Pro Ultra model provides final synthesis and verification
- ⢠Smart Caching: 90% cost savings on repeated astrological contexts
š° Token-Based Pricing
Vedika uses transparent token-based billing. You only pay for what you use, with detailed breakdowns of every query showing exact token usage and costs.
Pricing for 1 Million Tokens
* Actual cost varies based on query complexity, models used, and token usage
š Response Metadata Example
{
"usage": {
"input_tokens": 425,
"output_tokens": 1100,
"cached_tokens": 1575,
"total_tokens": 3110
},
"cost_breakdown": {
"astronomical": {
"calculations_performed": 6,
"cost_usd": 0.17
},
"ai_processing": {
"lead_model": {
"model": "vedika-pro-ultra",
"role": "lead",
"cost_usd": 0.009
},
"specialist_models": [
{
"model": "vedika-swift",
"role": "specialist",
"cost_usd": 0.003
}
],
"total_cost_usd": 0.02
},
"total_cost_usd": 0.19,
"total_price_usd": 0.52
},
"wallet": {
"balance_before": 20.00,
"deducted": 0.52,
"balance_after": 19.48,
"currency": "USD"
}
}
Vedika Astrology Engine
Complete Vedic coverage - Our proprietary astrology engine provides access to 100+ authentic Vedic astrology features powered by Swiss Ephemeris calculations.
FEATURES Comprehensive Features
- Complete birth chart analysis
- 60+ traditional calculations
- Doshas, yogas, divisional charts
- Compatibility & dasha systems
- Multi-model analysis
- Context-aware routing
- Automatic feature detection
- Parallel computation
Available Calculations
COMING SOON Vedika Open Astrology Engine
We're building an open-source astrology computation engine - like LLaMA for astrology calculations.
What's Coming:
- Free & Open Database: Complete Vedic astrology calculation library
- Dedicated Instances: Get a dedicated Vedika instance in your preferred region
- Community Driven: Contribute algorithms, yogas, and interpretations
- Enterprise Edition: Advanced features with commercial license
- Multi-Language: Python, JavaScript, Rust implementations
FAQ & Support
Frequently Asked Questions
How do I get an API key?
Sign up at our login page, then generate your API key from the dashboard. For production use, generate a live key (vk_live_*). Test keys (vk_test_*) are deprecated and may be disabled in production.
What's the difference between test and live API keys?
šØ Test Keys Deprecated: Vedika uses an industry-standard live-keys-only model for production. Test keys (vk_test_*) may return 403 Forbidden in production environments.
Live Keys (vk_live_*): Required for production use. Token-based billing with pay-as-you-go pricing. Generate from your dashboard.
Test Keys (vk_test_*): Available only in development environments where test keys are explicitly enabled.
What AI models power Vedika?
Vedika uses our proprietary AI models: Vedika Pro Ultra (deep analysis), Vedika Swift (fast queries), and Vedika Standard (general purpose). These are intelligently routed based on query complexity.
How accurate are the astrological calculations?
Vedika integrates Swiss Ephemeris calculations with 100+ Vedic astrology features. Every response undergoes automatic quality scoring across 6 dimensions, with auto-enhancement for scores below 6/10.
What's the typical response time?
Simple queries: 2-5 seconds. Complex analysis: 10-30 seconds. Quality-enhanced responses: 15-45 seconds. The API timeout is 120 seconds (2 minutes).
How does the credit system work?
API calls are billed in USD. AI queries cost ~$0.05-0.15 per query. V2 data endpoints cost $0.003-$0.148 per call. Check /v2/astrology/pricing for exact per-endpoint pricing. All billing is shown in the response under the billing object.
What happens if I run out of credits?
API calls will return a 402 error when your wallet balance is insufficient. Top up through your dashboard at vedika.io/dashboard or upgrade your subscription plan. Enterprise customers can add funds directly.
Can I use this in my mobile app?
Yes! Vedika API works with any platform that can make HTTPS requests: iOS, Android, React Native, Flutter, web apps, etc.
What error codes should I handle?
Common errors: 401 (Invalid API key), 429 (Rate limit), 400 (Invalid request), 500 (Server error). All errors include descriptive messages.
Is there a rate limit?
Yes. Sandbox: unlimited (free, mock data). Starter: 50/min. Professional: 200/min. Business: 500/min. Enterprise: 1,000/min. See the Rate Limits section for full details.
Do you have SDKs or client libraries?
Official SDKs are available: npm install @vedika-io/sdk (JavaScript/TypeScript) and pip install vedika-sdk (Python). See the SDKs & Libraries section for full documentation.
How do I report bugs or request features?
Use our live chat support (bottom-right), email us at support@vedika.ai, or create a support ticket from your dashboard.
Need More Help?
Can't find what you're looking for? Our support team is here to help!
Live Chat
Click the chat icon (bottom-right)
Email Support
support@vedika.ai
Documentation
Browse all sections ā