transform_image_from_encoded
Modify an existing image using a text prompt with Google's Gemini model. Provide a base64 encoded image and a descriptive prompt to generate and save a transformed image file.
Instructions
Transform an existing image based on the given text prompt using Google's Gemini model.
Args:
encoded_image: Base64 encoded image data with header. Must be in format:
"data:image/[format];base64,[data]"
Where [format] can be: png, jpeg, jpg, gif, webp, etc.
prompt: Text prompt describing the desired transformation or modifications
Returns:
Path to the transformed image file saved on the server
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoded_image | Yes | ||
prompt | Yes |
Input Schema (JSON Schema)
{
"properties": {
"encoded_image": {
"title": "Encoded Image",
"type": "string"
},
"prompt": {
"title": "Prompt",
"type": "string"
}
},
"required": [
"encoded_image",
"prompt"
],
"title": "transform_image_from_encodedArguments",
"type": "object"
}