4o-image
Generate and edit images using text prompts with the 4o-image API.
4o-image MCP Server
An MCP server implementation that integrates with 4o-image API, enabling LLMs and other AI systems to generate and edit images through a standardized protocol. Create high-quality art, 3D characters, and custom images using simple text prompts.
Features
- Text-to-Image Generation: Create images from text descriptions with AI
- Image Editing: Transform existing images using text prompts
- Real-time Progress Updates: Get feedback on generation status
- Browser Integration: Automatically open generated images in your default browser
Tools
- generateImage
- Generate images based on text prompts with optional image editing
- Inputs:
prompt(string, required): Text description of the desired imageimageBase64(string, optional): Base64-encoded image for editing or style transfer
Configuration
Getting an API Key
- Register for an account at 4o-image.app
- Obtain your API key from the user dashboard
- Set the API key as an environment variable when running the server
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"4o-image": {
"command": "npx",
"args": [
"-y",
"4oimage-mcp"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Example Usage
Here's an example of using this MCP server with Claude:
Generate an image of a dog running on the beach at sunset
Claude will use the MCP server to generate the image, which will automatically open in your default browser. You'll also get a direct link to the image in Claude's response.
For image editing, you can include a base image and prompt Claude to modify it:
Edit this image to make the sky more dramatic with storm clouds
License
This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Sailor
Generate and render Mermaid diagrams as images using LLMs.
Paraview_MCP
An autonomous agent that integrates large language models with ParaView for creating and manipulating scientific visualizations using natural language and visual inputs.
Monad MCP Server
Interact with the Monad testnet, query blockchain data, and engage with the CoinflipGame smart contract.
SeedDream 3.0 Replicate
Generate images using Bytedance's SeedDream 3.0 model via the Replicate platform.
Lerian MCP Server
Provides educational content, model information, and read-only API interactions for Lerian developers.
Tolgee
Manage your app’s translations directly from your AI coding assistant. Search keys, create translations, trigger machine translation. All without leaving your editor.
Chess FEN MCP Server
Validate and visualize chess positions using FEN notation.
Agent Skill Loader
MCP server to dynamically load Claude Code skills into AI agents
.NET Types Explorer
Provides detailed type information from .NET projects including assembly exploration, type reflection, and NuGet integration for AI coding agents
Agentic Tools MCP Companion
A VS Code extension with a GUI for the agentic-tools-mcp server, enhancing task and memory management.