--- title: Enhanced Gemini Multi-API emoji: 🚀 colorFrom: red colorTo: blue sdk: gradio sdk_version: 4.16.0 app_file: app.py pinned: false --- # Enhanced Gemini Multi-API - Hybrid Service 🤖 **Anthropic Compatible API + Web Interface** A comprehensive service providing Google Gemini models through an Anthropic-compatible interface with both web interface and API endpoints. ## Features 🌐 **Web Interface** - Interactive chat with Gemini models - Real-time API testing - Model selection and configuration - Usage tracking and status monitoring 🤖 **API Endpoints** (Anthropic Compatible) - `POST /v1/messages` - Chat completions - `GET /v1/models` - List available models - `GET /health` - Health check - `GET /info` - API information 🤖 **Model Compatibility** - `claude-3-haiku-20240307` → Gemini 1.5 Flash - `claude-3-sonnet-20240229` → Gemini 1.5 Pro - `claude-3-5-sonnet-20241022` → Gemini 1.5 Pro - `claude-3-5-haiku-20241022` → Gemini 1.5 Flash ## Quick Start ### Web Interface Visit the space URL and use the interactive chat interface. ### API Usage ```bash curl -X POST https://likhonsheikh-enhanced-gemini-multi-api.hf.space/v1/messages \ -H "Content-Type: application/json" \ -d '{ "model": "claude-3-haiku-20240307", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 1024, "temperature": 0.7 }' ``` ### Test API ```bash curl https://likhonsheikh-enhanced-gemini-multi-api.hf.space/health curl https://likhonsheikh-enhanced-gemini-multi-api.hf.space/v1/models ``` ## Configuration **Required:** Set `GEMINI_API_KEY` in Space secrets for full functionality. Without API key: Shows status and web interface only. With API key: Full chat and API testing capabilities. ## Status ✅ **HYBRID SERVICE DEPLOYED** ✅ **WEB INTERFACE + API ENDPOINTS** ✅ **ANTHROPIC API COMPATIBLE** ✅ **PRODUCTION READY** **Updated:** 2025-11-14 04:17:24