Gemini protocol
Send content using the Gemini generateContent format.
Service address
| Purpose | Method | Path |
|---|---|---|
| generateContent | POST | /v1beta/models/YOUR_MODEL:generateContent |
Minimal request
Keep YOUR_MODEL in the model segment of the path and send the key through x-goog-api-key.
curl "https://api.popgo.site/v1beta/models/YOUR_MODEL:generateContent" \
-H "x-goog-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{"parts": [{"text": "Reply with a connection confirmation"}]}
]
}'
Verify
A successful response contains candidate content. If a client accepts only a fixed official address, use a verified software integration instead.