Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

✂️ ContentSplit — AI Content Repurposer API

Turn one blog post into Twitter threads, LinkedIn posts, NOSTR notes, email newsletters, video scripts, and summaries with a single API call.

🚀 Quick Start

pip install fastapi uvicorn httpx
python app.py
# → http://localhost:8080# → http://localhost:8080/docs (Swagger UI)

📡 API

Sign Up (Free)

curl -X POST http://localhost:8080/api/signup \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'

Repurpose Content

curl -X POST http://localhost:8080/api/repurpose \
-H "X-API-Key: cs_your_key" \
-H "Content-Type: application/json" \
-d '{ "content": "Your long blog post here...", "targets": ["twitter_thread", "linkedin", "email_newsletter"], "tone": "professional" }'

Check Usage

curl http://localhost:8080/api/usage -H "X-API-Key: cs_your_key"

🎯 Platforms

PlatformOutput
twitter_threadNumbered thread (2-20 tweets)
linkedinProfessional post with engagement hook
nostrConcise note with hashtags
email_newsletterSubject + intro + takeaways + CTA
video_script60s script with B-roll suggestions
summary2-3 sentence summary

💰 Pricing

PlanPriceRequests/moPlatforms
Free$0503
Starter$9500All 6
Pro$295,000All 6
Enterprise$9950,000All 6

🔧 AI Backends

Set one of these env vars for AI-powered generation:

  • OPENAI_API_KEY — Uses GPT-4o-mini
  • ANTHROPIC_API_KEY — Uses Claude 3 Haiku

Without either, falls back to rule-based extraction (still useful, just less polished).

🐳 Docker

docker build -t contentsplit .
docker run -p 8080:8080 -e OPENAI_API_KEY=sk-... contentsplit

License

MIT

About

AI-powered content repurposer API — blog to social media in one API call

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages