It gives you semantic search, context support, and flexible outputs with a simple Pythonic interface. 👉 To start, get your free API key from the AI Search API dashboard.
Features
- 🔍 AI-Powered Semantic Search – Use advanced embeddings for natural language queries
- 🎯 Context Awareness – Add chat-like history for smarter results
- ⚡ Simple API Client – Clean Python interface with error handling
- 🛡️ Type Safety – Full type hints for modern Python
- 🔄 Flexible Output – Choose plain text or markdown responses
- 💰 Usage Tracking – Monitor your credits anytime
Installation
Install from PyPI:Quick Start
Get Your API Key
Basic Usage Example
Advanced Usage
Contextual Search
Custom Configuration
API Reference
AISearchAPIClient
Constructor
api_key: Get yours from the dashboardbase_url: Optional custom endpointtimeout: Timeout in seconds
Methods
search(prompt, context=None, response_type=None)→ Run an AI-powered searchbalance()→ Check available credits
Error Handling
Environment Variables
You can set your API key globally:Examples
- Basic search and balance check
- Contextual search with history
- Async usage
- Error handling
examples/ folder.
Requirements
- Python 3.8+
requests >= 2.25.0typing-extensions >= 4.0.0(if Python < 3.10)

