Skip to content

Gemini v1beta

Gemini v1beta is for Gemini CLI, Gemini SDKs and tools compatible with the Gemini protocol.

Base URL

text
https://quotarouter.ai

Common paths:

text
/v1beta/models
/v1beta/models/{model}:generateContent
/v1beta/models/{model}:streamGenerateContent

API Key

Gemini-style requests commonly pass the key as a query parameter:

text
?key=YOUR_QUOTAAPI_KEY

Some 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

ItemNotes
Base URLIf the client appends /v1beta, set https://quotarouter.ai
Full prefixIf the client expects a full API prefix, set https://quotarouter.ai/v1beta
Model nameMust match a Gemini model enabled in the console
KeyUse the API Key created in the QuotaAPI console

Troubleshooting

  • 404: check whether /v1beta was 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.

QuotaAPI is an AI API relay service for developers and teams.