https://github.com/sudor2spr/ai-image-generater-api-cloudflare-workers
AI Image Generator API (Cloudflare Workers)
https://github.com/sudor2spr/ai-image-generater-api-cloudflare-workers
ai-api ai-image-generator-api cloudflare-workers
Last synced: 4 days ago
JSON representation
AI Image Generator API (Cloudflare Workers)
- Host: GitHub
- URL: https://github.com/sudor2spr/ai-image-generater-api-cloudflare-workers
- Owner: SudoR2spr
- License: mit
- Created: 2025-02-23T10:07:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-23T11:13:46.000Z (over 1 year ago)
- Last Synced: 2025-02-23T11:20:50.846Z (over 1 year ago)
- Topics: ai-api, ai-image-generator-api, cloudflare-workers
- Language: JavaScript
- Homepage: https://t.me/Opleech_WD
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 🚀 Deploy to Cloudflare Workers
[](https://deploy.workers.cloudflare.com/?url=https://github.com/SudoR2spr/ai-image-generater-api-cloudflare-workers)
Click the button above to deploy this project directly to Cloudflare Workers!
## 📖 Deploy Guide
[](https://filestream-code-generater.pages.dev/ai-api-guide)
# 🚀 AI Image Generator API (Cloudflare Workers)
We have developed this powerful **AI Image Generator API**, hosted on **Cloudflare Workers**, leveraging **Hugging Face** models for seamless image creation.
With this API, you can generate high-quality images using a variety of **Stable Diffusion** and **AI Models**.
---
## 🏷 Models Used
| 🔥 Model Name | 📌 Model Path |
|----------------------|--------------------------------------------|
| **Realistic Vision** | `SG161222/Realistic_Vision_V5.1_noVAE` |
| **DreamShaper** | `Lykon/DreamShaper-v7` |
| **SDXL** | `stabilityai/stable-diffusion-xl-base-1.0` |
| **Deliberate** | `XpucT/Deliberate` |
| **Anything V5** | `stabilityai/stable-diffusion-2-1` |
| **Protogen** | `darkstorm2150/Protogen_x5.8` |
| **Flux** | `black-forest-labs/FLUX.1-dev` |
---
# 🚀 AI Image Generator - Deploy Guide
This repository provides an AI Image Generator API powered by **Cloudflare Workers** and **Hugging Face Models**. Follow the steps below to deploy it using **GitHub Actions**.
---
## 📌 Deployment via GitHub Actions
| Step | Description |
|------|------------|
| **✅ 1. Add GitHub Secrets** | Go to your repository **Settings → Secrets and Variables → Actions** and add the following secrets: |
| **🔹 CLOUDFLARE_API_TOKEN** | Your Cloudflare API Token (Required for deployment) |
| **🔹 HUGGINGFACE_TOKEN** | Your Hugging Face API Key (Required for generating images) |
---
## 🚀 How to Deploy
| Action | Steps |
|--------|-------|
| **Automatic Deployment** | Deployment happens **automatically** when you push changes to the **master** branch. |
| **Manual Deployment** | 1️⃣ Go to **GitHub Actions** → Select **Deploy to Cloudflare Workers** workflow
2️⃣ Click **Run Workflow** |
✅ **Your Worker will be live on Cloudflare!** 🎉
---
## 📌 Need Help?
| Command | Description |
|---------|------------|
| `wrangler tail` | Check Cloudflare Worker logs |
| [Cloudflare Workers Docs](https://developers.cloudflare.com/workers/) | Official Cloudflare Workers documentation |
## 🎯 How to Use
This API utilizes **Hugging Face Inference API** to generate AI-powered images.
By passing **URL Parameters**, you can specify:
✅ **Prompt** – The text description for the image
✅ **Model Name** – Select from the available AI models
✅ **Image Size** – Define the resolution of the generated image
🚀 **Simple & Fast – Ready to integrate into your projects!**
---
## 🔗 Official Hugging Face API
[](https://api-inference.huggingface.co/)
📌 **Explore the API in detail at the official Hugging Face platform.**
---
## 👨💻 Developed By
**WOODcraft** – [Telegram](https://t.me/Farooq_is_king)
🔥 **Join for Updates & Support!**