Flexible parameters
Configure 1 documented parameters, including text.
Low-latency speech synthesis for interactive applications
curl -X POST https://runapi.ai/api/v1/openai_tts/text_to_speech \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1",
"text": "Convert this product onboarding script into clear, natural speech for an in-app walkthrough."
}'
import { OpenaiTtsClient } from "@runapi.ai/openai-tts";
const client = new OpenaiTtsClient();
const result = await client.textToSpeech.run({
model: "tts-1",
text: "Convert this product onboarding script into clear, natural speech for an in-app walkthrough.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/openai_tts/text_to_speech",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"tts-1","text":"Convert this product onboarding script into clear, natural speech for an in-app walkthrough."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/openai_tts/text_to_speech");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'tts-1',
'text' => 'Convert this product onboarding script into clear, natural speech for an in-app walkthrough.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToSpeech().run({"model":"tts-1","text":"Convert this product onboarding script into clear, natural speech for an in-app walkthrough."});
task.waitForResult();
require "runapi/openai_tts"
client = RunApi::OpenaiTts::Client.new
result = client.text_to_speech.run(
model: "tts-1",
text: "Convert this product onboarding script into clear, natural speech for an in-app walkthrough."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToSpeech.Run({"model":"tts-1","text":"Convert this product onboarding script into clear, natural speech for an in-app walkthrough."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model tts-1 \
--endpoint text_to_speech \
--wait
2 versions available
Pick any model and generate in seconds.
| Provider | OpenAI |
| Model ID | tts-1 |
| Modality | Audio & Music |
| Task types | Synchronous |
| API endpoint | /api/v1/openai_tts/text_to_speech |
| Billing unit | 1K UTF-8 bytes |
| Input parameters | model, text |
| Catalog status | Operational |
Sign up for free and create an API key for tts-1 from the dashboard.
POST to /api/v1/openai_tts/text_to_speech with the tts-1 model slug and your parameters.
Read the completed tts-1 response directly from the endpoint.
Configure 1 documented parameters, including text.
Exposes 1 public endpoint(s): text_to_speech.
Metered by 1K UTF-8 bytes with no subscription requirement.
textNo description available.
Generate royalty-free background music matched to episode mood without licensing fees.
Generate adaptive ambient soundscapes and effects for procedurally generated levels.
Generate custom voiceovers and sound effects for client spots without a recording studio.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us