generateImageFromReference
Create new images by using an existing image as a reference. Customize settings like dimensions, model, and enhancements to generate tailored visuals based on user prompts.
Instructions
Generate a new image using an existing image as reference. User-configured settings in MCP config will be used as defaults unless specifically overridden.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
enhance | No | Whether to enhance the prompt using an LLM before generating (default: true) | |
fileName | No | Name of the file to save (without extension, default: generated from prompt) | |
format | No | Image format to save as (png, jpeg, jpg, webp - default: png) | |
height | No | Height of the generated image (default: 1024) | |
imageUrl | Yes | URL of the reference image to base the generation on | |
model | No | Model name to use for generation (default: user config or "gptimage"). Available: "gptimage", "kontext" | |
outputPath | No | Directory path where to save the image (default: user config or "./mcpollinations-output") | |
prompt | Yes | The text description of what to generate based on the reference image (e.g., "create a cartoon version", "make it look like a painting") | |
safe | No | Whether to apply content filtering (default: false) | |
seed | No | Seed for reproducible results (default: random) | |
transparent | No | Generate image with transparent background (gptimage model only, default: false) | |
width | No | Width of the generated image (default: 1024) |
Input Schema (JSON Schema)
{
"properties": {
"enhance": {
"description": "Whether to enhance the prompt using an LLM before generating (default: true)",
"type": "boolean"
},
"fileName": {
"description": "Name of the file to save (without extension, default: generated from prompt)",
"type": "string"
},
"format": {
"description": "Image format to save as (png, jpeg, jpg, webp - default: png)",
"type": "string"
},
"height": {
"description": "Height of the generated image (default: 1024)",
"type": "number"
},
"imageUrl": {
"description": "URL of the reference image to base the generation on",
"type": "string"
},
"model": {
"description": "Model name to use for generation (default: user config or \"gptimage\"). Available: \"gptimage\", \"kontext\"",
"type": "string"
},
"outputPath": {
"description": "Directory path where to save the image (default: user config or \"./mcpollinations-output\")",
"type": "string"
},
"prompt": {
"description": "The text description of what to generate based on the reference image (e.g., \"create a cartoon version\", \"make it look like a painting\")",
"type": "string"
},
"safe": {
"description": "Whether to apply content filtering (default: false)",
"type": "boolean"
},
"seed": {
"description": "Seed for reproducible results (default: random)",
"type": "number"
},
"transparent": {
"description": "Generate image with transparent background (gptimage model only, default: false)",
"type": "boolean"
},
"width": {
"description": "Width of the generated image (default: 1024)",
"type": "number"
}
},
"required": [
"prompt",
"imageUrl"
],
"type": "object"
}