Generate YouTube Voice-Over Audio via REST API

By ClipVoice editorial team · Updated 2026-11-19

This documentation provides the technical steps for generating YouTube voice-overs using the ClipVoice REST API. You will learn how to authenticate, send text, and receive audio files suitable for video editing workflows. The guide covers essential tools like cURL and the OpenAI SDK, ensuring you can integrate TTS into your production pipeline quickly. The OpenAI SDK is used by changing the base URL; it is not our official SDK.

Designed for freelancers and creators, this page details the eight voice presets, supported audio formats, and rate limits. You will find concrete examples for every request, helping you generate professional narration efficiently. Follow these steps to produce clear, legally safe audio for your videos without managing complex infrastructure.

Generate YouTube Voice-Over Audio via REST API

Frequently asked questions

What is the API endpoint?

Send your request to POST https://api.ek999.info/v1/audio/speech. This endpoint accepts a JSON body containing the text, voice selection, and audio format preferences. It follows the same request shape as the OpenAI speech endpoint, allowing you to use existing OpenAI SDKs by simply changing the base URL to https://api.ek999.info/v1.

How do I authenticate?

Include your API key in the request header using the format Authorization: Bearer tts-... You receive one active key per account. You can issue a new key at any time via the dashboard; the old key stops working immediately. Ensure your key is valid before sending requests to avoid authentication errors.

Which model should I use?

Choose between tts-1 and tts-1-hd. Both models use the same underlying engine and have identical pricing. Select tts-1-hd if you prefer higher fidelity audio quality. The choice does not affect your cost or character count, so pick based on your specific audio quality requirements.

What is the difference between tts-1 and tts-1-hd?

There is no difference in price or engine between tts-1 and tts-1-hd. Both models generate audio using the same underlying technology. The only distinction is the output quality, with tts-1-hd providing higher fidelity. Use tts-1-hd for higher fidelity audio without any additional cost compared to the standard model.

How do I pass the text?

Include your text in the input field of the JSON body. The text can be up to 4096 characters long. Spaces and punctuation count toward this limit. You can also optionally specify a language ISO code to ensure correct pronunciation, especially for non-English Latin script text, which defaults to English.

Can I stream the audio?

No, there is no streaming, WebSocket, or real-time partial audio support. The API returns the complete audio file after synthesis is finished. For long texts, you must split the input into chunks of 4096 characters, generate each part separately, and join the resulting audio files in your workflow.

What is the max characters per request?

Each request supports a maximum of 4096 characters for the input text. This limit includes all spaces and punctuation. If your script exceeds this length, you must split it into multiple requests. Each chunk generates a separate audio file that you can concatenate later to create the final voice-over.

How do I split long texts?

Divide your text into segments of up to 4096 characters. Send each segment as a separate POST request to the speech endpoint. Collect the returned audio files for each chunk. Finally, join these audio files together in your video editing software to create a continuous voice-over track for your YouTube content.

What languages are supported?

We support 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported.

How do I set the speed?

Use the speed field in your JSON request body to adjust playback speed. Acceptable values range from 0.25 to 4.0. A value of 1.0 represents normal speed. Adjust this parameter to match the pacing of your video editing. Faster speeds can help fit more content into shorter video segments.

What happens if I exceed rate limits?

The limit is 60 requests per minute per key. If you exceed this, requests may queue or fail. New accounts start with a 10 requests per minute limit until the first top-up. Failed requests are free, so you are not charged for audio that does not generate successfully due to limits.

Is there a WebSocket endpoint?

No, we do not offer a WebSocket endpoint for real-time audio streaming. All audio generation is processed synchronously. You send a request and receive the full audio file in the response. This design simplifies integration for YouTubers who generate voice-overs in batches rather than needing live, partial audio streams.

Do I need an API key for every request?

Yes, include your single active API key in the Authorization header of every request. You can generate a new key at any time from your dashboard. When you issue a new key, the previous one becomes invalid immediately. Ensure you update your scripts promptly to avoid service interruption.

How do I verify the response format?

Specify your desired format using the response_format field in the JSON body. Options include mp3, wav, opus, flac, and pcm. The API returns the audio file in the specified format directly in the response. This allows you to integrate the audio directly into your video editing workflow without conversion.

First request

curl

curl https://api.ek999.info/v1/audio/speech \
  -H "Authorization: Bearer $TTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
  --output hello.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.ek999.info/v1", api_key="tts-...")

with client.audio.speech.with_streaming_response.create(
    model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
    response.stream_to_file("hello.mp3")

Node.js (openai)

import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({ baseURL: "https://api.ek999.info/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));
voice
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Get Your API Key

Sound wave illustration for: Get Your API Key

Sign up on the dashboard to generate your API key. Visit the /get-api-key/ page and choose Google or email registration. Accounts are specific to this site. You receive one active key per account, which appears immediately on the dashboard alongside your balance and character usage.

Copy the Bearer token labeled 'tts-...' from the dashboard. This token authenticates your requests. Keep it secure because anyone with the key can use your balance. You can issue a new key at any time, which invalidates the old one instantly.

Sign up on the dashboard

Sign up on the dashboard

Go to /get-api-key/ and select Google or email/password. Your account is created instantly.

The dashboard displays your API key, current balance, and characters remaining.

  • Google Sign-In: Immediate access with trial credit ($0.50 valid for 7 days).
  • Email/Password: Standard registration without trial credit.

Copy your Bearer token

Copy your Bearer token

Locate the key starting with 'tts-' on the dashboard.

Copy the full string to use in your Authorization header.

  • Key format: Bearer tts-...

Keep it secure

Store the key in environment variables or secure config files.

Issue a new key if the old one is exposed; the old one stops immediately.

  • One key per account.
  • Instant invalidation on new key generation.

First Request with cURL

Sound wave illustration for: First Request with cURL

To generate voice-overs for your YouTube videos, send a POST request to the speech endpoint. The API processes your text and returns the audio file directly in the response body, allowing you to download the file immediately for editing.

POST to the speech endpoint

Direct your cURL command to https://api.ek999.info/v1/audio/speech. Use the Authorization: Bearer header with your unique API key to authenticate the request securely.

JSON body with model and input

Include the model (tts-1 or tts-1-hd), voice preset, and input text in the JSON body. Ensure your text does not exceed 4096 characters per request to avoid truncation.

  • Set response_format to mp3, wav, opus, flac, or pcm.
  • Adjust speed between 0.25 and 4.0 if needed.
  • Optionally specify language for non-English Latin scripts.

Receive audio file in response

The API returns the synthesized audio file directly in the response body. Save this binary data to your local drive to integrate into your video editing timeline.

Using OpenAI SDK

Sound wave illustration for: Using OpenAI SDK

To integrate our TTS API using the OpenAI SDK, you only need to adjust the base URL configuration. Point the client to https://api.ek999.info/v1 instead of the default OpenAI endpoint. This allows you to use the standard SDK methods without rewriting your request logic.

Set base_url to our domain

Initialize your OpenAI client by setting the base_url parameter to https://api.ek999.info/v1. This directs all API calls to our infrastructure while maintaining compatibility with the standard request structure.

Use standard SpeechClient

Call the audio.speech.create() method just as you would for OpenAI’s TTS. Pass your model (tts-1 or tts-1-hd), voice preset, and input text. The SDK handles the JSON serialization automatically.

Replace API key

Provide your unique ClipVoice key in the api_key field. Ensure the key starts with tts- and is kept secure. The SDK will attach it as a Bearer token in the Authorization header for each request.

Supported Voices

Sound wave illustration for: Supported Voices

ClipVoice provides eight distinct voice presets, allowing you to match the tone of your video content precisely. Each voice is derived from licensed recordings, ensuring high-quality synthetic speech without copyright issues.

All eight voices support all 23 languages, including English, Spanish, Chinese, and Japanese. You can generate audio in any language regardless of the voice selected, making it easy to produce multilingual content for a global audience.

8 presets: Aria, Nova, Luna, Sage

Female voices offer distinct emotional tones. Aria provides a warm, clear narration. Nova is bright and upbeat. Luna delivers a soft storytelling vibe, while Sage offers a calm, instructional tone.

These voices are versatile and work well across various video styles. You can switch between them to maintain listener engagement by varying the vocal texture throughout your video series.

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional

Male voices: Felix, Milo, Atlas, Orion

Male voices range from energetic to authoritative. Felix is energetic. Milo offers a friendly, conversational style. Atlas provides a neutral, news-like delivery, while Orion delivers a deep, documentary-style narration.

Like the female voices, these presets support all 23 languages. Use Felix for quick updates, Milo for personal stories, Atlas for factual reporting, or Orion for in-depth video essays.

  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Choose based on video style

Select voices based on your video's genre. Use Aria or Atlas for straightforward explainers. Choose Nova or Felix for high-energy intros. Opt for Luna or Orion for narrative-driven content.

Remember that each voice can speak any supported language. Set the language parameter to ensure correct pronunciation, especially for non-English content using Latin scripts.

Audio Formats

Sound wave illustration for: Audio Formats

The API supports five audio formats: mp3, wav, opus, flac, and pcm. You specify the desired format using the response_format field in your request body. This flexibility allows you to choose the file type that best fits your specific post-production workflow.

MP3, WAV, Opus, FLAC, PCM

MP3 offers compressed size for quick uploads. WAV and FLAC provide lossless quality for professional editing. PCM delivers raw uncompressed data, while Opus provides efficient compression.

  • mp3
  • wav
  • opus
  • flac
  • pcm

Select based on editing needs

Choose WAV or FLAC if you plan to apply further effects or noise reduction in your video editor, as these formats retain full audio fidelity. MP3 is ideal for final exports where file size matters more than editability. Use PCM for maximum compatibility with older software.

Standard quality options

All formats are generated at standard quality appropriate for voice-over work. The API does not offer variable bitrates or custom encoding profiles, ensuring consistent results across all requests. Select the format that aligns with your existing video pipeline.

Audio Formats

Rate Limits

Sound wave illustration for: Rate Limits

Rate limits protect the service during high-demand periods. You are allowed 60 requests per minute on a standard key. This limit applies to the total number of API calls, regardless of text length.

60 requests per minute

Your API key allows up to 60 requests per minute. This applies to all endpoints, including voice and model checks. Exceeding this limit returns a 429 error until the window resets.

10 per minute before top-up

New accounts without a top-up start with a lower limit of 10 requests per minute. This ensures fair usage during the free trial phase. Once you add USDT (TRC-20), the limit increases to 60 requests per minute immediately.

Queue processing for long texts

Requests are processed sequentially. Long texts split into multiple parts will queue behind other requests. Typical generation speed is roughly real-time, but short phrases may take a few seconds. Under heavy load, a request may wait in the queue.

  • Split texts into 4096-character chunks for optimal performance.
  • Use the speed parameter to adjust generation time.
  • Check status codes to handle queue delays gracefully.

Error Handling

Sound wave illustration for: Error Handling

Errors are handled via standard HTTP status codes. A 401 indicates an invalid or expired API key, while 429 signals rate limit exhaustion. Always check the response status before parsing the audio payload to ensure the request succeeded.

Check status codes

Return a 200 on success. Use 400 for invalid parameters like unsupported voices or text exceeding 4096 characters. A 401 means your Bearer token is incorrect. A 429 indicates you have exceeded the 60 requests per minute limit. Check the response body for specific error messages to identify the exact issue.

  • 200: Success, audio data returned
  • 400: Bad request, check input format
  • 401: Unauthorized, verify API key
  • 429: Rate limit exceeded, wait or top up

Handle network errors

Network interruptions may occur during file transmission. Implement basic timeout handling for your HTTP client. If the connection drops, the server does not charge you if the synthesis fails, but you may need to retry the request to retrieve the audio file.

Retry failed requests

For transient errors like 429 or 503, implement exponential backoff. Wait a few seconds before retrying. Since requests are processed sequentially, a busy queue may cause delays. Avoid rapid-fire retries which could exacerbate rate limiting. Failed synthesis returns a full refund, so retrying is safe.

Endpoints Reference

Sound wave illustration for: Endpoints Reference

The API exposes three core endpoints for generating audio, managing voices, and retrieving model details. Authentication is required for all requests via the Authorization: Bearer header.

POST /v1/audio/speech

Send text to generate audio. Accepts model, input, voice, response_format, and speed. Text is limited to 4096 characters per request.

  • Model: 'tts-1' or 'tts-1-hd'
  • Format: mp3, wav, opus, flac, pcm
  • Speed: 0.25 to 4.0

GET /v1/voices

Returns available voices, supported languages, and current pricing. Use this to verify supported formats and voice options before generating audio.

  • Lists 8 voice presets
  • Shows supported language codes
  • Displays current cost per character

GET /v1/models

Retrieves available model configurations. Confirms the supported engine variants ('tts-1' and 'tts-1-hd') available for synthesis requests.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This voice reduces the barrier between creator and viewer, making tutorials feel more personal and less like a lecture.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. curl documentation
  3. LibriVox public-domain audiobooks
  4. openai-python on GitHub
  5. FFmpeg documentation
  6. ISO 639 language codes
  7. Tether (USDT)
  8. LibriTTS-R corpus (OpenSLR 141)
  9. TRON developer hub: TRC-20
  10. OpenAI API reference: create speech
  11. MDN: Web Speech API
  12. W3C WAI: making audio and video accessible

More on this site