The AI prompt expert rewrites users' simple prompts into high-quality prompts in the structures of CO-STAR, CRISPE, QStar (Q*), the variational method, Meta Prompting, Chain of Thought (CoT), Microsoft's optimization method and RISE. Moreover, it allows for online modification and testing. It also provides optimization for prompts used for generating images from text and can convert them into high-quality English prompts with just one click.

The open-source version of AI Prompt Expert from 302.AI. You can directly log in to 302.AI to use the online version with zero code and zero configuration. Or modify this project according to your needs, input 302.AI's API KEY, and deploy it yourself.
Enter a simple description, and the AI will generate high-quality prompts. There are multiple structures available for selection. It supports online modification and testing of prompts.

It supports 12 different prompt optimization solutions and provides the ability to customize the optimization framework.
Through AI Prompt Expert! - Transform your ideas into perfect AI instructions! 🎉💻 Let's explore the new world of AI-driven code together! 🌟🚀
git clone https://github.com/302ai/302_prompt_generatoryarn installyarn dev# Build image
make build
# Start container
make run
# View logs
make logs
# Stop container
make stop
# Clean up
make clean
# View all commands
make help
cp .env.example .env.env file, configure your API KEYdocker-compose up -d# Build image
docker build -t 302-prompt-generator:latest .
# Run container
docker run -d -p 3000:80 --name 302-prompt-generator 302-prompt-generator:latest
| Variable | Description | Default |
|---|---|---|
| VITE_APP_API_KEY | 302 AI API Key | - |
| VITE_APP_SHOW_BRAND | Show 302 AI brand | true |
| VITE_APP_MODEL_NAME | AI model name | gpt-4o |
| VITE_APP_REGION | Region (0: China, 1: Global) | 0 |
| VITE_APP_LOCALE | Language (zh/en/ja) | en |
| VITE_APP_API_URL | API URL | https://api.302.ai |
| PORT | Port number | 3000 |