API Access
Create a secure API key to authenticate your requests to the MagmaTTS engine.
Generate API Key
API Reference
Integrate MagmaTTS directly into your applications.
GET
/v1/voices
Retrieve a complete list of supported languages and available voices. No authentication required.
curl -X GET https://magma-tts.storycraftpro.me/v1/voices
POST
/v1/tts
Generate streaming-ready audio from text. Requires API key authentication in headers.
curl -X POST https://magma-tts.storycraftpro.me/v1/tts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello world, this is a test.",
"language": "en-US",
"voice": "Mia"
}' --output audio.wav
Parameters
text(string, required) - The text to synthesize.language(string, optional) - Default 'en-US'. e.g., 'de-DE', 'hi-IN'.voice(string, optional) - Natively mapped voice name.