Spaces:
Runtime error
Runtime error
| 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 | |