Learn R Programming

gemini.R (version 0.8.0)

gemini_image.vertex: Generate text from text and image with Gemini Vertex API

Description

Generate text from text and image with Gemini Vertex API

Usage

gemini_image.vertex(
  image = NULL,
  prompt = "Explain this image",
  type = "png",
  tokens = NULL
)

Value

A character string containing Gemini's description of the image.

Arguments

image

The image to generate text

prompt

A character string specifying the prompt to use with the image. Defaults to "Explain this image". Currently ignored.

type

A character string specifying the image type ("png", "jpeg", "webp", "heic", "heif"). Defaults to "png".

tokens

A list containing the API URL and key from token.vertex() function.