Flexible parameters
Configure 7 documented parameters, including background_music, custom_mode, prompt, script, tone.
Spoken audio from a scene or script, with optional tone and background music
curl -X POST https://runapi.ai/api/v1/suno/text_to_speech \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno-speech",
"custom_mode": false,
"prompt": "A short morning news introduction."
}'
import { SunoClient } from "@runapi.ai/suno";
const client = new SunoClient();
const result = await client.textToSpeech.run({
model: "suno-speech",
custom_mode: false,
prompt: "A short morning news introduction.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/suno/text_to_speech",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"suno-speech","custom_mode":false,"prompt":"A short morning news introduction."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/suno/text_to_speech");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'suno-speech',
'custom_mode' => false,
'prompt' => 'A short morning news introduction.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToSpeech().run({"model":"suno-speech","custom_mode":false,"prompt":"A short morning news introduction."});
task.waitForResult();
require "runapi/suno"
client = RunApi::Suno::Client.new
result = client.text_to_speech.run(
model: "suno-speech",
custom_mode: false,
prompt: "A short morning news introduction."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToSpeech.Run({"model":"suno-speech","custom_mode":false,"prompt":"A short morning news introduction."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model suno-speech \
--endpoint text_to_speech \
--wait
10 versions available
Pick any model and generate in seconds.
No models are available right now.
| Provider | Suno |
| Model ID | suno-speech |
| Modality | Audio & Music |
| Task types | Asynchronous |
| API endpoint | /api/v1/suno/text_to_speech |
| Billing unit | call |
| Input parameters | background_music, callback_url, custom_mode, model, prompt, script, tone, variety, vocal_gender |
| Catalog status | Operational |
Sign up for free and create an API key for suno-speech from the dashboard.
POST to /api/v1/suno/text_to_speech with the suno-speech model slug and your parameters.
Poll the task or follow the callback to retrieve the completed suno-speech result.
Configure 7 documented parameters, including background_music, custom_mode, prompt, script, tone.
Exposes 1 public endpoint(s): text_to_speech.
Asynchronous tasks accept a callback URL for completion notifications.
Metered by call with no subscription requirement.
toneTone, rhythm, emotion, and setting, trimmed before validation. Only allowed when custom_mode is true.
promptScene description, trimmed before validation. Required when custom_mode is false; forbidden when true.
scriptText to speak, trimmed before validation. Required when custom_mode is true; forbidden when false.
varietyStyle variety from exact to highly varied. Only allowed when custom_mode is true. (0, 1, 2, 3, 4)
custom_modeRequired mode switch. False creates a script from prompt; true speaks the supplied script. (true, false)
callback_urlWebhook URL for async notifications.
vocal_genderVocal gender. Only allowed when custom_mode is true. (male, female)
background_musicWhether to add background music. Only allowed when custom_mode is true. (true, false)
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