File size: 925 Bytes
8f6a964
 
05a9705
8f6a964
05a9705
8f6a964
05a9705
8f6a964
 
 
05a9705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: G Api
emoji: πŸŒ€
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---

# g-api

OpenAI-compatible API over Google Gemini's web interface.
Based on [Sophomoresty/gemini-web2api](https://github.com/Sophomoresty/gemini-web2api).

## Endpoints

- `POST /v1/chat/completions` β€” OpenAI chat
- `GET  /v1/models` β€” model list
- `POST /v1/responses` β€” Codex CLI
- `GET/POST /v1beta/models...` β€” Gemini CLI native

Base URL: `https://looknicemm-g-api.hf.space/v1`

## Config (HF Space Secrets)

| Secret | Purpose |
|--------|---------|
| `API_KEYS` | Comma-separated Bearer keys. Empty = no auth. |
| `GEMINI_COOKIE` | Optional cookie string for real Pro routing. |
| `PROXY` | Optional outbound HTTP proxy. |

## Models

`gemini-3.5-flash`, `gemini-3.5-flash-thinking`, `gemini-3.5-flash-thinking-lite`,
`gemini-3.1-pro`, `gemini-auto`, `gemini-flash-lite`. Append `@think=N` (0=deepest).