Protocols
Gemini generateContent
Gemini-style generateContent and streamGenerateContent entrypoints authenticated by API-Zeno API Key.
Method
POSTEndpoint
/v1beta/models/{model}:generateContentBase URL
https://api-zeno.com/v1betaAuth
Authorization: Bearer $API_ZENO_KEYNotes
- Supports generateContent and streamGenerateContent.
- Model is part of the path, for example /models/gemini-2.0-flash:generateContent.
- Upstream accounts, channels, and groups are configured in admin.
Example
bash
curl https://api-zeno.com/v1beta/models/gemini-2.0-flash:generateContent \
-H "Authorization: Bearer $API_ZENO_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{ "role": "user", "parts": [{ "text": "Hello Gemini" }] }
]
}'