edit_image
Modify images using text prompts to adjust content, style, or composition while preserving original lighting and visual characteristics.
Instructions
Edit an image using a prompt. Provide one input image via base64 or file path.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image | Yes | One input image | |
prompt | Yes | Describe the edit; the model matches original style and lighting. | |
saveToFilePath | No | Optional path to save the edited image |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"image": {
"additionalProperties": false,
"description": "One input image",
"properties": {
"dataBase64": {
"description": "Base64 without data URL prefix",
"type": "string"
},
"mimeType": {
"description": "image/png or image/jpeg",
"type": "string"
},
"path": {
"description": "Path to the input image file",
"type": "string"
}
},
"type": "object"
},
"prompt": {
"description": "Describe the edit; the model matches original style and lighting.",
"type": "string"
},
"saveToFilePath": {
"description": "Optional path to save the edited image",
"type": "string"
}
},
"required": [
"prompt",
"image"
],
"type": "object"
}