API Documentation for Text-to-Speech Integration

By VocalClip editorial team · Updated 2026-11-19

This guide helps video editors integrate VocalClip’s text-to-speech API into their TikTok, Reels, and Shorts workflows. You will learn how to generate copyright-safe audio files using simple HTTP requests, compatible with standard editing pipelines. The documentation covers essential steps from authentication to handling long-form content, ensuring you can scale voiceover production without licensing headaches.

We focus on concrete, usable details for freelancers who need reliable, consistent voiceovers. You will find ready-to-use cURL examples, OpenAI SDK configuration tips, and clear explanations of rate limits and pricing. Whether you are automating voiceovers for short-form video or building a custom editor tool, this page provides the technical specifics you need to start generating audio immediately.

API Documentation for Text-to-Speech Integration

Frequently asked questions

What is the base URL for the API?

The API base URL is https://api.ck445.info/v1. You use this endpoint for all requests, including the speech generation endpoint at /v1/audio/speech. This structure allows you to integrate the service directly into your existing workflows without needing a separate domain or complex routing configuration.

Can I use the OpenAI Python SDK?

Yes, the official OpenAI SDKs work perfectly. You simply change the base_url to https://api.ck445.info/v1 and use your VocalClip API key. This allows you to use familiar Python code for generating speech without rewriting your integration logic from scratch.

How do I specify the Hindi language?

Include the language field in your JSON body with the ISO code for Hindi. Although the API can guess languages from script, explicitly setting the language ensures accurate pronunciation. Hindi is one of the 23 supported languages available for all voice presets.

What happens if I exceed the rate limit?

The standard limit is 60 requests per minute per key. If you exceed this, requests will wait in a queue or fail. New accounts start with a 10 requests per minute limit until the first top-up is processed. Monitor your usage to avoid delays.

Is the API key secure?

Yes, you authenticate using a Bearer token in the Authorization header. Each account has one active key. You can issue a new key at any time, which instantly invalidates the old one, providing a simple way to revoke access if needed.

Can I use the API from a browser?

Yes, you can make HTTP requests directly from a browser. Since the API uses standard REST endpoints and JSON bodies, you can generate speech using JavaScript fetch calls or any frontend framework, though you must manage your API key securely.

Does the API support async requests?

The API processes requests sequentially. If you send multiple requests, they are handled one after another. Under load, a request may wait in a queue. There is no WebSocket or streaming support; you receive the complete audio file upon completion.

How do I handle audio file downloads?

The API returns the audio file directly in the response body. You can save this binary data to your local storage or upload it to your video editing platform. Supported formats include mp3, wav, opus, flac, and pcm for maximum compatibility.

What is the maximum text length?

Each request supports up to 4096 characters of input text. For longer scripts, split the text into chunks of this size and join the resulting audio files. Spaces and punctuation count toward the character limit, so plan your splits accordingly.

Are there examples for JavaScript?

While specific code snippets are not listed here, the standard HTTP request shape allows easy implementation in JavaScript. You can use the fetch API to send a POST request to the speech endpoint with your JSON body and API key.

Can I cache the API responses?

Yes, since each request generates a unique audio file, you can cache the response based on the input text and parameters. This avoids redundant charges for identical requests. Note that generated audio is returned in the response and not stored by the API, so you must save it yourself.

Is the API versioned?

Yes, the API is versioned. The current endpoint is /v1/audio/speech. Using the versioned path ensures stability as the API evolves. You can also check available voices, languages, formats, and price via the /v1/voices endpoint, and models via the /v1/models endpoint.

How do I test the API before paying?

Sign up with Google to receive a $0.50 free trial credit, valid for 7 days. This provides about 50,000 characters of free speech generation. You can test voices, languages, and formats without entering payment details or risking unexpected charges.

What happens if the server is down?

There is no SLA or uptime guarantee. If the server is down, requests will fail. Failed requests are free, so you are not charged for audio that is not generated. Support is available via email if issues persist.

First request

curl

curl https://api.ck445.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.ck445.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.ck445.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

Authentication and API Keys

Sound wave illustration for: Authentication and API Keys

To generate audio files via the VocalClip API, you must authenticate each request using a secure API key. This key is created directly from your account dashboard at https://ck445.info/get-api-key/. The dashboard displays your current key, balance, and usage statistics, providing a central hub for managing your credentials without navigating complex configuration files.

Generate key from dashboard

Generate key from dashboard

Access the /get-api-key/ page after signing in with Google or your email. The interface displays your active API key alongside your current balance and character count. You can generate a new key at any time, which immediately invalidates the previous one, ensuring you always have a clean credential set for your video editing workflows.

Bearer token in Authorization header

Bearer token in Authorization header

Include your key in the HTTP header as Authorization: Bearer tts-<your_key>. This standard authentication method ensures secure transmission of your credentials with every POST request to /v1/audio/speech. Ensure no extra spaces or formatting errors are included in the token string to avoid 401 Unauthorized responses.

One active key per account

Each account maintains only one active key at any given time. Issuing a new key immediately stops the old one from working. This simplifies security management for freelancers, as you do not need to track multiple active tokens across different editing projects or machines.

First Request with cURL

Sound wave illustration for: First Request with cURL

Once your API key is ready, you can generate speech instantly using a simple cURL command. This method requires no external libraries and works directly in your terminal or CI/CD pipeline.

The request sends your text to the synthesis engine, which returns the audio file after processing (typically roughly real time for long texts, or a few seconds for short phrases). This direct approach is ideal for quick tests or automated workflows that need minimal setup overhead.

POST to /v1/audio/speech

Send your request to the endpoint https://api.ck445.info/v1/audio/speech using the HTTP POST method. Include your API key in the Authorization header as Bearer tts-... to authenticate the request.

  • Endpoint: POST https://api.ck445.info/v1/audio/speech
  • Header: Authorization: Bearer tts-<your-key>

JSON body with model and input

The request body must be valid JSON containing the model, input, and voice fields. The model field accepts tts-1 or tts-1-hd, both using the same engine. The input field holds your text, which must not exceed 4096 characters.

You can also optionally specify response_format (mp3, wav, opus, flac, pcm) and speed (0.25–4.0). If you omit the language parameter, the system guesses the language from the script, defaulting to English for Latin text.

  • model: tts-1 or tts-1-hd
  • input: string up to 4096 characters
  • voice: one of 8 presets (e.g., aria, nova)
  • response_format: mp3, wav, opus, flac, or pcm
  • speed: 0.25 to 4.0 (optional)
  • language: ISO code (optional)

Receive audio file in response

Upon successful synthesis, the API returns the audio file directly in the response body. The format matches the response_format you specified. For example, selecting mp3 returns a compressed audio file suitable for social media uploads.

If the synthesis fails, you receive an error status code, but you are not charged for the request. Failed requests are refunded in full, ensuring you only pay for successful audio generation.

Using OpenAI SDK

Sound wave illustration for: Using OpenAI SDK

The API endpoint mirrors the official OpenAI speech endpoint structure, allowing you to leverage existing client libraries without learning a new interface. By simply adjusting the base URL configuration, your current codebase can route requests to our infrastructure seamlessly.

Change base_url to api endpoint

Update your SDK client configuration to point base_url to https://api.ck445.info/v1. This single change directs all subsequent audio generation calls to our service while maintaining the standard request format.

Use official OpenAI SDKs

You can use any official OpenAI SDK (Python, Node.js, etc.) directly. No proprietary wrapper or custom library is required, ensuring you benefit from the SDKs’ existing error handling and typing support.

Same request shape as OpenAI

The JSON body accepts identical fields: model, input, voice, response_format, and speed. This consistency means you can switch providers or test alternatives with minimal code refactoring.

Supported Audio Formats

Sound wave illustration for: Supported Audio Formats

Choose the format that matches your editing workflow. MP3 offers small file sizes for quick uploads to TikTok and Reels, while WAV provides uncompressed quality for professional post-production.

MP3 for small file size

MP3 is ideal for rapid content creation where file transfer speed matters. It keeps storage low without sacrificing audible clarity for social media platforms.

WAV for high quality editing

WAV delivers uncompressed audio, preserving every nuance for precise editing in your DAW. It ensures no generative artifacts are introduced during compression.

Opus, FLAC, PCM available

Opus offers efficient compression for web delivery. FLAC provides lossless compression for archiving. PCM is raw audio data for immediate processing.

  • Opus: Efficient web streaming
  • FLAC: Lossless archiving
  • PCM: Raw data processing

Voice Selection and Parameters

Sound wave illustration for: Voice Selection and Parameters

VocalClip provides eight distinct voice presets tailored for content creation, ranging from warm narrators to energetic promo voices. Each voice is derived from licensed recordings, ensuring copyright-safe audio for your TikTok, Reels, and Shorts projects without additional licensing fees.

8 preset voices available

Choose from four female voices: Aria (warm narrator), Nova (bright upbeat), Luna (soft storytelling), and Sage (calm instructional). Male options include Felix (energetic), Milo (friendly conversational), Atlas (neutral news), and Orion (deep documentary). All voices support any of the 23 supported languages.

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional
  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Speed control from 0.25 to 4.0

Adjust the playback speed between 0.25 and 4.0 to fit your video’s pacing. Slower speeds enhance clarity for instructional content, while faster rates suit quick cuts. Note that generation time scales with speed; shorter phrases may take a few seconds even at normal speed.

Optional language code parameter

The API guesses language from script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language ISO code to ensure accurate pronunciation. Supported languages include Arabic, Chinese, French, German, Japanese, Korean, Spanish, and others listed in the API docs.

Voice Selection and Parameters

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

Rate limits protect the service during peak usage. You are allowed 60 requests per minute per API key once your account is active. This ensures consistent performance for your content generation workflows.

60 requests per minute per key

Each API key supports up to 60 requests per minute. This limit applies per key. Plan your batch processing accordingly to avoid queuing delays.

10 requests per minute initially

New accounts start with a lower limit of 10 requests per minute. This applies until you add your first top-up. It helps stabilize the system while you test your integration.

Limit increases after top-up

Once you top up your balance, your rate limit increases to the full 60 requests per minute. The upgrade is automatic and applies immediately after the transfer is credited. No manual activation is required.

Handling Errors and Retries

Sound wave illustration for: Handling Errors and Retries

When integrating VocalClip into your video editing workflow, handling API responses correctly ensures your automated pipeline remains stable. Most errors stem from request structure, such as exceeding the 4096-character limit for the input field. Always validate your JSON payload before sending it to avoid unnecessary retries.

The API distinguishes between client errors and server-side failures. Understanding the status codes helps you decide whether to fix the input data or implement a retry mechanism. Failed synthesis requests do not consume your character balance, protecting your budget during development.

Check status code for failures

A 400: Bad Request typically indicates a formatting issue, such as the input field exceeding 4096 characters or an invalid voice ID. A 429 error means you have hit the rate limit of 60 requests per minute (or 10 per minute initially). A 5xx error suggests a temporary server issue.

Always inspect the response body for a specific error message. This helps you quickly identify if the issue is with your script’s logic or a transient network glitch.

  • 400: Check JSON structure, e.g., input exceeds 4096 characters
  • 429: Rate limit exceeded; wait and retry
  • 500-503: Server error; safe to retry

Failed requests are free

If synthesis fails for any reason—whether due to a server timeout or invalid parameters—the request is free. The API does not charge your balance for failed attempts. This allows you to test your integration aggressively without worrying about costs.

This policy applies to all error types, including those caused by temporary network instability. You only pay for successfully generated audio files.

Retry logic for temporary issues

For 5xx errors or network timeouts, implement an exponential backoff strategy. Start with a short delay (e.g., 1 second) and double the wait time for each subsequent retry. This prevents overwhelming the API during high load.

Limit retries to 3-5 attempts to avoid infinite loops. If the error persists, log the request details and alert your team rather than continuing to retry.

Long Text Splitting Strategy

Sound wave illustration for: Long Text Splitting Strategy

Since the API accepts a maximum of 4096 characters per request, longer scripts must be divided into smaller chunks before submission. This ensures every segment is processed correctly without truncation.

You generate audio for each chunk individually using separate API calls. The system processes requests sequentially, so longer texts may take time proportional to their length.

Split text into 4096 char chunks

Divide your script into segments of up to 4096 characters. Spaces and punctuation count toward this limit, so ensure your total character count per segment stays within bounds.

Generate audio for each part

Send each chunk as a separate POST request to the speech endpoint. Each request returns a distinct audio file corresponding to that specific segment of your text.

Join files in post-processing

After receiving all audio files, concatenate them in your editing software to create a single, continuous audio track. This allows for seamless playback of your full voiceover.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. For short-form video, matching voice tone to content type ensures retention.

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. FFmpeg documentation
  3. W3C WAI: making audio and video accessible
  4. ISO 639 language codes
  5. LibriVox public-domain audiobooks
  6. MDN: Web Speech API
  7. Python documentation
  8. OpenAI API reference: create speech
  9. Tether (USDT)
  10. openai-node on GitHub
  11. Node.js documentation
  12. LibriTTS-R paper (arXiv 2305.18802)

More on this site