relay
Gemini Native API
Changed onGemini Native API
post/{version}/models/{model}
Request
- The document declares no server URL.
- AuthAPI key in header Authorization
Path parameters
versionstring required
API Version (v1 or v1beta)
modelstring required
Model name with action (e.g., gemini-2.0-flash:generateContent)
Headers
Aiproxy-Channelstring
Optional Aiproxy-Channel header
X-Aiproxy-Groupstring
Optional group ID for internal token requests
X-Aiproxy-Group-Channel-Mode'global' | 'own'
Optional group channel mode for internal token requests. Values: global, own
Request body
object required
Response
OK
object required
Changes
- info
added the new optional
headerrequest parameterX-Aiproxy-Group - info
added the new optional
headerrequest parameterX-Aiproxy-Group-Channel-Mode
- info
- info
endpoint added
- info