add_inline_data | R Documentation |
Appends an inline_data part (image) to the Gemini API request body.
add_inline_data(body, mime_type, data)
body |
A list representing the current Gemini API request body. |
mime_type |
Character. The MIME type of the image (e.g., "image/png"). |
data |
Character. The base64-encoded image data. |
The updated body list with the inline image data added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.