PixelForge (Gemini image and video)
v0.12.0AI-powered image generation MCP server with multi-model support
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_image Generate Image
Generate an image from a text prompt using Google Gemini.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text description of the image to generate |
aspect_ratio | string | Image dimensions (1:1, 16:9, 9:16, etc.) |
grounding | Search grounding: "web" or "web_and_image". | |
image_size | Resolution: "0.5K" (gemini-3.1-flash-image only), "1K" (default), "2K", or "4K". 2K/4K are not supported by gemini-3.1-flash-lite-image. | |
model | Model override. Options: - "gemini-nano-banana-2.1" (default): Best all-round, panoramic, grounding, thinking levels, video references - "gemini-3.1-flash-lite-image": Fastest, cheapest, 1K only - "… | |
number_of_images | integer | Generate 1-4 variations (default: 1) |
output_filename | Custom filename (optional, auto-generated if not provided) | |
output_format | string | File format: "png", "jpeg", or "webp" |
person_generation | Accepted for compatibility ("allow", "adults_only", "block"). Not enforced by the Gemini API; Gemini applies its own built-in restrictions on identifiable people. | |
quality | Quality preset: "fast" (gemini-3.1-flash-lite-image), "balanced" (gemini-nano-banana-2.1), or "quality" (gemini-3-pro-image, 2K). Mutually exclusive with 'model'. | |
reference_images | Paths to reference images for style/character consistency (up to 14 images on gemini-nano-banana-2.1 and gemini-3.1-flash-image; 6 on gemini-3-pro-image) | |
reference_video | Optional local .mp4/.mov/.webm path or YouTube URL. | |
safety_setting | string | Safety filter (preset:strict, preset:relaxed) |
temperature | number | Creativity level 0.0-2.0 |
thinking_budget | Thinking budget for extended reasoning (0-24576 tokens). Mutually exclusive with thinking_level. | |
thinking_level | Native thinking level: "minimal", "medium", or "high" (gemini-nano-banana-2.1 and gemini-3.1-flash-image). |
edit_image Edit Image
Edit an existing image using a text prompt.
| Parameter | Type | Description |
|---|---|---|
input_image_path * | string | Path to the image to edit |
prompt * | string | Description of the desired changes |
grounding | Search grounding: "web" or "web_and_image". | |
model | Model override. Default "gemini-nano-banana-2.1"; "gemini-3-pro-image" is best for complex multi-turn edits. | |
output_filename | Custom filename for edited image (optional) | |
output_format | string | File format: "png", "jpeg", or "webp" |
reference_video | Optional local .mp4/.mov/.webm path or YouTube URL. | |
temperature | number | Creativity level 0.0-2.0 |
thinking_level | Native thinking level: "minimal", "medium", or "high" (gemini-nano-banana-2.1 and gemini-3.1-flash-image). |
remove_background Remove Background
Remove the background from an image. Uses AI to isolate the main subject and remove the background. Best results with clear subjects against distinct backgrounds.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the image |
output_filename | Custom filename for result (optional) | |
output_format | string | "png" (default, supports transparency), "jpeg", or "webp" |
transform_image Transform Image
Transform an image using Pillow operations.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the image to transform |
operation * | string | One of: crop, resize, rotate, flip, blur, sharpen, grayscale, watermark |
degrees | Rotation angle in degrees | |
direction | Flip direction ('horizontal' or 'vertical') | |
factor | number | Sharpness factor (default: 2.0, >1 = sharper) |
height | ||
maintain_aspect | boolean | Keep aspect ratio when resizing (default: True) |
opacity | number | Watermark opacity 0.0-1.0 (default: 0.5) |
output_filename | Custom output filename (optional) | |
output_format | string | Output format (png, jpeg, webp) |
position | string | Watermark position (default: 'bottom-right') |
radius | number | Blur radius (default: 2.0) |
text | Watermark text | |
width | ||
x | ||
y |
upscale_image Upscale Image
Upscale an image to a higher 1K/2K/4K size tier with a Gemini image model. The source is re-rendered at a higher size tier with an instruction to reproduce it exactly. Fine details can differ from the source; for exact pixel scaling use transform_image(operation="resize").
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the image to upscale |
model | Image model to use (default gemini-nano-banana-2.1). gemini-3-pro-image is the other 4K-capable option. | |
output_filename | Custom output filename (optional) | |
output_format | string | Output format (png, jpeg, webp) |
upscale_factor | string | "x2" (double) or "x4" (quadruple). The output is the smallest of 1K/2K/4K that fits, capped at 4K. |
advanced_edit Advanced Edit
Edit an image with a specialized mode using a Gemini image model. Each mode wraps the prompt in an instruction tuned for that edit. An optional mask (white = region to change) is passed to the model as guidance; the boundary is interpreted semantically, not pixel-exactly.
| Parameter | Type | Description |
|---|---|---|
edit_mode * | string | One of: inpaint_removal, inpaint_insertion, outpaint, background_swap, style_transfer, product_image |
image_path * | string | Path to the image to edit |
prompt * | string | What to remove, add, replace, or the style to apply |
mask_path | Optional mask image for the inpainting modes | |
model | Image model to use (default gemini-nano-banana-2.1) | |
output_filename | Custom output filename (optional) | |
output_format | string | Output format (png, jpeg, webp) |
thinking_level | Native thinking level: "minimal", "medium", or "high" (gemini-nano-banana-2.1 and gemini-3.1-flash-image). |
generate_video Generate Video
Generate a 3-15s MP4 video with native stereo audio via gemini-omni-1.2-flash. Supports text-to-video, image-to-video (first_frame_image), two-frame interpolation (first_frame_image + last_frame_image), and up to 6 subject/style reference_images via the stateless Interactions API.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Scene, motion, camera, and sound description |
aspect_ratio | string | "16:9" (default) or "9:16" |
duration_seconds | integer | Clip length in seconds, 3-15 (default: 5) |
first_frame_image | Optional starting frame image path | |
gcs_uri | Optional gs:// output URI (Vertex AI backend only) | |
last_frame_image | Optional ending frame image path (needs first_frame_image) | |
model | Video model override (default: gemini-omni-1.2-flash) | |
output_filename | Optional custom .mp4 filename in the output directory | |
reference_images | Optional up to 6 reference image paths | |
resolution | string | "360p", "720p" (default), "1080p", or "4K" |
edit_video Edit Video
Edit, extend (3-10s up to 30s), or upscale a video via gemini-omni-1.2-flash.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Instruction describing the edit, continuation, or upscale |
video_path * | string | Path to the local source video (.mp4, .mov, .webm) |
aspect_ratio | Optional target aspect ratio ("16:9" or "9:16") | |
duration_seconds | Optional 3-10s extension length when task="extend" | |
gcs_uri | Optional gs:// output URI (Vertex AI backend only) | |
model | Video model override (default: gemini-omni-1.2-flash) | |
output_filename | Optional custom .mp4 filename in the output directory | |
reference_images | Optional up to 6 reference image paths | |
resolution | Optional target resolution ("360p", "720p", "1080p", "4K") | |
task | string | "edit" (default), "extend", or "upscale" |
analyze_image Analyze Image
Analyze an image and get a detailed description.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the image to analyze |
model | Analysis model override. Default gemini-3.5-flash-lite. Options include gemini-4-hydrogen, gemini-4-neon, gemini-4-argon, gemini-4-carbon, gemini-3.8-flash, and gemini-3.6-flash. | |
prompt | Custom analysis prompt. Default: general description. | |
thinking_level | Reasoning depth (minimal, low, medium, high, xhigh). | |
use_grounding | boolean | Enable Google Search grounding for more accurate, factual analysis results. |
extract_text Extract Text
Extract text from an image using OCR. Uses Gemini's vision capabilities for high-quality text extraction. Works with screenshots, documents, signs, handwriting, etc.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the image to extract text from |
model | Analysis model override. Default gemini-3.5-flash-lite. Use gemini-4-neon or gemini-3.8-flash for harder OCR. | |
thinking_level | Reasoning depth (minimal, low, medium, high, xhigh). | |
use_grounding | boolean | Enable Google Search grounding for more accurate, factual results. |
detect_objects Detect Objects
Detect objects in an image with bounding boxes. Uses Gemini's zero-shot object detection. Returns bounding box coordinates normalized to 0-1000 scale as [y_min, x_min, y_max, x_max].
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the image |
model | Analysis model override. Default gemini-3.5-flash-lite. Use gemini-4-neon or gemini-3.8-flash for harder detection. | |
objects | Specific objects to detect (e.g. "cats and dogs"). Default: detect all visible objects. | |
thinking_level | Reasoning depth (minimal, low, medium, high, xhigh). | |
use_grounding | boolean | Enable Google Search grounding for more accurate, factual results. |
compare_images Compare Images
Compare two or more images and analyze differences. Useful for A/B testing, design review, before/after comparison, and change detection.
| Parameter | Type | Description |
|---|---|---|
image_paths * | array | Paths to 2+ images to compare |
model | Analysis model override. Default gemini-3.5-flash-lite. Use gemini-4-hydrogen, gemini-4-neon, or gemini-4-carbon for multi-image reasoning. | |
prompt | Comparison focus (e.g. "color differences"). Default: general comparison. | |
thinking_level | Reasoning depth (minimal, low, medium, high, xhigh). | |
use_grounding | boolean | Enable Google Search grounding for more accurate, factual results. |
evaluate_image Evaluate Image
Evaluate structured visual QA questions on 1-10 images via gemini-decision-1. Supports calibrated 'noul' (yes/no boolean), 'choice' (A/B/N categorical), and 'score' (ordered rubric) questions in a single batched pass with calibrated confidence probabilities and zero output-token billing. Currently served on the Gemini Developer API (v1beta) only.
| Parameter | Type | Description |
|---|---|---|
image_paths * | array | Paths to 1-10 local images evaluated together |
questions * | object | 1-100 questions keyed by question ID. Each entry requires: - "type": "noul", "choice", or "score" - "instructions": human-readable criteria or question - "criteria": optional {"true_description", "fal… |
context | Optional shared text context (e.g. the generation brief) | |
model | Decision model override (default: gemini-decision-1) |
optimize_prompt Optimize Prompt
Enhance a basic prompt for dramatically better image results. Uses AI to add details about lighting, composition, colors, textures, and artistic techniques. The #1 way to improve generation quality.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Basic prompt to enhance |
model | Text model override. Default gemini-3.5-flash-lite. Use gemini-4-hydrogen or gemini-3.8-flash for richer prompt crafting. | |
style | Target style (optional): photorealistic, illustration, 3d_render, pixel_art, watercolor, oil_painting, sketch, anime, cinematic, product_photo, architecture, food, fashion, abstract | |
thinking_level | Reasoning depth (minimal, low, medium, high, xhigh). |
list_templates List Templates
List available prompt templates for image generation.
| Parameter | Type | Description |
|---|---|---|
category | Filter by category (product_photography, social_media, illustration, portrait, architecture, food, fashion, abstract, logo, panoramic). Omit for all. |
apply_template Apply Template
Apply a prompt template with a subject to generate a ready-to-use prompt.
| Parameter | Type | Description |
|---|---|---|
subject * | string | The subject to fill into the template (e.g., 'wireless headphones', 'coffee shop') |
template_name * | string | Name of the template (e.g., 'product_hero', 'instagram_post'). Use list_templates() to see all. |
estimate_cost Estimate Cost
Estimate the cost of an image operation. Shows pricing per model per operation to help with budgeting.
| Parameter | Type | Description |
|---|---|---|
operation * | string | "generate", "edit", or "analyze" |
model | Model to estimate for (default: all models that support the operation). Image models price generate/edit per image at 1K; text models price analyze per call. | |
number_of_images | integer | Number of images (default: 1) |
list_history List History
List recent generation history.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum entries to return (default: 20) |
offset | integer | Skip this many entries (for pagination) |
tool_filter | Filter by tool name (generate_image, edit_image, etc.) |
get_generation_details Get Generation Details
Get details of a specific generation by ID.
| Parameter | Type | Description |
|---|---|---|
generation_id * | string | The generation ID (from list_history) |
batch_generate Batch Generate
Generate multiple images in parallel from a list of prompts.
| Parameter | Type | Description |
|---|---|---|
prompts * | array | List of text prompts (1-10) |
aspect_ratio | string | Aspect ratio for all images (default: 1:1) |
model | Model to use for all generations (optional) | |
output_format | string | Output format for all images (default: png) |
quality | Quality preset (fast, balanced, quality) |
list_available_models List Available Models
List all available image generation models with capabilities. Returns model details including speed, quality, resolution support, and best use cases. Use this to pick the right model for your task.
get_server_info Get Server Info
Get MCP server configuration, capabilities, and available tools.