Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available:
6.1.0
metadata
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 completionsGET /v1/models- List available modelsGET /health- Health checkGET /info- API information
π€ Model Compatibility
claude-3-haiku-20240307β Gemini 1.5 Flashclaude-3-sonnet-20240229β Gemini 1.5 Proclaude-3-5-sonnet-20241022β Gemini 1.5 Proclaude-3-5-haiku-20241022β Gemini 1.5 Flash
Quick Start
Web Interface
Visit the space URL and use the interactive chat interface.
API Usage
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
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