API Documentation for Spanish Voice Generator

By ReelTone editorial team · Updated 2026-11-19

This documentation explains how to integrate ReelTone’s text-to-speech API into your agency’s workflow for producing TikTok, Reels, and Shorts at scale. You will find concrete cURL examples, SDK integration steps, and precise details on parameters like voice presets, language codes, and audio formats. Everything is designed for developers who need reliable, consistent voiceovers without manual editing complexity.

We assume you are using the official OpenAI SDKs or standard HTTP clients. The guide covers authentication, rate limits, and error handling specific to our infrastructure. You’ll learn how to split long texts, manage your API key, and understand character pricing. All examples use the base URL https://api.pcx2.info/v1 and reflect real-world agency use cases for viral content production.

API Documentation for Spanish Voice Generator

Frequently asked questions

How do I get an API key?

Sign up on the /get-api-key/ page using Google or email. Accounts are per site. The dashboard displays your active key, balance, and usage. You can issue a new key at any time; the old one stops immediately upon creation.

What is the base URL?

The API base URL is https://api.pcx2.info/v1. Use this for all requests, including the speech endpoint and voice listing. Configure your client tools to point to this domain for standard TTS operations.

Can I use the OpenAI SDK?

Yes. The request shape matches the OpenAI speech endpoint. Change the SDK’s base_url to https://api.pcx2.info/v1 and use your ReelTone key. Official OpenAI SDKs work seamlessly with this configuration.

What models are available?

Two models exist: tts-1 and tts-1-hd. They use the same engine and price. Select either based on your preference, as performance and cost remain identical regardless of which model you choose.

What input formats are supported?

Input is plain text sent in the JSON body. There is no SSML support. Send up to 4096 characters per request. The system does not support phoneme dictionaries or custom pronunciation lexicons.

How many characters per request?

Each request supports up to 4096 characters. For longer texts, split your input into parts of this size and join the resulting audio files. Spaces and punctuation count toward the limit.

What audio formats can I use?

Supported formats are mp3, wav, opus, flac, and pcm. Specify your choice in the response_format field. Generated files include an inaudible watermark marking them as synthetic speech.

What is the rate limit?

Limits are 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests process sequentially, so high load may cause queuing delays.

How do I handle errors?

Failed requests are free, with charges returned in full. Check the response status for details. No SLA or uptime guarantee is provided, so implement standard retry logic for transient issues.

Can I change my API key?

Yes. You can issue a new key at any time from your dashboard. The old key stops working immediately when the new one is created. Only one active key exists per account.

Is there a limit on voices?

Eight presets are available: aria, nova, luna, sage, felix, milo, atlas, and orion. Any voice can speak any of the 23 supported languages. You can switch voices freely between requests.

Do I need to specify language?

It is optional. If omitted, the system guesses from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language parameter to ensure accuracy.

How long do requests take?

Typical speed is roughly real time, about 25 characters per second. Short phrases take a few seconds. Requests process sequentially, so under load, your request may wait in a queue.

Is there a webhook for status?

No. The API is synchronous; you receive the audio file directly in the response. There is no webhook for status updates. Request metadata is kept for billing but not for real-time notifications.

First request

curl

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

Start by creating your agency account at /get-api-key/. This is where you manage your billing and API credentials. You can sign up instantly using your Google account or create a standard email and password login.

Sign up on /get-api-key/

Sign up on /get-api-key/

Navigate to the registration page and select your preferred authentication method. Your account is specific to this site, so ensure you are on pcx2.info.

Use Google or email login

Use Google or email login

Google login provides immediate access with a $0.50 trial credit valid for 7 days. Email-based accounts do not receive this trial bonus. Choose the method that fits your team's workflow.

Copy key from dashboard

Once logged in, access your dashboard to view your unique API key. Copy this key immediately; it is the only way to authenticate your requests to the speech endpoint.

  • Key format: tts-...
  • One active key per account
  • Issue a new key anytime

First Request with cURL

Sound wave illustration for: First Request with cURL

To get started, send a POST request to https://api.pcx2.info/v1/audio/speech with your text payload. The endpoint accepts JSON bodies containing the input text (up to 4096 characters) and specifies the voice and format. This is the core mechanism for generating audio for your TikTok or Reels content.

The request must include your API key in the Authorization header. Upon successful submission, you receive an immediate audio file response. This straightforward HTTP interaction allows you to integrate voice generation directly into your agency’s content pipeline without complex streaming setups, as the API does not support streaming.

POST to /v1/audio/speech

Send your JSON payload to the speech endpoint. Include the input field with your script, ensuring it stays under the 4096-character limit per request. You can specify the model (tts-1 or tts-1-hd) and response_format (mp3, wav, opus, flac, pcm).

  • Endpoint: POST https://api.pcx2.info/v1/audio/speech
  • Body: JSON with input, voice, model, and format
  • Max text length: 4096 characters

Include Authorization header

Include your unique API key in the HTTP header as Authorization: Bearer tts-.... This key is generated on your dashboard at /get-api-key/ after signing up. Each account has one active key; issuing a new one instantly invalidates the old one.

  • Format: Authorization: Bearer <your-api-key>
  • One active key per account
  • Issuing a new key stops the old one immediately

Receive MP3 audio file

Upon successful synthesis, the API returns the audio file directly in the response body. The file is generated using licensed recordings from LibriVox and includes an inaudible watermark. Failed requests do not incur charges, ensuring you only pay for usable audio.

  • Response: Direct audio file in the requested format
  • Formats: mp3, wav, opus, flac, pcm
  • Failed requests are free

Using OpenAI SDKs

Sound wave illustration for: Using OpenAI SDKs

ReelTone’s API mirrors the OpenAI speech endpoint structure, allowing you to leverage existing libraries without rewriting your integration logic. By simply adjusting the base URL, your current codebase can immediately begin generating voiceovers for TikTok, Reels, and Shorts.

Change base_url to api domain

Update your SDK configuration to point to https://api.pcx2.info/v1. This directs all requests to the ReelTone infrastructure while maintaining compatibility with the standard request shape used by OpenAI’s client libraries.

Use official OpenAI libraries

Leverage the official OpenAI SDKs (e.g., openai-python) by importing the standard client, as the request shape matches the OpenAI speech endpoint. Since the endpoint structure is identical, you can continue using familiar methods like Audio.speech.create without needing a custom wrapper.

Pass your API key

Include your unique ReelTone key in the Authorization: Bearer header. The SDK handles the header injection automatically when you set the API key in your environment variables or client initialization, ensuring secure authentication for each synthesis request.

Request Parameters

Sound wave illustration for: Request Parameters

Configure the generation engine by selecting either tts-1 or tts-1-hd. Both models use the same engine and share the same pricing structure, giving you flexibility without cost penalties. Pass the model name as a string in your JSON payload.

model: tts-1 or tts-1-hd

Both models use the same engine and price. Choose based on your preference; there is no quality difference.

input: text up to 4096 chars

Send your script in the input field. The API accepts up to 4,096 characters per request. For longer voiceovers, split your text into chunks and join the resulting audio files.

  • Maximum 4,096 characters per request
  • Spaces and punctuation count toward the limit
  • Split longer scripts manually for batch processing

voice: one of 8 presets

Select from eight licensed voice presets. Each voice can speak any of the 23 supported languages. If you do not specify the language parameter, the system guesses the language from the text script.

  • 8 presets: aria, nova, luna, sage, felix, milo, atlas, orion
  • Any voice supports all 23 languages
  • Set language ISO code for non-English Latin text

Audio Formats Supported

Sound wave illustration for: Audio Formats Supported

ReelTone supports five standard audio formats: mp3, wav, opus, flac, and pcm. This flexibility ensures you get the right file type for your specific editing pipeline or delivery platform without needing external conversion tools.

mp3, wav, opus, flac, pcm

Each format serves a different use case. MP3 offers high compression for easy sharing, while WAV and FLAC provide lossless quality for professional editing. OPUS is a compressed format, and PCM provides raw uncompressed data.

Choose based on your needs

Select the format that matches your workflow. For TikTok or Reels, MP3 is usually sufficient. If you are layering voiceovers in a DAW, WAV or FLAC preserves audio integrity. Use PCM for direct processing or debugging.

Standard HTTP response

The audio file is returned directly in the HTTP response body. Simply save the binary data to a file with the appropriate extension. No additional endpoints or polling are required to retrieve the generated speech.

Audio Formats Supported

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

ReelTone enforces a strict rate limit of 60 requests per minute per key. This ensures consistent audio generation for agencies producing high-volume TikTok, Reels, and Shorts content without overwhelming the API infrastructure. Short phrases may take a few seconds to process, while longer texts are generated at roughly real-time speed.

60 requests per minute

Each API key allows up to 60 requests per minute. Requests are processed sequentially, so under heavy load, a request may wait in a queue. This limit applies per key, so manage your concurrency carefully to avoid delays during peak production hours.

10 requests before first top-up

New accounts without a completed top-up are limited to 10 requests per minute. This ensures stability for free trial users while allowing them to verify the API performance before committing funds. Once you top up, the limit increases to 60 requests per minute.

One key per account

Each account holds one active API key. If needed, you can issue a new key from the dashboard at any time. The old key stops working immediately, ensuring you can revoke access if a key is compromised or rotated for security purposes.

Handling Errors

Sound wave illustration for: Handling Errors

API responses include standard HTTP status codes to indicate success or failure. A 200 OK confirms audio generation, while 4xx or 5xx errors signal issues like invalid parameters or server limits.

Use these codes to implement robust retry logic in your agency workflow, ensuring seamless integration for high-volume TikTok and Reels content generation.

Check HTTP status codes

The API returns a 200 status code upon successful synthesis, accompanied by the audio file. Any deviation, such as a 400 Bad Request or 500 Internal Server Error, indicates a problem with the input text, voice selection, or server availability. Always inspect the status code before parsing the response body to avoid processing errors.

  • 200: Success; audio data included in response
  • 400: Bad Request; check input format or voice validity
  • 401: Unauthorized; verify your Bearer token
  • 429: Too Many Requests; you have hit the rate limit
  • 500: Internal Server Error; try again later

Retry on failures for refund

If a request fails due to a server-side error (5xx), the charge is returned in full. This means you can safely retry failed requests without incurring extra costs for audio that was never delivered. For client-facing applications, implement automatic retries on 5xx errors to ensure reliable audio delivery for your clients' viral content pipelines.

  • 5xx errors trigger a full refund of the character charge
  • Safe to retry without financial penalty
  • Idempotency is recommended for critical workflows

Monitor dashboard for status

Your dashboard provides a log of request metadata, including timestamps, character counts, and status outcomes. Use this data to monitor your usage patterns and identify any recurring issues with specific voices or text lengths. This visibility helps you maintain consistent audio quality across your agency's high-volume production queue.

  • View request timestamps and character counts
  • Track success vs. failure rates
  • Monitor balance depletion in real-time

Voice and Language Options

Sound wave illustration for: Voice and Language Options

ReelTone provides eight distinct voice presets tailored for high-volume social content. Choose from female voices like Aria, Nova, Luna, and Sage, or male options including Felix, Milo, Atlas, and Orion. Each voice has a specific tone, from upbeat promo to calm instructional styles, ensuring consistent audio across your TikTok, Reels, and Shorts projects.

8 voice presets available

Select from eight licensed voice presets based on recordings from LibriTTS-R and LibriVox. Female options include Aria (warm narrator), Nova (bright), Luna (soft storytelling), and Sage (calm instruction). Male voices offer Felix (energetic promo), Milo (friendly), Atlas (neutral news), and Orion (deep documentary). All voices are synthetic and carry an inaudible watermark.

23 languages supported

Any voice can speak any of the 23 supported 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. Voices do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, or other languages outside this list.

Optional language ISO code

If you omit the language parameter, the system guesses the language from the script. Latin script defaults to English. For non-English text using Latin characters, explicitly set the language field to a valid ISO code to ensure accurate pronunciation and avoid misidentification.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This flexibility is crucial for agencies managing diverse content formats for multiple clients.

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. ISO 639 language codes
  4. W3C WAI: making audio and video accessible
  5. OpenAI API reference: create speech
  6. MDN: Web Speech API
  7. Creative Commons Attribution 4.0
  8. openai-python on GitHub
  9. TRON developer hub: TRC-20
  10. Python documentation
  11. curl documentation
  12. LibriTTS-R corpus (OpenSLR 141)

More on this site