Generate speech

POST /v1/audio/speech
application/json

Body Required

  • model string Required
  • input string Required
  • voice string Required

    Values are alloy, echo, fable, onyx, nova, or shimmer.

  • Values are mp3, opus, aac, or flac. Default value is mp3.

  • speed number

    Minimum value is 0.25, maximum value is 4.0. Default value is 1.0.

Responses

POST /v1/audio/speech
curl \
 -X POST https://api.rimunace.xyz/v1/audio/speech \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"model":"string","input":"string","voice":"alloy","response_format":"mp3","speed":1.0}'
Request examples
{
  "model": "string",
  "input": "string",
  "voice": "alloy",
  "response_format": "mp3",
  "speed": 1.0
}
Response examples (200)
{
  "object": "string",
  "model": "string",
  "created": 42.0,
  "audio_url": "https://example.com",
  "remaining_credits": 42.0
}