What is gpt-image-1-mcp?
The gpt-image-1-mcp is a Model Context Protocol (MCP) server designed for generating and editing images using the OpenAI gpt-image-1 model.
How to use gpt-image-1-mcp?
You can run this MCP server directly using NPX without installing it by executing the command: npx -y @cloudwerxlab/gpt-image-1-mcp. Ensure you have Node.js (v14 or higher) and an OpenAI API key.
Key features of gpt-image-1-mcp?
- Generates new images based on text prompts.
- Edits existing images using text prompts and optional masks.
- Automatically saves generated images to a specified directory.
- Provides detailed token usage and error handling.
Use cases of gpt-image-1-mcp?
- Creating unique digital art from descriptive prompts.
- Modifying existing images to add or change elements based on user input.
- Automating image generation for creative projects or applications.
FAQ from gpt-image-1-mcp?
-
What are the prerequisites for using gpt-image-1-mcp?
You need Node.js (v14 or higher) and an OpenAI API key with access to the gpt-image-1 model. -
Can I customize where the images are saved?
Yes! You can set a custom directory for saving generated images using theGPT_IMAGE_OUTPUT_DIRenvironment variable. -
What types of images can I generate?
You can generate images in various formats including PNG, JPEG, and WEBP.