sa_pro3
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v4View latest version
A simple web application that generates creative prompts for various categories using OpenAI.
- Generate creative prompts for different categories:
- Writing
- Art
- Photography
- Coding
- Business
- Music
- Cooking
- Clean, responsive UI using TailwindCSS
- Powered by OpenAI's GPT models
- Select a prompt category from the dropdown menu
- Click "Generate Prompt"
- The application will use OpenAI to create a unique, creative prompt based on your selection
- Use the generated prompt for your creative projects!
- Built as an HTTP-triggered Val in Val Town
- Uses OpenAI's API to generate prompts
- Frontend styled with TailwindCSS
- Handles both GET and POST requests in a single endpoint
- Includes error handling for API failures
To use this application, you need to:
- Set up an OpenAI API key as an environment variable in Val Town
- Deploy the Val with HTTP trigger enabled
OPENAI_API_KEY: Your OpenAI API key for generating prompts
You can easily extend this application by:
- Adding more prompt categories in the
PROMPT_CATEGORIESobject - Adjusting the OpenAI parameters (temperature, max tokens, etc.)
- Customizing the UI styling