Provides the asynchronous API framework for handling image generation and editing requests
Stores and retrieves generated and edited images using MinIO or other S3-compatible object storage services
Leverages OpenAI's GPT-Image-1 API to generate images from text prompts and edit existing images based on text instructions
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP GPT Image 1generate an image of a futuristic city at sunset with flying cars"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-OpenAI-ImageAPI
A Model Context Protocol (MCP) server for generating and editing images using OpenAI's GPT-Image-1 API. This project provides an API interface to generate or edit images based on text prompts and input images, with results stored and served via an S3-compatible object storage server.
Features
Generate images from text prompts using OpenAI's GPT-Image-1
Edit images based on prompts and input images
Asynchronous FastAPI-based MCP server
Automatic upload and retrieval of images from object storage
Related MCP server: Maya MCP
Requirements
Python 3.8+
OpenAI API key
Access to an S3-compatible object storage server (e.g., MinIO, AWS S3, or self-hosted)
Note: You must provide your own S3-compatible object storage server. This project include an very simple object storage backend.
The server exposes a tool gpt-image-generator for generating or editing images. See the code for API details.
Configuration
Set your OpenAI API key as an environment variable:
OPENAI_API_KEYConfigure your S3-compatible object storage credentials as required by your storage server implementation.
License
MIT
Disclaimer
This project requires an external or self-hosted S3-compatible object storage server. Please ensure you have access to such a service before using this project.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.