Frequently asked questions
What is the first step in using the API?
Send a POST request to https://api.99grill.cc/v1/audio/speech with your text and configuration as a JSON body. The endpoint accepts JSON bodies containing the model, input text, voice selection, and response format. You must include your API key in the Authorization header to authenticate the request successfully.
Do I need to install a special library?
No. You can use the official OpenAI SDKs by changing the base_url to https://api.99grill.cc/v1. Alternatively, use any standard HTTP library to send the POST request. No proprietary Python package is required for integration.
How do I get an API key?
Sign up on https://99grill.cc/get-api-key/ using Google or email. Your account page displays your active key, balance, and usage stats. You can issue a new key at any time, which immediately invalidates the previous one.
Can I use the official OpenAI library?
Yes. The API accepts the same request shape as the OpenAI speech endpoint. Configure your OpenAI SDK client to use https://api.99grill.cc/v1 as the base URL and provide your LinguaRiff API key for authentication.
How do I handle texts longer than 4096 characters?
Split your input text into parts of up to 4096 characters. Send each part as a separate request. Then join the resulting audio files to create the final output. This ensures compliance with the single-request character limit.
What format should the audio be in?
Specify the response_format in your request body. Supported options are mp3, wav, opus, flac, and pcm. Choose the format that best fits your YouTube upload requirements and processing pipeline.
How do I split long scripts?
Divide your text into chunks of 4096 characters or fewer. Process each chunk individually via the API. Concatenate the returned audio files sequentially. This method maintains audio continuity while respecting the per-request limit.
What is the character limit?
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer scripts, you must split the text and process multiple requests to generate the complete audio.
How do I select a specific voice?
Include the voice parameter in your request body. Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice has distinct tonal characteristics suitable for different content types.
Does the API support multiple languages?
Yes, it supports 23 languages including English, Spanish, German, Japanese, and Hindi. Any voice can speak any supported language. Set the language parameter explicitly for non-English Latin-script text to ensure correct pronunciation.
How do I pay for the API?
Top up your balance using USDT on the TRON network (TRC-20). The minimum top-up is $5. Credits are added automatically within minutes. There are no monthly plans or subscriptions; you pay only for characters used.
Is the API free to start?
Google sign-ups receive $0.50 of trial credit, valid for 7 days. Email sign-ups start without trial credit. Failed requests are free. Standard pricing is $10 per 1 million characters processed successfully.
How long does synthesis take?
Generation is roughly real-time, averaging 25 characters per second. Short phrases take a few seconds. Requests are processed sequentially, so high load may cause queuing delays. Typical speed matches the audio duration for long texts.
Can I automate the process for multiple videos?
Yes. Use the standard HTTP endpoint or OpenAI SDK to automate requests. Monitor your balance and rate limits (60 requests per minute). Implement logic to split long scripts and concatenate audio files programmatically for efficient pipelines.
Prerequisites
LinguaRiff’s Python integration relies on the standard OpenAI SDK, requiring a Python 3.7+ environment. Agencies should provision a dedicated virtual environment to manage dependencies cleanly. Install the openai package via pip to access the necessary HTTP client and JSON parsing utilities for API communication.
Python environment setup
Ensure your production server or CI/CD runner has Python 3.7 or higher installed. Virtual environments prevent dependency conflicts when integrating TTS generation into broader video processing pipelines. Use python3 -m venv tts_env to isolate the project context before installing the required library.
- Python 3.7+ runtime
- Virtual environment isolation
- Standard library dependencies
OpenAI library installation
Execute pip install openai to install the official SDK. The SDK’s request shape matches our API, allowing you to override the base_url to https://api.99grill.cc/v1. This ensures compatibility with existing code structures while routing requests to LinguaRiff’s infrastructure.
- Install via pip
- SDK base_url override
- Compatible request shape
API key acquisition
Navigate to /get-api-key/ to register your account. You can sign in with Google for an immediate trial credit of $0.50, or use email/password for standard access. The dashboard displays your active API key, which is required for authenticating your Python requests via the Authorization header.
- Google or email registration
- $0.50 trial credit (7 days)
- Single active key per account
Configuration
Configure the API endpoint to direct requests to the correct service. Set the base URL to https://api.99grill.cc/v1 so the OpenAI SDK routes calls correctly. Include the generated API key in the Authorization: Bearer header for authentication. This setup ensures your Python script communicates with the correct production environment.
Select a voice ID from the eight available presets. Each voice has a distinct tone suitable for different YouTube content styles. Choose the appropriate voice before making synthesis requests to ensure consistent audio output across your video pipeline.
Setting the base URL
Set the base URL to https://api.99grill.cc/v1 in your Python SDK configuration. This directs all API calls to the correct service endpoint. Using the official OpenAI SDK with this adjusted base URL allows immediate integration without custom client code.
- Base URL:
https://api.99grill.cc/v1 - Compatible with standard OpenAI Python SDK
- No custom client library required
Authentication header setup
Include your API key in the Authorization: Bearer <key> header. Each account holds one active key; issuing a new key immediately invalidates the previous one. Ensure your key is stored securely in environment variables to prevent unauthorized usage during batch processing.
- Header:
Authorization: Bearer tts-... - Single active key per account
- Invalidate old keys instantly upon renewal
Voice ID selection
Choose from eight preset voices, such as aria for clear narration or atlas for neutral news. Each voice supports all 23 supported languages. Select the voice ID that best matches your content tone before sending the text payload to ensure consistent audio style across your video series.
- Available presets: aria, nova, luna, sage, felix, milo, atlas, orion
- All voices support 23 languages
- Select voice ID in request body
Basic Script
This section demonstrates the core integration for generating audio files. It covers the essential steps of sending text to the API and receiving the result.
The code snippet below shows how to initialize the client and make a single synthesis request.
Simple text input
Define your script text as a string variable. Ensure the length does not exceed 4096 characters, as each request is limited to this size. Select a voice ID, such as 'nova' for upbeat content or 'atlas' for neutral narration.
Request execution
Initialize the OpenAI SDK client with your API key and set the base URL to https://api.99grill.cc/v1. Call the audio.speech.create method with the model 'tts-1', your selected voice, and the input text. The API processes the request synchronously, but under load requests may wait in a queue.
Audio file saving
The API returns the audio file directly in the response body. Write the binary content to a local file with the desired extension, such as .mp3 or .wav. This file is ready for immediate integration into your video editing pipeline.
Handling Long Scripts
Scripts exceeding 4,096 characters require chunking before API submission, as each request has a strict input limit. Agencies managing YouTube narration must split long scripts into valid segments to ensure successful synthesis and maintain consistent audio timing.
Splitting text into chunks
Divide your script into parts of up to 4,096 characters, ensuring spaces and punctuation count toward the limit. Maintain sentence boundaries where possible to avoid abrupt audio cuts. This ensures each API call processes a manageable text block without truncation errors.
- Maximum 4,096 characters per request
- Spaces and punctuation count as characters
- Split at natural sentence breaks
Generating audio parts
Submit each chunk via a separate POST request to the /v1/audio/speech endpoint. Process requests sequentially or concurrently, respecting the 60 requests per minute rate limit. Each synthesis generates a distinct audio file, preserving the deterministic pricing model of $0.01 per 1,000 characters.
- Use sequential processing for 60 req/min limit
- Each chunk generates a separate file
- Failures return full credit
Merging audio files
Combine the resulting audio files using your preferred media tool. Since the API returns discrete files, you must concatenate them to create the final narration track. This workflow allows agencies to batch-process multiple creator accounts efficiently without waiting for a single long-generation job.
- Concatenate output files sequentially
- Compatible with standard media tools
- Ensures consistent audio quality across segments
Error Management
Production pipelines require robust error handling to ensure uninterrupted audio generation. Since requests are processed sequentially, temporary delays may occur during peak usage. Implementing retry logic with exponential backoff prevents race conditions when submitting multiple narration scripts simultaneously.
Timeout handling
Set a generous timeout (e.g., 30 seconds) to accommodate longer text synthesis. Short phrases may complete quickly, but queued requests under load can take several seconds. If synthesis fails, the API guarantees no charge, so re-issuing the request is safe and idempotent for billing purposes.
Rate limit retries
The API enforces a limit of 60 requests per minute per key. Exceeding this triggers a 429 error. Wrap your synthesis loop in a retry mechanism that respects the Retry-After header. For agencies managing multiple creator accounts, monitor usage closely to avoid throttling during batch processing.
- Retry after 1-2 seconds for transient spikes
- Exponential backoff prevents API overload
- Respect
Retry-Afterheader values
Network error recovery
Handle HTTP 5xx errors by logging the specific status code. Since input text is not stored, you must retain your original script locally to regenerate audio upon failure. Implement a retry counter (e.g., 3 attempts) before marking a script as failed to ensure resilience against brief network instability.
Format Selection
Selecting the correct audio format ensures compatibility with your video editing pipeline while optimizing storage and bandwidth. The API supports MP3, WAV, OPUS, FLAC, and PCM, allowing you to balance compression efficiency against raw fidelity requirements.
Choosing MP3 vs WAV
MP3 offers lossy compression, significantly reducing file size while maintaining acceptable quality for web playback. WAV provides uncompressed, high-fidelity audio ideal for post-production editing where minimal processing artifacts are critical. Choose MP3 for final delivery or WAV when further audio manipulation is planned.
- MP3: Smaller files, suitable for direct upload.
- WAV: Uncompressed, best for editing workflows.
- FLAC: Lossless compression for archival quality.
Quality vs file size
Higher quality formats like WAV and FLAC result in larger files but preserve more audio detail. MP3 and OPUS provide smaller footprints with negligible perceptible loss for spoken content. Consider your upload limits and storage constraints when selecting the format for long YouTube scripts.
Compatibility with editors
Most modern video editors accept MP3 and WAV natively. Ensure your editing software supports the chosen format to avoid conversion delays. Test a short segment before batch processing to confirm seamless integration with your existing timeline tools.
Voice Selection
Selecting the correct voice preset ensures your YouTube narration aligns with the content's tone. LinguaRiff provides eight distinct presets, ranging from the warm, clear narration of Aria to the deep, documentary style of Orion. Each voice is engineered for specific use cases, from upbeat promos to calm instructional guides.
Consistent voice selection simplifies brand identity across multiple creator accounts. Voices are based on licensed recordings from LibriTTS-R and LibriVox.
Matching tone to content
Align the voice personality with your video's narrative arc. Use Felix for energetic promotional segments or Milo for conversational vlogs. For news-style updates, Atlas provides a neutral delivery, while Luna suits storytelling segments requiring a softer approach.
The choice of voice affects viewer retention. A mismatch between tone and content can distract audiences, whereas a precise match enhances engagement. Select voices that complement the visual pacing and emotional weight of your script.
- Aria: warm, clear narrator for documentaries
- Nova: bright, upbeat for promotional content
- Luna: soft, storytelling for narratives
- Sage: calm, instructional for tutorials
- Felix: energetic for promos
- Milo: friendly, conversational for vlogs
- Atlas: neutral, news-style updates
- Orion: deep, documentary style
Using preset voices
Each preset corresponds to a specific voice ID in the API. The eight presets cover a wide range of tonal requirements, ensuring that every script finds an appropriate auditory match. You can switch voices between requests without additional configuration.
Voices are licensed and deterministic, meaning the same voice ID produces consistent audio characteristics. This reliability is crucial for agencies managing multiple creator accounts, where brand voice consistency is paramount.
Testing different voices
Generate short test samples for each voice using your script. This allows you to evaluate clarity, pacing, and emotional fit before committing to full-length videos. Use the free trial credit to test up to 50,000 characters across different voices.
Review the audio in your editing software to ensure compatibility with your video timeline. The generated audio includes an inaudible watermark, marking it as synthetic speech, which is standard for TTS outputs.

Cost Estimation
Billing is strictly character-based at $0.01 per 1,000 characters, including spaces and punctuation. Failed requests incur no charge, ensuring you pay only for successful synthesis. The $0.50 free trial provides approximately 50,000 characters for initial testing.
Calculating character count
Input text is counted precisely before processing. Each character, space, and punctuation mark contributes to the total. Use Python's len() function to estimate input size accurately before submission.
- Spaces and punctuation count as characters
- Max 4,096 characters per request
- Failed requests are free
Predicting costs
Cost is deterministic: $10 per million characters. For a 10,000-character script, the expense is exactly $0.10. This linear model simplifies budget forecasting for high-volume YouTube pipelines.
- $0.01 per 1,000 characters
- $10 per 1 million characters
- No hidden fees or subscriptions
Budgeting for projects
Agencies can predict monthly TTS costs by summing script lengths across all creator accounts. Top-ups via USDT (TRC-20) credit the account automatically. Balance does not expire, allowing flexible spending.
- USDT (TRC-20) top-ups only
- Minimum top-up: $5
- No monthly plans or seats
Production Workflow
LinguaRiff is engineered for high-volume YouTube pipelines, allowing agencies to automate narration for dozens of videos daily. By decoupling voice generation from editing, teams can parallelize audio production and reduce dependency on single-creator schedules.
Automating video narration
Integrate the TTS API into Python scripts to generate audio files directly from script files. Use the OpenAI SDK with a custom base URL to send text payloads and receive audio streams programmatically.
- Use Python to fetch voice lists via GET /v1/voices or GET /v1/models
- Send JSON payloads with model 'tts-1' or 'tts-1-hd'
- Receive MP3 or WAV files for immediate use
Integrating with video editors
Generate audio files in standard formats (MP3, WAV) compatible with Premiere Pro, DaVinci Resolve, and Final Cut. The API returns audio files that can be dropped directly into the timeline, ensuring consistent timing and sync.
- Export as MP3 for smaller file sizes
- Use WAV for uncompressed, high-fidelity editing
- Ensure compatibility with standard NLE workflows
Batch processing workflows
Process multiple scripts simultaneously by splitting long texts into 4096-character chunks and merging the resulting audio parts. This allows agencies to handle large content libraries efficiently, maintaining consistent voice tone across entire video series.
- Split text into 4096-character segments
- Generate audio for each segment
- Merge audio files for final narration
Language Settings
Language handling in LinguaRiff requires explicit configuration for non-English Latin-script text to ensure accurate synthesis, as the API defaults to English for Latin characters. While the system attempts automatic detection, relying on it for mixed-language content risks mispronunciation and inaccurate tone delivery in production pipelines.
Specifying language code
Pass the optional language parameter (ISO code) in your Python request to override automatic detection. This is critical for accurate pronunciation when the input text uses Latin script but represents languages like German, French, or Dutch, ensuring the TTS engine applies the correct phonetic rules and intonation patterns.
- Supported languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
- Any voice can speak any supported language without restriction
Automatic detection limits
If the language field is omitted, the system guesses the language from the script. Latin-script text defaults to English. This heuristic fails for non-English Latin texts, leading to unnatural accents or mispronunciations. Always specify the language code explicitly in production workflows to maintain consistency.
- Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and others not in the 23-language list
Multi-language scripts
For scripts containing multiple supported languages, split the text by language segment and send separate API requests. Each request must include the correct language code for that segment. This ensures precise pronunciation for each linguistic block, avoiding the limitations of automatic detection across mixed content.
Audio Quality
For high-volume YouTube pipelines, generation latency is a critical constraint. Processing occurs sequentially, resulting in a typical throughput of roughly 25 characters per second for long texts. Short phrases may require a few seconds to synthesize, and under load, requests may queue, delaying output.
Consistency is maintained through deterministic pricing and standardized engine performance. Each request is processed independently, ensuring uniform audio quality regardless of volume. This predictability allows agencies to accurately estimate production timelines for bulk narration tasks without variance in output fidelity.
Real-time generation speed
Text-to-speech processing is not real-time streaming; requests are processed one after another. For extended scripts, expect a generation rate of approximately 25 characters per second. Shorter inputs may take slightly longer due to overhead, while higher load can introduce queuing delays.
Consistency across requests
The API uses a fixed engine for all tts-1 and tts-1-hd models, ensuring consistent voice characteristics across thousands of files. This uniformity simplifies quality control for agencies managing multiple creator accounts, as every output follows the same acoustic standards.
Watermark presence
Every generated audio file contains an inaudible watermark identifying the speech as synthetic. This mark is embedded by default and does not affect audio quality or compatibility with standard video editing software. It serves as a transparent indicator of AI-generated content.
Troubleshooting
Production pipelines often fail due to silent truncations or encoding mismatches between the Python environment and the API response. Systematic debugging ensures that video narration remains synchronized with the visual timeline without unexpected audio gaps.
Addressing these issues early prevents costly re-renders. By validating response headers and verifying file integrity, agencies can maintain consistent audio quality across high-volume YouTube content pipelines.
Common Python errors
Ensure the openai library version matches the SDK expectations. Incorrect base_url configuration is the primary cause of 404 or connection errors when pointing to https://api.99grill.cc/v1.
- Verify
base_urlpoints tohttps://api.99grill.cc/v1, not the default OpenAI endpoint. - Check that the API key starts with
tts-and is passed in theAuthorizationheader.
API response issues
Rate limits trigger 429 errors if requests exceed 60 per minute. Implement exponential backoff in your script to handle queue waits during peak production hours.
Failed requests return zero characters and no charge, but still consume time. Log status codes to distinguish between network failures and synthesis errors.
- Handle 429 status codes with a retry mechanism.
- Verify response status is
200before attempting to write binary data to disk.
Audio playback problems
Generated files include an inaudible synthetic watermark. Standard video editors may not display this, but it remains embedded in the audio track.
Ensure the output format matches your editor’s requirements. MP3 is universally compatible, while WAV offers uncompressed quality for further processing.
- Validate file headers using tools like
ffprobeif playback fails. - Confirm the
response_formatmatches the expected file extension to avoid codec errors.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Transfers are credited automatically within minutes, ensuring your production pipeline remains uninterrupted.
23 languages
Any voice speaks any of these languages.
