Spaces:
Paused
Paused
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,10 +1,36 @@
|
|
| 1 |
---
|
| 2 |
title: G Api
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: G Api
|
| 3 |
+
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# g-api
|
| 12 |
+
|
| 13 |
+
OpenAI-compatible API over Google Gemini's web interface.
|
| 14 |
+
Based on [Sophomoresty/gemini-web2api](https://github.com/Sophomoresty/gemini-web2api).
|
| 15 |
+
|
| 16 |
+
## Endpoints
|
| 17 |
+
|
| 18 |
+
- `POST /v1/chat/completions` β OpenAI chat
|
| 19 |
+
- `GET /v1/models` β model list
|
| 20 |
+
- `POST /v1/responses` β Codex CLI
|
| 21 |
+
- `GET/POST /v1beta/models...` β Gemini CLI native
|
| 22 |
+
|
| 23 |
+
Base URL: `https://looknicemm-g-api.hf.space/v1`
|
| 24 |
+
|
| 25 |
+
## Config (HF Space Secrets)
|
| 26 |
+
|
| 27 |
+
| Secret | Purpose |
|
| 28 |
+
|--------|---------|
|
| 29 |
+
| `API_KEYS` | Comma-separated Bearer keys. Empty = no auth. |
|
| 30 |
+
| `GEMINI_COOKIE` | Optional cookie string for real Pro routing. |
|
| 31 |
+
| `PROXY` | Optional outbound HTTP proxy. |
|
| 32 |
+
|
| 33 |
+
## Models
|
| 34 |
+
|
| 35 |
+
`gemini-3.5-flash`, `gemini-3.5-flash-thinking`, `gemini-3.5-flash-thinking-lite`,
|
| 36 |
+
`gemini-3.1-pro`, `gemini-auto`, `gemini-flash-lite`. Append `@think=N` (0=deepest).
|