likhonsheikh's picture
Update README for hybrid service
803bc22 verified
---
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