Skip to content

content-gen

Fresh

Source: BIBLE.md (Phase 12 Phase 2, content-gen 4 routes)

LLM-powered content for posts, reviews, comments. Two backends: Gemini and Ollama.

6 content types

  • post: social media post body
  • comment: comment on a post
  • review: business review
  • qa-answer: Q&A answer
  • article-section: SEO article section
  • bio: profile bio

Routes (4)

MethodRouteWhat
POST/content-gen/generateGenerate content
POST/content-gen/batchBatch generate
GET/content-gen/templatesList prompt templates
GET/content-gen/statsUsage stats per backend

Example payload

bash
curl -X POST http://localhost:4700/content-gen/generate \
  -H "Content-Type: application/json" \
  -d '{
    "type": "review",
    "brand": "Journey Junk Removal",
    "city": "Dallas",
    "tone": "casual",
    "rating": 5,
    "backend": "gemini"
  }'

Backends

BackendCostSetup
gemini$0 (free tier)GOOGLE_GEMINI_API_KEY
ollama$0 (local)Pull a model, set OLLAMA_URL