Generates an image based on a text prompt using the Flux Schnell model
Generates an SVG vector graphic based on a text prompt using the Recraft V3 SVG model
Generates multiple images at once with variations on the same prompt
Creates a variation of an existing image based on a new prompt
Replicate Flux is an advanced image generation tool that leverages Black Forest Labs' Flux Schnell model for raster images and Recraft's V3 SVG model for vector graphics. It enables AI assistants to create high-quality visuals that match specific coding vibes and aesthetic styles, streamlining the visual asset creation process for developers.
Replicate Flux is a powerful image generation tool that connects to Replicate's API to generate both raster images and vector graphics. It uses Black Forest Labs' Flux Schnell model for creating detailed raster images and Recraft's V3 SVG model for producing clean, scalable vector graphics.
To use Replicate Flux, you'll need a Replicate API token. Here's how to get started:
You can run Replicate Flux directly using NPX:
env REPLICATE_API_TOKEN=your_token_here npx -y replicate-flux-mcp
Option 1: Using mcp.json
Create or edit the .cursor/mcp.json
file in your project directory:
{
"mcpServers": {
"replicate-flux-mcp": {
"command": "env REPLICATE_API_TOKEN=YOUR_TOKEN npx",
"args": ["-y", "replicate-flux-mcp"]
}
}
}
Option 2: Manual Mode
env REPLICATE_API_TOKEN=YOUR_TOKEN npx -y replicate-flux-mcp
Create or edit the mcp.json
file in your configuration directory:
{
"mcpServers": {
"replicate-flux-mcp": {
"command": "npx",
"args": ["-y", "replicate-flux-mcp"],
"env": {
"REPLICATE_API_TOKEN": "YOUR_TOKEN"
}
}
}
}
If you prefer not to set up your own server, you can use one of these hosted services:
Once integrated, you can ask your AI assistant to generate images using natural language:
You can customize your requests with parameters like dimensions, style preferences, and more detailed descriptions for better results.
If you encounter issues:
For persistent problems, check the GitHub repository for known issues or to report new ones.