/v1/audio/speech - Text-to-Speech
/health - Health check
curl http://y4shg-api.hf.space/v1/audio/speech \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini-tts",
"input": "Hello world!",
"voice": "alloy"
}' \
--output speech.mp3
alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer, verse, marin, cedar
Powered by Pollinations.ai