Skip to content

Google gemini generateContent API gateway.​

POST
/google/{provider}/v1beta/models/{model}:{methodName}

Send a generateContent request to the specified provider using compatible format.
The request will be processed through the configured guardrails and security policies
before being forwarded to the provider.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

provider*
Type
string
Required
model*
Type
string
Required
methodName*
Type
string
Required
Valid values
"generateContent""streamGenerateContent"

Query Parameters

alt

Request Body​

application/json
JSON
{
  
"contents": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
],
  
"additionalProperties": "string"
}

Responses​

Successful Response

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Updated at: