1. Audio
AboAI
English
  • 中文
  • English
  • Home Page
  • AboAi-API
    • Model
      • Native OpenAI Format
      • Native Gemini Format
    • Chat
      • Native OpenAI Format
      • Native Gemini Format
      • Native Claude Format
      • Responses Request (openai)
    • Audio
      • Native OpenAI Format TTS
        POST
      • Native Gemini Format TTS
        POST
    • Images
      • Native OpenAI Format Image Generation
      • Native Gemini Format Image Generation
      • Native OpenAI Format Image Editing (JSON)
      • Native OpenAI Format Image Editing (Multipart)
    • Video
      • Seedance2.0 format
        • Create Video Generation Task
        • Query Video Generation Task Status
    • Vector
      • Embeddings
        • Create Embedding
    • Translation
      • Speech Translation
  • AI application
    • AboAI API Integration with Claude Code
    • AboAI API Integration with Cursor
    • AboAI API Integration with Codex-cli
    • AboAI API Integration with Codex Desktop
    • AboAI API Integration with Hermes Agent
  1. Audio

Native OpenAI Format TTS

POST
/v1/audio/speech
POST /v1/audio/speech

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/json

Examples

Responses

🟢200
audio/mpeg
🟠400
🟠404
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location 'https://api.aboai.ai/v1/audio/speech' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "tts",
    "input": "The quick brown fox jumped over the lazy dog",
    "voice": "alloy",
    "speed": 2
}'
Response Response Example
200 - Success example
{
  "audio_data" : ""
}
Modified at 2026-06-16 04:07:03
Previous
Responses Request (openai)
Next
Native Gemini Format TTS
Built with