GPT Image 2 Tool
Generate and edit images using OpenAI GPT Image 2 model
pinned to #d0b9194updated 2 months ago
Ask your AI client: “install plugins/gpt-image-2-tool”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install plugins/gpt-image-2-toolmetahub onboarded this repo on the author's behalf.
If you own github.com/agentscope-ai/QwenPaw on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
21,840
Last commit
2 months ago
Latest release
published
- #agent
- #agent-harness
- #agentscope
- #harness-engineering
- #llm-tools
- #llms
- #loop-engineering
- #skills
- #super-agent
Automated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.d0b9194· 2 months ago
Behavioral checks ran but aren't published for this artifact; the static checks above ran at publish time.
Kind-specific
3 passed1 warningPlugin: bundled artifacts presentwarn
Couldn't find a skills/ subdir or an MCP server config inside the plugin
A plugin is most useful when it bundles ≥ 1 skill or an MCP server.
Plugin: manifest fields complete
Plugin: bundle shape
empty bundle
Plugin: manifest location
manifest at plugin.json
Release history
1- releasecurrentd0b9194warn2 months ago
Contents
A QwenPaw tool plugin that enables image generation and editing using OpenAI's GPT Image 2 model.
Features
- Generate images from text prompts
- Edit/generate images using reference images (1-16 images)
- Support for multiple image sizes (1024x1024, 1024x1536, 1536x1024, auto)
- Quality options: low, medium, high, auto
- High fidelity image processing (automatic for gpt-image-2)
- Pure backend implementation - no frontend code required
Installation
qwenpaw plugin install /path/to/gpt-image2
Or from ZIP:
qwenpaw plugin install gpt-image2-tool.zip
Configuration
- Start QwenPaw application
- Navigate to Agent Settings → Tools
- Find the GPT Image 2 tools:
generate_image_gpt(🎨 icon) - Generate images from textedit_image_gpt(🖼️ icon) - Edit images with reference images
- Click "Configure" button for each tool
- Enter your OpenAI API Key (get it from https://platform.openai.com/api-keys)
- Save configuration
- Enable the tools you want to use
Usage
Once configured and enabled, the Agent can automatically call these tools when asked to generate or edit images.
Example 1: Generate Image from Text
User: Please generate an image of a serene mountain landscape at sunset
Agent: [Calls generate_image_gpt tool with appropriate parameters]
Example 2: Edit Image with Reference
User: I have a photo at /path/to/my/photo.jpg, please make it look like a watercolor painting
Agent: [Calls edit_image_gpt tool with reference image and prompt]
Example 3: Generate from Multiple References
User: Use these product images to create a gift basket: image1.png, image2.jpg, https://example.com/image3.png
Agent: [Calls edit_image_gpt tool with multiple reference images]
Tool Parameters
generate_image_gpt
Generate an image using OpenAI GPT Image 2 model from text prompt only.
Parameters:
prompt(str, required): Text description of the image to generatesize(str, optional): Image size, one of "1024x1024", "1024x1792", "1792x1024" (default: "1024x1024")quality(str, optional): Quality level, one of "low", "medium", "high", "auto" (default: "auto")
Returns:
- ImageBlock with the generated image
- TextBlock with generation metadata
edit_image_gpt
Edit or generate image using reference images with OpenAI GPT Image 2 model.
Parameters:
prompt(str, required): Text description of the desired image edit or generationreference_images(List[str], required): List of 1-16 reference images. Each can be:- Local file path (e.g.,
/path/to/image.png,./photo.jpg) - Web URL (e.g.,
https://example.com/image.png) - Note: Local files are automatically converted to base64
- Local file path (e.g.,
size(str, optional): Image size, one of "1024x1024", "1024x1536", "1536x1024", "auto" (default: "1024x1024")quality(str, optional): Quality level, one of "low", "medium", "high", "auto" (default: "auto")
Note: GPT Image 2 always processes images at high fidelity and does not support the input_fidelity parameter.
Returns:
- ImageBlock with the edited/generated image
- TextBlock with editing metadata
Supported Image Formats:
- PNG (.png)
- JPEG (.jpg, .jpeg)
- WebP (.webp)
Requirements
- QwenPaw >= 1.1.6
- httpx >= 0.24.0
- Valid OpenAI API key with access to GPT Image 2
Pricing
GPT Image 2 usage is billed by OpenAI. See https://openai.com/pricing for current pricing.
Troubleshooting
Tool not showing up
- Ensure the plugin is installed:
qwenpaw plugin list - Check QwenPaw logs:
~/.qwenpaw/logs/qwenpaw.log - Restart QwenPaw after installation
API errors
- Verify your API key is correct
- Check your OpenAI account has sufficient credits
- Ensure you have access to GPT Image 2 model
Configuration not saving
- Check file permissions in
~/.qwenpaw/plugins/ - Review logs for error messages
Development
This is a pure backend plugin. To modify:
- Edit
tool.pyfor tool logic - Edit
plugin.pyfor registration logic - Edit
plugin.jsonfor metadata - Reinstall with
--forceflag
License
Same as QwenPaw
Support
For issues and feature requests, please use the QwenPaw issue tracker.
Reviews
No reviews yet. Be the first.
Related
taste-skill
Frontend design taste skills including brutalist, minimalist, soft, redesign, stitch, and more
Superpowers
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
RuView
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
mh install plugins/gpt-image-2-tool