Gemini v1beta
Gemini v1beta is for Gemini CLI, Gemini SDKs and tools compatible with the Gemini protocol.
Base URL
text
https://quotarouter.aiCommon paths:
text
/v1beta/models
/v1beta/models/{model}:generateContent
/v1beta/models/{model}:streamGenerateContentAPI Key
Gemini-style requests commonly pass the key as a query parameter:
text
?key=YOUR_QUOTAAPI_KEYSome clients also support request headers. Prefer the method documented by your client.
List models
bash
curl "https://quotarouter.ai/v1beta/models?key=YOUR_QUOTAAPI_KEY"generateContent
bash
curl "https://quotarouter.ai/v1beta/models/gemini-3.5-pro:generateContent?key=YOUR_QUOTAAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{ "text": "Explain QuotaAPI in one sentence." }
]
}
],
"generationConfig": {
"temperature": 0.7,
"maxOutputTokens": 120
}
}'streamGenerateContent
bash
curl "https://quotarouter.ai/v1beta/models/gemini-3.5-pro:streamGenerateContent?key=YOUR_QUOTAAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{ "text": "Stream a short QuotaAPI test response." }
]
}
]
}'Configuration notes
| Item | Notes |
|---|---|
| Base URL | If the client appends /v1beta, set https://quotarouter.ai |
| Full prefix | If the client expects a full API prefix, set https://quotarouter.ai/v1beta |
| Model name | Must match a Gemini model enabled in the console |
| Key | Use the API Key created in the QuotaAPI console |
Troubleshooting
404: check whether/v1betawas appended twice.401: the key is invalid or missing.403: the API Key does not have access to a Gemini group.model not found: model name is not enabled, misspelled, or unavailable for that group.
