Creative Prompt Generator

A simple web application that generates creative prompts for various categories using OpenAI.

Features

  • Generate creative prompts for different categories:
    • Writing
    • Art
    • Photography
    • Coding
    • Business
    • Music
    • Cooking
    • Small-to-Big Progression
  • Clean, responsive UI using TailwindCSS
  • Powered by OpenAI's GPT models

How It Works

  1. Select a prompt category from the dropdown menu
  2. Click "Generate Prompt"
  3. The application will use OpenAI to create a unique, creative prompt based on your selection
  4. Use the generated prompt for your creative projects!

Special Categories

Small-to-Big Progression

This category generates prompts that follow a progression from small to big concepts. These prompts:

  • Start with something tiny, simple, or microscopic
  • Gradually expand to something larger, more complex, or more expansive
  • Include 3-4 clear steps in the progression
  • Can be applied to any creative domain (writing, art, projects, etc.)

Technical Details

  • 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

Setup

To use this application, you need to:

  1. Set up an OpenAI API key as an environment variable in Val Town
  2. Deploy the Val with HTTP trigger enabled

Environment Variables

  • OPENAI_API_KEY: Your OpenAI API key for generating prompts

Customization

You can easily extend this application by:

  • Adding more prompt categories in the PROMPT_CATEGORIES object
  • Adjusting the OpenAI parameters (temperature, max tokens, etc.)
  • Customizing the UI styling