Google Gemini
API actions for the Google Gemini integration.
Google Gemini
Generate text and images with Google's Gemini AI models.
Generate image
Generate an image from a text prompt.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | The text prompt describing the image to generate |
model | string | No | Which model to use. Defaults to {...}. |
Response
{
"image_count": 1,
"images": [
"base64encodedimagedata..."
]
}Generate text response
Generate a text response using a Gemini model.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | The text prompt to send to the model |
model | string | No | Which Gemini model to use. Defaults to {...}. |
Response
{
"response_text": "This is a sample generated response."
}