Cover image
Try Now
2025-04-11

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

AI-Powered Image Generation Worker

Overview

This project implements a Cloudflare Worker that uses advanced AI models to provide enhanced image generation capabilities. The worker leverages the Model Completion Protocol (MCP) and exposes a sophisticated image generation API that combines two AI models to produce high-quality results.

Key Features

  • Intelligent Prompt Enhancement: Automatically improves user prompts using LLaMA 4 to optimize image generation results
  • Text-to-Image Generation: Creates images using the flux-1-schnell model from Black Forest Labs
  • Quality Control: Configurable diffusion steps parameter (1-100) for balancing quality and generation speed
  • Error Handling: Comprehensive validation and error reporting
  • Optimized Delivery: Proper image format handling with caching for performance

How It Works

  1. The user submits a text prompt describing the desired image
  2. The worker enhances the prompt using LLaMA 4 to add photorealistic details
  3. The enhanced prompt is sent to the flux-1-schnell model to generate the image
  4. The result is converted to proper binary format and returned with appropriate headers

Requirements

  • Cloudflare Workers account
  • AI binding configuration in your Cloudflare environment

Installation

  1. Clone this repository
  2. Install dependencies:
pnpm install

相关推荐

  • 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.

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

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 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

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

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • HiveNexus
  • Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

    Reviews

    4 (1)
    Avatar
    user_WLYi6Zmz
    2025-04-16

    I've been a fan of the hello-world-mcp-server by glyfo from the moment I discovered it. The ease of deployment and its robust features make it an essential tool for anyone looking to get started with MCP applications. The comprehensive documentation provided on the GitHub page ensures a smooth onboarding process. A great blend of simplicity and functionality, highly recommended for both beginners and seasoned developers!