Skip to main content
Higgs TTS 3 speaks the OpenAI POST /v1/audio/speech request shape. Moving an existing OpenAI TTS integration takes three changes: the base URL, the API key, and the model name. The same three settings fill in the “OpenAI-compatible TTS” option of any app or plugin.

Boson preset

For an app that stores presets:
A new account must claim its free trial credit before the first call; until then the key returns 429 insufficient_quota.

Use the OpenAI SDK

Change the base URL and the key. The audio.speech.create call is unchanged.

What maps and what differs

Fields OpenAI does not have, sent in the same JSON body. With the OpenAI SDKs, pass them through extra_body in Python or as extra properties in TypeScript.
Streaming with the Python SDK needs the streaming response wrapper plus stream in extra_body:

Errors an OpenAI client does not expect

The error body has the OpenAI shape, so existing handlers run. Two cases differ:
  • 429 is not always a rate limit. error.type is insufficient_quota when the account has no credit, and retrying cannot help. Only rate_limit_error is transient. See Common error types.
  • 400 invalid_field_value names a field you may not have set on purpose: a two-letter language, a tag that is not on the Tags list, or a voice name carried over from OpenAI. Show error.message to the user.

Checklist for a Boson preset

  1. Base URL https://api.boson.ai/v1, Bearer key, model higgs-tts-3.
  2. voice as free text, defaulting to default, so users can paste a voice_<id>. For per-character voices, create one custom voice per character once and cache the IDs rather than sending ref_audio on every request.
  3. Do not send language unless the user set it explicitly, and then as ISO 639-3.
  4. response_format wav or mp3; pcm plus stream: true for streaming.
  5. Drop or hide speed and instructions. If you offer a delivery dropdown, build it from the Tags page and send the tag in input.
  6. Surface error.message on 400 and 429.
Shipping a Boson preset in your app? Tell us and we will link it from here.