Looknicemm commited on
Commit
05a9705
Β·
verified Β·
1 Parent(s): eebe980

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +29 -3
README.md CHANGED
@@ -1,10 +1,36 @@
1
  ---
2
  title: G Api
3
- emoji: πŸ¦€
4
  colorFrom: blue
5
- colorTo: yellow
6
  sdk: docker
 
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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).