POST /api/scriptforge/generate
Auth: X-API-Key: sf_... (or Bearer JWT)
Body JSON:
topic string what to narrate required (or script)
script string skip LLM, narrate as-is optional
audience string target audience default "general"
length enum short medium long xlong default "medium"
tone enum warm formal excited ... default "warm"
voice string any of 322 voices default Andrew
rate string -30%..+30% default "-8%"
Response:
200 audio/mpeg binary
402 Pro required (renewal needed)
429 Monthly limit reached (5h)
400 Validation error
Response headers:
X-Audio-Seconds est. mp3 duration
X-Script-Words total words generated
X-Usage-Remaining-Sec seconds left this month
X-Voice voice used
POST /api/scriptforge/tts ← direct text-to-speech (no AI script)
Body JSON:
text string exact words to speak required (max 8000)
voice string any of 322 voices default Andrew
rate string -30%..+30% default "+0%"
pitch string -50Hz..+50Hz default "+0Hz"
volume string -50%..+50% default "+0%"
Returns: 200 audio/mpeg + X-Audio-Seconds, X-Usage-Remaining-Sec, X-Voice
POST /api/scriptforge/studio ← multi-voice, stitched into one file
Body JSON:
segments array [{text, voice, rate?, pitch?, volume?}] required (max 40)
gapMs number silence between lines, 0-3000 default 350
Returns: 200 audio/mpeg + X-Segments, X-Audio-Seconds
Other endpoints:
GET /api/scriptforge/status Pro status + free quota
GET /api/scriptforge/usage Current month usage
POST /api/scriptforge/api-key/create Create new key (Pro)
GET /api/scriptforge/api-key List keys
DELETE /api/scriptforge/api-key/:id Revoke a key
POST /api/scriptforge/subscribe Start Razorpay checkout
Your new API key
Copy and store this key somewhere safe. You won't be able to see it again.
⚠️ Treat this like a password. Anyone with this key can use your Pro quota.