curl --request POST \ --url https://api.example.com/v1/audio/speech
OpenAI’s official format for the text to audio API.
Copy
curl -X POST "https://gptproto.com/v1/audio/speech" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o-mini-tts", "input": "The quick brown fox jumped over the lazy dog.", "voice": "alloy"}'