███╗ ███╗ █████╗ ██████╗ ██╗ ██████╗ ██╗ ██╗ ███╗ ███╗
████╗ ████║██╔══██╗██╔════╝ ██║██╔════╝ ██║ ██║ ████╗ ████║
██╔████╔██║███████║██║ ███╗██║██║ ██║ ██║ ██╔████╔██║
██║╚██╔╝██║██╔══██║██║ ██║██║██║ ██║ ██║ ██║╚██╔╝██║
██║ ╚═╝ ██║██║ ██║╚██████╔╝██║╚██████╗ ███████╗███████╗██║ ╚═╝ ██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝
MAGIC LLM API
AI-Powered LLM Provider Wrapper & Agent Node System
Welcome to Magic LLM API - Your Gateway to AI Intelligence
A comprehensive API wrapper for Large Language Models with
advanced agent-based node system for creating intelligent
workflows and automated reasoning chains.
🚀 Multi-Provider Support 🤖 Agent System 📊 Vector Search
🚀 CORE FEATURES
- Multi-LLM Provider Support (OpenAI, Anthropic, Claude, Ollama)
- Advanced Agent-Based Node System for Complex Workflows
- Vector Search & RAG Integration with Semantic Retrieval
- Real-time Chat Streaming with WebSocket Support
- Document Processing & High-Quality Embeddings
- Robust User Authentication & Access Control
- Web Browsing & ArXiv Research Integration
- Audio Processing & Speech-to-Text Capabilities
- Scalable Architecture with Load Balancing
- Comprehensive API Documentation & SDKs
🔧 API USAGE EXAMPLE
curl -X POST /api/v1/completions \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4", "prompt": "Explain quantum computing"}'
{
"id": "comp_abc123",
"object": "text_completion",
"model": "gpt-4",
"choices": [{
"text": "Quantum computing is a revolutionary computing paradigm...",
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 157,
"total_tokens": 172
}
}
| POST /api/v1/completions |
Generate text completions using various LLM providers |
| POST /api/v1/chat |
Interactive chat conversations with context memory |
| POST /api/v1/embeddings |
Generate high-quality text embeddings for semantic search |
| POST /api/v1/rag |
Retrieval Augmented Generation with document search |
| POST /api/v1/files |
Upload and process documents (PDF, TXT, DOCX) |
| POST /api/v1/audio |
Audio transcription and speech processing |
| POST /user/register |
User registration and authentication |
| GET /api/v1/models |
List available AI models and their capabilities |