A farm & agricultural educational image prompt generator powered by Meta Llama 4 (via Groq — completely free).
- Generate detailed AI image prompts for farm topics
- 6 aspect ratio options (1:1, 16:9, 9:16, 4:3, 3:2, 2:3)
- Optimized for Meta AI, Midjourney, and DALL-E
- Animated character-by-character prompt reveal
- "Use in Meta AI" one-click button
- Recent prompts history
- Real Next.js backend API route
- Go to console.groq.com
- Sign up for a free account
- Click "API Keys" in the left sidebar
- Click "Create API Key"
- Copy your key — it starts with
gsk_...
Why Groq? Groq runs Meta's Llama 4 models for free. It's officially supported by Meta.
cd farm-prompt-gen
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/farm-prompt-gen.git
git push -u origin main- Go to vercel.com and sign in
- Click "Add New Project"
- Import your GitHub repository
- Click "Environment Variables"
- Add:
- Name:
GROQ_API_KEY - Value:
gsk_your_key_here
- Name:
- Click "Deploy"
That's it! Your site will be live in ~2 minutes. 🎉
# 1. Install dependencies
npm install
# 2. Add your API key
cp .env.example .env.local
# Edit .env.local and add your GROQ_API_KEY
# 3. Start dev server
npm run dev
# 4. Open http://localhost:3000| Variable | Required | Description |
|---|---|---|
GROQ_API_KEY |
✅ Yes | Your free Groq API key from console.groq.com |
farm-prompt-gen/
├── pages/
│ ├── api/
│ │ └── generate.js ← Real backend API (calls Meta Llama via Groq)
│ ├── _app.js
│ └── index.js ← Main UI page
├── styles/
│ └── globals.css ← All styles + animations
├── .env.example
├── vercel.json
└── package.json
- Enter a farm topic (e.g., "rice paddy irrigation")
- Choose a visual style, mood, season, and audience level
- Select your aspect ratio (for Meta AI: use 1:1 or 9:16)
- Click Generate Farm Prompt
- Watch the prompt animate character by character
- Click "✦ Use in Meta AI" to open it directly in meta.ai
Paste the generated prompt into meta.ai and type:
Imagine: [your generated prompt]
- Primary:
meta-llama/llama-4-scout-17b-16e-instruct(Meta Llama 4 Scout) - Fallback:
llama-3.3-70b-versatile(Llama 3.3 70B)
Both are completely free on Groq's API.