Skip to main content

Gemini

App Vendor: Gemini

App Category: AI Models

Connector Version: 2.1.0

API Version: 1.0.0

About App

Gemini is Google's most capable and general-purpose AI model family. It is designed to be highly flexible and efficient, capable of handling a wide range of tasks and modalities.

The Gemini app is configured with Cyware Orchestrate to perform the following actions:

Action Name

Description

Generic Action

This is a generic action used to make requests to any Gemini endpoint.

Get List of Models

This action retrieves the list of generative models available through the Gemini API.

Get Prompt Response 

This action retrieves the response generated by the specified model based on the given prompt.

Get Raw Response

This action retrieves the raw, unformatted response generated by the selected Gemini model based on the provided prompt.

Configuration Parameters

The following configuration parameters are required for the Gemini app to communicate with the Gemini enterprise application. The parameters can be configured by creating instances in the app.

Parameter

Description

Field Type

Required/Optional

Comments

API Token 

Enter the API token to authenticate with Gemini.

Password

Required

Temperature 

Enter a sampling temperature between 0 and 2.

Float

Optional

Higher values (Example: 0.8) result in more random output, while lower values (Example: 0.2) produce more focused and deterministic results. The default is 1.

Max Output Tokens 

Specify how many tokens to generate before stopping. Maximum limits depend on the model used.

Integer

Optional

Base URL 

Enter the basic URL to access the Gemini API.

Example:

https://generativelanguage.googleapis.com/v1beta

Note

It is recommended to use https://generativelanguage.googleapis.com/v1beta , as it provides enhanced functionality.

Text

Optional

Default value:

https://generativelanguage.googleapis.com/v1beta

Timeout 

Enter the timeout value in seconds. This is the number of seconds that requests will wait to establish a connection with Gemini.

Integer

Optional

Allowed range:

15 - 120 seconds

Default range:

15 seconds

Verify 

Choose your preference to verify SSL/TSL while making requests. It is recommended to set this option to yes. If no is passed, it may result in an incorrect connection establishment, potentially resulting in a broken connection.

Boolean

Optional

By default, verification is enabled.

Action: Generic Action

This is a generic action used to make requests to any Gemini endpoint.

Action Input Parameter

Parameter

Description

Field Type

Required/Optional

Comments

Method

Enter the HTTP method to make the request.

Text

Required

Allowed values:

GET, PUT, POST, and DELETE

Endpoint

Enter the endpoint to make the request to.

Example:

models

Text

Required

Headers

Enter the headers to include in the request.

Key Value

Optional

Query Params

Enter the query parameters to pass to the API

Key Value

Optional

Payload

Enter the payload to pass to the API

Any

Optional

Extra Fields

Enter the extra fields to pass to the API.

Key Value

Optional

Allowed keys:

payload_json, download, files, filename, retry_wait, retry_count, custom_output, and response_type

Action: Get List of Models

This action retrieves the list of generative models available through the Gemini API.

Action Input Parameters

Parameter

Description

Field Type

Required/Optional

Comments

Page Size

Enter the maximum number of models to return on each page.

Example:

10

Integer

Optional

Allowed range:

1 to 1000

Default value:

50

Retrieve All Models

Select Yes to retrieve all available models.

Boolean

Optional

By default, No is selected, which retrieves only the models from the first page.

Action: Get Prompt Response

This action retrieves the response generated by the specified model based on the given prompt.

Action Input Parameters 

Parameter

Description

Field Type

Required/Optional

Comments

Model 

Enter the model name to use for generating the response. 

Example: 

gemini-2.0-flash

Text

Required

To retrieve the list of available models, use the Get List of Models action.

Prompt 

Provide the text prompt that will be sent to the selected model for response generation.

Example: 

Get me the IP details of 1.1.1.1, use whois provider if required.

Text

Required

Example Request 

[
  {
    "model": "gemini-2.0-flash-lite-001",
    "prompt": "Get me the ip details of 1.1.1.1, you can use 'whois' provider if needed"
  }
]

Action: Get Raw Response

This action retrieves the raw, unformatted response generated by the selected Gemini model based on the provided prompt.

Action Input Parameters 

Parameter

Description

Field Type

Required/Optional

Comments

Model 

Enter the model name to use for generating the response.

Example:

gemini-2.0-flash

Text

Required

To retrieve the list of available models, use the Get List of Models action.

Prompt 

Enter the prompt text for the model to generate a response.

Example:

Provide recommended response actions for a potential intrusion attempt.

Text

Required

Response Schema 

Enter the schema in which the model should return the response. Schemas must follow the OpenAPI subset and can include objects, primitives, or arrays. Note that this parameter is supported only for the 'v1beta' endpoint.

Example:

$JSON[{"type": "array", "items": {"type": "integer"}, "format": "json"}]

Any

Optional

Response MIME Type 

Enter the MIME type to define the format of the model's raw response.

Note that this parameter is supported only for the 'v1beta' endpoint.

Text

Optional

Allowed types:

text/plain for Text output, application/json for JSON responses, and text/x.enum for ENUM string responses