Cover image
generado de imagen replicada
Public

generado de imagen replicada

Try Now
2025-02-24

Flux Image Generation MCP Server

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Flux Image Generation Server

这是一个简单的HTTP服务器,用于调用Replicate的Flux Schnell模型生成图片。

安装

npm install

配置

在运行服务器之前,你需要设置Replicate API token作为环境变量:

export REPLICATE_API_TOKEN=your_token_here

运行服务器

编译并启动服务器:

npm run build
npm start

服务器将在端口3000上运行。

API使用

服务器提供了一个简单的HTTP API端点来生成图片:

生成图片

请求

POST http://localhost:3000/generate
Content-Type: application/json

{
    "prompt": "your image description here"
}

示例

curl -X POST http://localhost:3000/generate \
  -H "Content-Type: application/json" \
  -d '{"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"}'

响应

成功响应:

{
    "success": true,
    "data": {
        // Replicate API 返回的数据
    }
}

错误响应:

{
    "success": false,
    "error": "错误信息"
}

关闭服务器

Ctrl+C 可以优雅地关闭服务器。

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    5 (1)
    Avatar
    user_ZLUh2CsE
    2025-04-16

    I am thoroughly impressed with replicate-image-generate by caok. It's a phenomenal tool for generating high-quality images effortlessly. The interface is intuitive, making it easy for both beginners and professionals alike. The results are consistently stunning and save significant time in creative projects. Highly recommend checking it out!