transform_image_from_encoded
Transform an existing image based on a text prompt. Provide a base64 encoded image and description; returns the path to the 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 output_image_path: Optional path to save the transformed image. If not provided, uses default path.
Returns: Path to the transformed image file saved on the server
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| encoded_image | Yes | ||
| output_image_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |