cURL
curl --request POST \ --url https://gptproto.com/v1/audio/speech \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "model": "<string>", "input": "<string>", "voice": "<string>" }'
{ "error": { "message": "Invalid signature", "type": "401" } }
Text to Audio
Bearer YOUR_API_KEY
curl -X POST "https://gptproto.com/v1/audio/speech" \ -H "Authorization: Bearer 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" }'
{ "status": "success" }