transform_image_from_url
Modify existing images from URLs using AI editing functions like stylization, watermark removal, resolution enhancement, and content transformation based on text prompts.
Instructions
Transform an existing image from a URL using the configured image provider.
Args:
image_url: Remote or Public URL of the image to be transformed
prompt: Text prompt describing the desired transformation or modifications
function: WanX editing function (default: 'description_edit'). Supported functions:
'description_edit', 'description_edit_with_mask', 'stylization_all',
'stylization_local', 'remove_watermark', 'expand', 'super_resolution',
'colorization', 'doodle', 'control_cartoon_feature'
mask_image_url: URL of mask image (required for 'description_edit_with_mask')
Returns:
Details about the transformed image including local path and remote URL
Input Schema
Name | Required | Description | Default |
---|---|---|---|
function | No | description_edit | |
image_url | Yes | ||
mask_image_url | No | ||
prompt | Yes |
Input Schema (JSON Schema)
{
"properties": {
"function": {
"default": "description_edit",
"title": "Function",
"type": "string"
},
"image_url": {
"title": "Image Url",
"type": "string"
},
"mask_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mask Image Url"
},
"prompt": {
"title": "Prompt",
"type": "string"
}
},
"required": [
"image_url",
"prompt"
],
"type": "object"
}