tts-1
and tts-1-hd
models from OpenAI.
Model | Description |
---|---|
tts-1 | OpenAI latest text to speech model, optimized for speed. |
tts-1-hd | OpenAI latest text to speech model, optimized for quality. |
Integration steps:
1
Get your OpenAI API key
Go to OpenAI API plaform to get your OpenAI API key.
2
Add OpenAI's API key in Providers
You should add your OpenAI’s API key on Keywords AI credentials page.

3
Call your text-to-speech model
OpenAI parameters
The model to use. It should be one of
tts-1
or tts-1-hd
.The text to generate audio for. The maximum length is 4096 characters.
The voice to use when generating the audio. Supported voices are
alloy
, echo
, fable
, onyx
, nova
, and shimmer
. Previews of the voices are available in the OpenAI’s Text to speech guide.The format to audio in. Supported formats are
mp3
, opus
, aac
, flac
, wav
, and pcm
.The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.
Keywords AI parameters
See how to make a standard Keywords AI API call in the Quick Start guide.Generation parameters
You can pass in your customer’s credentials for supported providers and use their credits when our proxy is calling models from those providers.
See details here
See details here
Example
Example
When set to true, only the request and performance
metrics will be recorded, input
and output messages will be omitted from the log.
Observability parameters
You can add any key-value pair to this metadata field for your reference. Check the details of metadata here.Contact team@keywordsai.co if you need extra parameter support for your use case.
Example
Example
Use this as a tag to identify the user associated with the API call. See the details of customer identifier here.
Example
Example
This is the email address of the user associated with the API call. You can add your corresponding user’s email address to the request.You could also edit customer’s emails on the platform. Check the details of user editing here.
Example
Example
See logs as a conversation log thread. Pass all logs with the same
thread_identifier
to see them in the same thread.Example
Example
Adding this returns the summarization of the response in the response body. If streaming is on, the metrics will be streamed as the last chunk.
Properties
Properties