Quick Start
Get up and running with Maniac in under 5 minutes.
Prerequisites
Python 3.9 or higher
Maniac API key (all model providers handled automatically)
Installation
Install the Maniac Python library using pip:
pip install maniacBasic Setup
1. Import and Initialize
from maniac import Maniac
# Simple initialization - Maniac handles all providers automatically
client = Maniac(api_key="your-maniac-api-key")2. Using the Chat Completions API
3. Using the Responses API
Key Features
Task Labeling
Group related inferences for optimization and tracking:
Available Models (Provider routing automatic)
Claude Models:
claude-opus-4,claude-sonnet-4,claude-haiku-3GPT Models:
gpt-4o,gpt-4-turbo,gpt-4,gpt-3.5-turbo,o1-miniGemini Models:
gemini-pro,gemini-1.5-proOpen Source:
llama-3.1-70b,mixtral-8x7b,codestral
Batch Processing
Example: Building a Customer Support Agent
Troubleshooting
Common Issues
API Key Invalid
Solution: Verify your API key in the dashboard
Rate Limiting
Solution: Implement exponential backoff or upgrade your plan
Model Not Available
Solution: The system will automatically fallback to the next best model
Support
Need help? We're here for you:
📧 Email: support@maniac.ai
💬 Discord: Join our community
Last updated