You're getting a 429 error: "You exceeded your current quota, please check your plan and billing details."
- Go to OpenAI Platform
- Sign in to your account
- Navigate to "Billing" in the left sidebar
- Click "Add payment method" or "Add credits"
- Add funds to your account
- The application will work normally once credits are added
The application now includes a demo mode that works without API calls:
- Try prompts like:
- "Add a div with header"
- "Create a button"
- "Add a paragraph"
- Create a new OpenAI account
- Get a new API key
- Replace the key in
public/key.txt
If you want to use a cheaper model, you can modify the code to use:
gpt-3.5-turbo(cheaper but less capable)gpt-4o(more expensive but more capable)
The application now shows status indicators:
- 🟢 Green: API working normally
- 🟠 Orange: Demo mode (quota exceeded)
- 🔴 Red: API error (check key or billing)
- Try the demo mode first to verify the application works
- Add credits to your OpenAI account
- Test with real API calls
- GPT-4o-mini: ~$0.00015 per 1K input tokens
- Typical prompt: ~$0.001-0.01 per request
- 100 requests ≈ $0.10-1.00