Feiyuyu0503/free-dall-e-proxy
소개
Free-Dall-E-Proxy, an open-source repository that serves as a proxy for API-based interactions with OpenAI's DALL·E 3 image generation model provided by coze.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFree DALL·E Proxy

English · 简体中文 · Changelog
Introduction
free-dall-e-proxy is a project that leverages the power of bots supported by the coze (currently Telegram and Discord) to provide free access to OpenAI's DALL·E 3 image generation capabilities. This proxy service offers an OpenAI-standard API endpoint, allowing developers to easily integrate DALL·E 3 into their applications.
Prerequisites
Before you can start using free-dall-e-proxy, you need to configure agents on the Coze platform. These agents act as intermediaries, facilitating the communication between your application and the DALL·E 3 API through the supported bots. More details refer to how_to_create_coze_agent.
Deployment
Docker Deployment
For ease of deployment, free-dall-e-proxy is containerized using Docker. To deploy the proxy using Docker, follow these steps:
- Clone the repository:
git clone https://github.com/Feiyuyu0503/free-dall-e-proxy.git - Navigate to the cloned directory:
cd free-dall-e-proxy - Configure your related credentials in the
data/.envfile according to the prompt, now the docs is here:cp data/.env.example data/.env vim data/.env - Pull the published image:
# Pull my published image. Alternatively, you can build the Docker image yourself. docker pull feiyuyu/free-dall-e-proxy - Run the Docker container:
# if you set `Telegram` to True in the data/.env, it might require to login with your phone after running following commands. # after logining, you can press 'ctrl+p+q' to detach the container without stoping the container. # run: docker run -it -p 8000:8000 -v $PWD/data:/app/data --name free-dall-e-proxy feiyuyu/free-dall-e-proxy # if you only set `DISCORD` to True in the data/.env, you can run the following command instead: docker run -it -d -p 8000:8000 -v $PWD/data:/app/data --name free-dall-e-proxy feiyuyu/free-dall-e-proxy
The proxy service will now be running on port 8000 of your host machine.
Python Execution
If you prefer to run the proxy service directly with Python, you can follow these steps: (Ensure you have Python 3.8+ installed on your machine.)
- Clone the repository:
git clone https://github.com/Feiyuyu0503/free-dall-e-proxy.git - Navigate to the cloned directory:
cd free-dall-e-proxy - Install the necessary Python dependencies:
pip install -r requirements.txt - Configure your related credentials in the
data/.envfile according to the prompt, now the docs is here:cp data/.env.example data/.env vim data/.env - Run the proxy server (python or uvicorn):
# use python python main.py # or use uvicorn uvicorn main:api.app
The proxy service will now be accessible on the configured port(default:8000).
Usage
To generate images with DALL·E 3, send a POST request to the proxy's API endpoint with your image generation parameters. The proxy will handle the request, communicate with the Coze platform supported bots(like Telegram,Discord...), and return the generated image.
- Curl
# You should replace the endpoint with your ip/domain:port # Use this command to send a request to the DALL·E image generation API. curl https://dalle.feiyuyu.net/v1/images/generations \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $KEY" \ -d '{ "model": "dall-e-3", "prompt": "A cute cat", "n": 1, "size": "1024x1024" }' # The following is the response: { "data":[ { "url":"https://p16-flow-sign-va.ciciai.com/ocean-cloud-tos-us/1eff818cf88645bfa838109a0bc08910.png~tplv-6bxrjdptv7-image.png?rk3s=18ea6f23&x-expires=1737554903&x-signature=axs1WxYA0QK2%2BI3zISnequao3UY%3D", "revised_prompt":"A cute cat" } ] }
Support
For any questions or issues regarding the deployment or usage of free-dall-e-proxy, please feel free to open an issue in the GitHub repository.
Disclaimer
This project is open-source and intended solely for educational purposes. It must not be used for any illegal activities.
관련 프로젝트 살펴보기
불러오는 중…
