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 maniac

Basic 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-3

  • GPT Models: gpt-4o, gpt-4-turbo, gpt-4, gpt-3.5-turbo, o1-mini

  • Gemini Models: gemini-pro, gemini-1.5-pro

  • Open 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 dashboardarrow-up-right

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:

Last updated