Image Generation MCP Server
by manascb1344
This MCP server enables seamless generation of high-quality images using the Flux.1 Schnell model via Together AI. It provides a standardized interface to specify image generation parameters.
Last updated: N/A
What is Image Generation MCP Server?
This is a Model Context Protocol (MCP) server that allows you to generate images using the Flux.1 Schnell model through the Together AI platform. It provides a standardized way to send requests and receive image data.
How to use Image Generation MCP Server?
First, install the server using npm or npx. Then, configure your MCP server to include this server, providing your Together AI API key. Finally, send requests to the generate_image
tool with the desired prompt and optional parameters like width, height, and model.
Key features of Image Generation MCP Server
High-quality image generation
Customizable dimensions
Clear error handling
Easy integration with MCP clients
Optional image saving to disk
Use cases of Image Generation MCP Server
Generating images from text prompts
Creating AI-generated art
Prototyping image assets
Integrating image generation into applications
Automated content creation
FAQ from Image Generation MCP Server
What is the required parameter?
What is the required parameter?
The only required parameter is the prompt
, which is the text description of the image you want to generate.
What are the default values for optional parameters?
What are the default values for optional parameters?
The default values are: model: "black-forest-labs/FLUX.1-schnell-Free", width: 1024, height: 768, steps: 1, n: 1, response_format: "b64_json".
How do I save the generated image to disk?
How do I save the generated image to disk?
You can specify the image_path
parameter in the request with the desired path to save the image as a PNG file. Ensure the directory exists and is writable.
What is the difference between b64_json and url response formats?
What is the difference between b64_json and url response formats?
The b64_json
format returns the image data as a Base64 encoded string, while the url
format returns a URL to the generated image. Use URL format for larger images to avoid large responses.
What are the prerequisites for running this server?
What are the prerequisites for running this server?
You need Node.js >= 16 and a Together AI API key. You can obtain an API key by signing up at api.together.xyz and navigating to the API Keys settings.