File size: 1,924 Bytes
81ff20d
 
 
 
 
 
73ce736
81ff20d
 
 
 
803bc22
2774fc9
803bc22
81ff20d
803bc22
69b5552
 
 
803bc22
 
 
 
 
 
 
2a28b03
803bc22
2a28b03
 
69b5552
803bc22
2a28b03
803bc22
2a28b03
 
69b5552
803bc22
69b5552
803bc22
 
69b5552
803bc22
2a28b03
 
 
 
 
 
 
 
 
 
69b5552
803bc22
2a28b03
 
803bc22
2a28b03
 
 
 
 
 
803bc22
 
2774fc9
1984c4f
2774fc9
803bc22
 
 
 
2774fc9
2a28b03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
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