Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Turn text into audio through the API.
curl --fail-with-body https://www.ninjachat.ai/api/v1/audio/speech \ -H "Authorization: Bearer $NINJACHAT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"tts-1-hd","input":"Welcome to your next idea.","voice":"nova","response_format":"mp3"}' \ --output narration.mp3
X-Request-ID
X-NinjaChat-Cost-USD
model
tts-1
tts-1-hd
input
voice
alloy
ash
coral
echo
fable
onyx
nova
sage
shimmer
response_format
mp3
opus
aac
flac
wav
pcm
speed