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

Spam: Promotional content, URLs, commercial messages
Off-topic: Non-astrology questions (weather, sports, etc.)
Harmful: Dangerous advice requests, self-harm content
Invalid: Too short, empty, or unclear queries

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

astrology

Valid astrology query - processing continues

spam

Commercial/promotional content - blocked

harmful

Dangerous or harmful content - blocked

off_topic

Non-astrology question - blocked with suggestions

unclear

Too vague or ambiguous - needs clarification

invalid_input

Empty, too short, or malformed - immediate block

Performance Impact:

  • Basic validation: <1ms (instant)
  • AI filtering: under 2 seconds (Vedika Lite 0.9)
  • Optimized for speed and accuracy
  • Fail-open design: Allows queries on error (UX-first)

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 1.0 and re-scored to ensure excellence.

Quality Score Dimensions

Accuracy Score 0-10

Correctness of astrological calculations and interpretations

Relevance Score 0-10

How well the response addresses the user's question

Completeness Score 0-10

Coverage of all relevant aspects and details

Clarity Score 0-10

Ease of understanding for the target audience

Depth Score 0-10

Level of insight and advanced analysis provided

Spiritual Guidance Score 0-10

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": {
    "totalStages": 7,
    "completedStages": 7,
    "processingTime": 52000,
    "contentFiltered": true,
    "filterCategory": "astrology",
    "enhanced": false
  }
}

Auto-Enhancement Process

  1. Generate Response - Initial response created by 6-agent swarm
  2. Quality Scoring - Response evaluated using Vedika Standard 2.1 (under 5 seconds)
  3. Enhancement Check - If overall_score < 6/10, enhancement triggered
  4. Enhancement - Vedika Pro 1.0 improves response (5-8 seconds)
  5. Re-scoring - Enhanced response re-evaluated
  6. 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

  1. Key Generation - SHA-256 hash from model + prompt + parameters
  2. Cache Check - Before API call, check if response exists
  3. Cache Hit - Return cached response (<5ms response time)
  4. Cache Miss - Call AI model API, cache response for reuse
  5. TTL Management - Responses expire after 30 minutes

Performance Benefits

<5ms

Cache Hit Response Time

vs 2-5 seconds API call

40-60%

Cost Reduction

Based on query patterns

5000

Max Cached Items

~50MB total memory

30min

Cache TTL

Balance freshness & savings

Vedika Intelligence Models

Vedika automatically selects the optimal AI model based on your query complexity and analysis requirements. Our 6-agent swarm 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

PREMIUM

Our most advanced model for complex astrological synthesis, final quality scoring, and deep interpretations

Role
Queen Agent (Lead)
Context Window
200K tokens
Use Case
Final synthesis
Selection
Automatic
Highest Accuracy Complex Reasoning Deep Insights

Vedika Swift

FAST & EFFICIENT

Optimized for parallel processing of specialized analyses (birth chart, transits, compatibility, yogas)

Role
Worker Agents (0-5)
Context Window
128K tokens
Use Case
Parallel analysis
Selection
Automatic
Speed Optimized Cost Effective Parallel Processing
🌌

Vedika Astro Engine

NASA-GRADE

Swiss Ephemeris powered astronomical calculations with 0.01° precision for all planetary positions

Precision
0.01° accuracy
Features
108+ Vedic
Calculations
Real-time
Selection
Always Active
Swiss Ephemeris High Precision Complete Vedic

💡 How It Works

  • Intelligent Routing: Query analyzed automatically to select optimal model combination
  • Parallel Processing: Up to 6 agents 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

$11.94
AI processing only
(mix of Pro Ultra + Swift)
$233.94
With astronomical data
(~1,309 typical queries)
✨ Typical Query Cost Example
Astronomical calculations: $0.17
AI processing (~764 tokens): $0.02
Total per query: $0.19 - $0.65

* Actual cost varies based on query complexity, number of agents activated, 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": {
      "queen_agent": {
        "model": "vedika-pro-ultra",
        "role": "lead",
        "cost_usd": 0.009
      },
      "worker_agents": [
        {
          "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 108+ authentic Vedic astrology features powered by Swiss Ephemeris calculations.

FEATURES Comprehensive Features

Vedic Astrology:
  • Complete birth chart analysis
  • 60+ traditional calculations
  • Doshas, yogas, divisional charts
  • Compatibility & dasha systems
Intelligent Processing:
  • Multi-agent analysis
  • Context-aware routing
  • Automatic feature detection
  • Parallel computation

Available Calculations

Doshas
Kaal Sarp, Sade Sati, Mangal, Chandrashtama
Yogas
300+ yoga detection, Anandadi system
Muhurtha
Choghadiya, Hora, Auspicious timing
Compatibility
Ashtakoota, Kerala, Tamil matching
Strength Analysis
Chandra Bala, Tara Bala, Ashtakavarga
Panchang
Complete daily Vedic calendar

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
  • Self-Hosted Option: Run Vedika engine on your own servers
  • Community Driven: Contribute algorithms, yogas, and interpretations
  • Enterprise Edition: Advanced features with commercial license
  • Multi-Language: Python, JavaScript, Rust implementations
Q2 2026 Beta Join waitlist for early access

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 when DISABLE_TEST_KEYS=true.

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 1.0 (enhancement), Vedika Standard 2.1 (primary), Vedika Lite 0.9 (fast queries), and Vedika Express 1.5 (fallback). These are intelligently routed based on query complexity.

How accurate are the astrological calculations?

Vedika integrates Swiss Ephemeris calculations with 108+ 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?

Each API call deducts credits based on complexity: Chart generation (3 credits), Vedika query (1 credit), Compatibility (2 credits). Credits are automatically deducted and tracked in real-time.

What happens if I run out of credits?

API calls will return an error when credits reach zero. You can top up credits through your dashboard (payment integration coming soon).

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. Test keys: 10 requests/minute. Live keys: 100 requests/minute. Enterprise plans available for higher limits.

Do you have SDKs or client libraries?

Currently, we provide REST API endpoints. SDKs for Node.js, Python, and PHP are coming soon. You can use any HTTP client library.

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 →

Vedika Support

We're here to help!

Quick questions:

For complex issues, email support@vedika.ai