Guide
Seed Audio 1.0 Integration Guide: From Text to Playable Speech
Submit text as an asynchronous task, query the result, then adjust voice and reference materials item by item
On this page
First, validate with a short passage
Seed Audio 1.0 converts text into speech files. The current interface also supports optional voice, reference audio, or a single reference image; these reference inputs do not replace the required text. First verify pronunciation and playback with a short passage, then process the full content.

Submit a task
Send a POST request to https://api.hiapi.ai/v1/tasks with the headers Authorization: Bearer YOUR_API_KEY and Content-Type: application/json. Keep the key on the server side.
{
"model": "seed-audio-1.0",
"input": {
"prompt": "Welcome to the slow life in the city. Put down your busyness and leave yourself a little quiet time.",
"voice": "mindy_en_es_id_pt_zh",
"multilingual": true,
"output_format": "mp3",
"sample_rate": 24000
}
}Save the task ID from the submission response, and query progress at GET https://api.hiapi.ai/v1/tasks/{taskId}. After the task succeeds, read the audio URL from the result, download it, and play it; a successful submission does not mean the audio has already been generated. For task states and response fields, refer to the API documentation on the model page.
Add reference audio
Add an audio_urls array to input, and reference the first clip in the prompt with @Audio1, for example @Audio1 Today, let's discover the little beautiful things around us together.. You can use up to 3 reference audio clips, each no longer than 30 seconds and 10MB, in WAV, MP3, PCM, or Ogg Opus format. If you use only reference audio, you can leave voice empty.
For voice, you can choose a supported preset voice or an existing cloned voice ID; this interface does not create or manage cloned voices. If you use image_url, pass a single JPEG, PNG, or WebP image no larger than 10MB, and remove audio_urls.
Start parameters from defaults
prompt cannot be blank and can contain at most 2048 characters. speed and volume both range from 0.5 to 2, with a default of 1; pitch is an integer from -12 to 12 in semitones, with a default of 0. For Chinese or mixed-language text, we recommend enabling multilingual; it is not responsible for translating the original text.
The default output is MP3 at 24000 Hz. Supported formats are wav, mp3, pcm, and ogg_opus; supported sample rates are 8000, 16000, 24000, 32000, 44100, and 48000 Hz. There is currently no parameter for specifying a fixed output duration.
Check results and costs
Verify the spoken content, pronunciation, pauses, voice style, and whether the file opens in the target player. If generation times out, check the original task status first to avoid resubmitting while the task is still running. Split long texts by complete sentences or paragraphs, and save the task ID and parameters for each segment.
The configured unit price is $0.2679/minute. The final cost must be verified against the billable usage returned by the service; do not directly treat the playback duration of the downloaded file as billed usage, and do not treat the pre-authorized amount as the final cost. The pre-authorized amount frozen at order time is usually higher than the final cost, and the difference is automatically refunded after the task ends; you can use the task record to verify the actual charged amount.
For parameters and API examples, see the Seed Audio 1.0 model page.
Related articles
View all articles →-
Guide
Getting Started with gemini-3.8-flash-lite-tts: Capability Boundaries, Billing, and Integration Practices
From capability assessment to cost estimation, a complete checklist for developers before integrating a TTS model
-
Guide
eleven-v4-turbo Getting Started Guide: Capability Boundaries, Billing, and Integration Practices
A developer-oriented reference for TTS model selection and integration decisions
-
Guide
Getting Started with gemini-3.8-flash-tts: Capabilities, Pricing, and Integration Practices
From capability boundaries to per-character cost estimation, helping engineering teams quickly decide whether it is worth integrating