Skip to main content
Synthesize text into natural speech, fully compatible with OpenAI’s /v1/audio/speech. Any OpenAI SDK works by pointing base_url at https://api.acedata.cloud and using your AceData token. The endpoint returns the audio bytes synchronously.
  • Endpoint: POST https://api.acedata.cloud/v1/audio/speech (alias POST /openai/audio/speech)
  • Auth: header Authorization: Bearer {token}
  • Billing: by request text size; ~85% of OpenAI’s official price (see table).

Request parameters

Example

The response is the audio file itself (Content-Type: audio/mpeg) — write it to speech.mp3 and play. With the official OpenAI Python SDK:

Pricing

Billed by request text byte count; the official_price field shows OpenAI’s official price for comparison.

Error codes