What is the Character Limit for TTS Requests?

By AudioLogic editorial team · Updated 2026-11-18

This page details the exact character constraints for the AudioLogic Labs TTS API, helping indie developers plan their integration workflows accurately. We explain the 4,096-character maximum per request, how spaces and punctuation count toward that limit, and how to handle texts that exceed it without incurring extra costs or errors.

You will learn how to split long narratives efficiently, manage rate limits during bulk processing, and optimize your client-side logic for minimal latency. Whether you are building audiobook features or voice-enabled UI components, these specifics ensure your application behaves predictively under load without unnecessary marketing fluff.

What is the Character Limit for TTS Requests?

Frequently asked questions

What is the hard limit for a single request?

The hard limit for a single TTS request is 4096 characters. This constraint applies to the input field in the JSON body sent to the POST https://api.play84g.com/v1/audio/speech endpoint. Any text exceeding this length must be split into smaller chunks before submission to ensure successful synthesis.

How are spaces counted in the limit?

Spaces count as characters toward the 4096-character limit. The pricing model also treats spaces and punctuation as characters, so they consume your balance. When splitting long texts, ensure each chunk stays within the 4096-character boundary, including all whitespace and punctuation marks.

Does the limit apply to the free trial too?

Yes, the 4096-character limit per request applies to all accounts, including those using the free trial. The trial provides $0.50 credit (approx. 50,000 characters) valid for 7 days. You can send multiple requests up to the character limit, but each individual request cannot exceed 4096 characters.

Can I send text longer than 4096 characters?

No, a single request cannot exceed 4096 characters. To handle longer texts, you must split the input into parts of up to 4096 characters each. The API does not automatically split long inputs; your implementation must manage the chunking and join the resulting audio files.

How are multiple sentences handled?

Multiple sentences are handled within the 4096-character limit per request. You can include many sentences in one request as long as the total character count, including spaces and punctuation, does not exceed 4096. For longer texts, split between sentences to ensure clean audio boundaries.

Is there a limit on total daily characters?

There is no limit on the total number of characters you can generate per day. The constraint is per request (4096 characters). You can send as many requests as your rate limit allows (60 requests per minute) and your balance permits. Longer texts simply require more requests.

Do punctuation marks count as characters?

Yes, punctuation marks count as characters toward the 4096-character limit. They also count toward your billing, as all characters including spaces and punctuation are charged at $0.01 per 1,000 characters. Ensure your text chunks include punctuation within the 4096-character boundary.

What happens if I exceed the limit?

If you send a request with more than 4096 characters, the synthesis will fail. Failed requests are free, so you will not be charged for the attempt. You must split your text into smaller chunks, each under 4096 characters, and resend the requests individually.

Can I split text on my end or the API?

You must split the text on your end. The API does not automatically split long inputs. Your implementation should divide the text into chunks of up to 4096 characters, send each chunk via separate POST requests, and then join the returned audio files.

Does language affect the character limit?

No, the character limit is 4096 characters regardless of the language. Whether you are generating English, Japanese, or Arabic, the limit remains the same. The language parameter is optional and defaults to English for Latin script, but it does not change the character count limit.

Is the limit per voice or global?

The 4096-character limit is global for any single request, regardless of the voice used. You can use any of the 8 preset voices (e.g., aria, nova, atlas) within a request, but the total character count for that request must not exceed 4096 characters.

How does splitting affect audio quality?

Splitting text into chunks does not affect the audio quality of the generated segments. Each chunk is synthesized independently using the same engine. The resulting audio files are joined by your implementation. The inaudible watermark is applied to each synthetic speech file generated.

Can I reuse the same text chunk?

Yes, you can reuse the same text chunk multiple times. Each request is processed independently, and you will be charged for each generation unless it fails. Reusing a chunk will produce the same audio output, assuming the same voice, speed, and format parameters are used.

What is the queue time for split requests?

Requests are processed one after another, so under load, a request may wait in a queue. Typical speed is roughly real time (25 characters per second). Short phrases take a few seconds. Queue times depend on server load, but each request must complete before the next is processed.

Single Request Limit

Sound wave illustration for: Single Request Limit

The AudioLogic TTS API enforces a strict 4096-character maximum for each individual request. This limit applies to the total length of the input string, including all spaces and punctuation marks. Requests exceeding this threshold will be rejected by the API endpoint immediately.

4096 character maximum

Each API call processes text up to 4096 characters. This constraint ensures consistent processing speeds and prevents memory bottlenecks during synthesis. The limit is per request, not per session or account.

Character counting details

Character counting includes every visible and invisible character in the input string. Spaces between words, commas, periods, and special symbols all contribute to the 4096 limit. Multibyte characters (e.g., CJK, Arabic) count as single characters.

  • Spaces count as 1 character each.
  • Punctuation marks count individually.
  • Each Unicode code point counts as one character.

Limit enforcement behavior

If the input text exceeds 4096 characters, the API returns an error response without charging your balance. The request is considered failed, and no audio is generated. You must split the text and resend.

Handling Long Texts

Sound wave illustration for: Handling Long Texts

The API enforces a strict 4096-character limit per request. Clients must split longer inputs into valid chunks before sending them to the endpoint. This ensures each synthesis job stays within the defined payload constraints without requiring server-side preprocessing.

Once generated, the audio files are returned in the response sequence. The client application is responsible for joining these separate audio files.

Splitting text logic

['Split your input text at natural sentence boundaries or clause breaks rather than arbitrary character counts. This preserves audio continuity and prevents awkward pauses where sentences are abruptly cut. Ensure no single segment exceeds the 4096-character hard limit.', 'Audio joining process', {'paras': ['After receiving the audio blobs, concatenate them sequentially. Since each chunk is synthesized independently, there may be gaps between segments.', 'Latency implications', {'paras': ['Requests are processed one after another. For long texts split into multiple chunks, the total wait time is the sum of individual processing times. Expect roughly real-time generation speed, meaning a 10-minute audio file takes approximately 10 minutes to synthesize. Under load, queue delays may add further latency.', '']}, '']}, 'image']

image_prompt

Character Counting Rules

Sound wave illustration for: Character Counting Rules

Character counting in the AudioLogic TTS API is straightforward but strict. The limit of 4096 characters applies to the raw string length, including every space and punctuation mark. This means a request body's input field cannot exceed this byte count, and exceeding it will result in an immediate error rather than truncation.

Understanding exactly what constitutes a character is essential for accurate billing and error handling. Spaces and punctuation are counted identically to letters, so a dense paragraph of 4096 characters is valid, whereas 4096 words might far exceed the limit. Precision here prevents unexpected API failures during deployment.

Including spaces

Every space character between words contributes to the total count. For example, a sentence with 100 words contains 99 spaces, all of which are included in the 4096-character limit. This means your actual usable text length is slightly less than 4096 characters due to necessary spacing.

  • Spaces count as 1 character each.
  • Trailing spaces at the end of the input are included.
  • Multiple consecutive spaces are counted individually.

Including punctuation

Punctuation marks such as periods, commas, question marks, and exclamation points are fully counted. A sentence like "Hello, world!" uses 13 characters, not 11. This includes all standard ASCII and Unicode punctuation, ensuring that the visual length of your text closely matches the API's internal count.

  • Commas, periods, and apostrophes count as 1 character.
  • Quotation marks and dashes are included in the total.
  • Ellipses (...) count as three characters.

Multibyte character handling

The API counts characters, not bytes. This means a single Unicode character like an emoji or a non-Latin letter counts as one character, regardless of its byte size. This simplifies handling of languages like Arabic, Chinese, or Japanese, where characters are naturally more complex but still adhere to the same 4096 limit.

  • Unicode characters count as 1 character.
  • Emojis are counted as single characters.
  • No conversion to UTF-8 bytes is required for counting.

Rate Limits vs. Character Limits

Sound wave illustration for: Rate Limits vs. Character Limits

The API enforces a hard limit of 60 requests per minute per key, which directly constrains throughput regardless of text volume. Each 4096-character chunk counts as one request, meaning large documents consume rate allowance rapidly.

Requests per minute cap

New accounts start with a stricter 10 requests per minute limit until the first top-up.

  • Standard limit: 60 requests/minute after top-up
  • Initial limit: 10 requests/minute
  • Reset window: sliding 60-second interval

Impact on long texts

Splitting long texts into 4096-character segments generates multiple API calls. If you exceed the per-minute quota, subsequent requests wait in a queue rather than failing immediately.

Queue processing delays

Requests are processed sequentially under load. Even within the limit, burst traffic can introduce latency. Plan your splitting logic to spread requests evenly across the minute window.

Free Trial Character Usage

Sound wave illustration for: Free Trial Character Usage

The free trial provides $0.50 in credit, granting access to approximately 50,000 characters. This limit is calculated based on the standard rate of $0.01 per 1,000 characters, including spaces and punctuation. The trial is valid for seven days from sign-in, regardless of usage volume.

Once the 50,000 characters are consumed or the seven days pass, the trial credit is lost. There is no partial rollover to a paid plan.

50,000 character total

Your trial allowance covers exactly 50,000 characters of input text. This cap applies to the total volume of text processed during the trial period. It is not a per-request limit but a cumulative threshold across all API calls made within the seven-day window.

  • Approximately 50,000 characters of input text
  • Valid for 7 days from Google sign-in
  • Applies to all voice models (tts-1, tts-1-hd)

Per-request deduction

Characters are deducted from your trial balance immediately upon a successful synthesis request. Failed requests do not consume character count, ensuring you are not charged for errors. Each request processes up to 4,096 characters, so multiple requests will rapidly deplete the 50,000-character allowance.

  • Deducted on successful synthesis only
  • Spaces and punctuation count toward the limit
  • Failed requests retain full character allowance

Exhaustion monitoring

Monitor your usage via the dashboard to avoid unexpected cutoffs. The interface displays remaining characters and the trial expiration date. Once the 50,000-character limit is reached, the API key remains active but will return billing errors until a top-up is performed via USDT on TRON.

  • Track usage in the /get-api-key/ dashboard
  • Key remains active after exhaustion
  • Top-up required via USDT (TRC-20) to continue

Optimization Strategies

Sound wave illustration for: Optimization Strategies

Optimizing character usage and request flow directly impacts both cost efficiency and perceived latency. By reducing unnecessary whitespace and managing text chunks proactively, developers can minimize overhead and ensure smoother audio generation workflows for end-users.

These strategies help indie teams stay within the 4,096-character per-request limit while maximizing the utility of their $0.01 per 1,000 characters pricing model. Efficient handling prevents unnecessary queuing delays during peak load periods.

Minimizing whitespace

Every space and punctuation mark counts toward the 4,096-character limit and the final bill. Removing redundant spaces between words or at sentence boundaries can preserve valuable character budget without altering audio quality.

Pre-process text before sending it to the API to strip trailing spaces or collapse multiple consecutive spaces into single characters. This simple step ensures you get more content per request.

  • Collapse multiple spaces into single spaces.
  • Trim leading and trailing whitespace from input strings.
  • Count characters after formatting to verify limits.

Pre-splitting text

Instead of relying on client-side splitting at runtime, pre-chunk long texts into segments under 4,096 characters before initiating API calls. This allows for predictable queuing and parallel processing of audio segments.

Ensure segment boundaries align with natural pauses or sentence breaks to maintain audio coherence. Joining audio files from multiple requests is supported, so clean boundaries improve the final listening experience.

Caching responses

For static content like FAQs, menus, or instructions, cache the generated audio files. Since input text is not used for training, storing these files locally or on a CDN avoids redundant API calls.

This strategy is particularly effective for high-traffic indie apps where the same text is read repeatedly. It reduces API load, lowers costs, and improves response times for users.

  • Store generated audio for static, unchanging text.
  • Use a CDN to serve cached audio files.
  • Invalidate cache when source text changes.

Technical Implementation

Sound wave illustration for: Technical Implementation

Implementing character limits requires precise client-side logic to ensure each API request stays within the 4,096-character boundary. Developers must parse input text, count characters including spaces and punctuation, and trigger a split before sending the payload.

For server-side architectures, chunking can be handled asynchronously to decouple text processing from the HTTP request cycle. This approach ensures that large documents are segmented efficiently without blocking the main thread, allowing for smoother integration with existing backend services.

Client-side splitting

Split text into segments of 4,096 characters or fewer. Send each segment as a separate POST request to the /v1/audio/speech endpoint. Collect the resulting audio files sequentially.

Ensure accurate character counting includes all spaces and punctuation marks. This precision prevents unexpected API failures.

  • Parse input text into chunks maxing at 4096 characters.
  • Send requests sequentially or concurrently, respecting the rate limit.
  • Store temporary audio files locally before joining.

Server-side chunking

Process splitting on your backend to reduce client complexity. Queue requests to respect the 60 requests per minute limit per key.

Join audio files in the correct order after all segments are synthesized. Handle potential delays if the queue is under load.

  • Queue requests to stay under 60 requests per minute.
  • Join audio files in sequence after synthesis completes.
  • Monitor queue depth to estimate total latency accurately.

Error handling on split

If one segment fails, retry it individually rather than restarting the entire batch. Failed requests are free, so retrying does not incur extra costs.

Implement exponential backoff for transient errors. Ensure your code handles partial successes gracefully by joining only the successful audio segments.

  • Retry individual failed segments to avoid wasting characters.
  • Use exponential backoff for network errors.
  • Join only successful audio files to maintain integrity.
Technical Implementation

Comparison with Other APIs

Sound wave illustration for: Comparison with Other APIs

Understanding how our API compares to alternatives helps indie developers set accurate expectations for latency and budget. While market leaders vary widely in their constraints, our model prioritizes transparent, predictable metrics without hidden tiers.

The following analysis focuses on hard limits, generation speed, and cost per character to help you choose the right infrastructure for your voice-enabled features.

Limit differences

We enforce a strict 4096-character maximum per single request, matching the standard shape used by major competitors. This simplifies client-side logic, as you only need to implement a single splitting strategy rather than handling multiple variable limits across different endpoints.

  • Fixed 4096-character input cap per request
  • Consistent across all models and voices

Processing speed

Generation typically runs at roughly real-time speed, processing approximately 25 characters of text per second. Short phrases may take a few seconds to synthesize, while longer texts require sequential chunking, which adds slight latency due to queue processing under load.

Cost efficiency

At $10 per 1 million characters, our pricing is linear and transparent. Unlike competitors with tiered or volume-discount models, every character—including spaces and punctuation—counts equally. Failed requests incur no charge, ensuring you only pay for successful synthesis.

  • $0.01 per 1,000 characters
  • No tiered pricing or hidden fees

Common Developer Questions

Sound wave illustration for: Common Developer Questions

The character limit is a hard constraint enforced by the API, not a soft suggestion. Understanding how the system handles excess input prevents silent failures or unexpected billing.

What happens on overflow?

If you send a single request with more than 4,096 characters, the API will reject it with an error. It does not automatically truncate or split the text for you. You must handle the splitting logic client-side or via your server before sending the POST request to https://api.play84g.com/v1/audio/speech.

  • Error type: 400 Bad Request
  • Message includes character count vs. limit
  • No partial audio is generated

Can I increase the limit?

The 4,096-character limit per request is fixed and cannot be increased for higher-tier plans or custom contracts. To handle longer texts, you must implement a splitting strategy that breaks input into chunks of 4,096 characters or fewer, sends them sequentially, and joins the resulting audio files.

  • Limit is hard-coded
  • Splitting is your responsibility
  • No enterprise exception available

Is the limit per voice?

The 4,096-character limit applies uniformly regardless of which voice you select. Whether you use Aria, Felix, or any of the other 8 presets, the input constraint remains identical. The limit is defined by the request payload size, not the voice model's internal processing buffer.

  • Applies to all 8 voices
  • No voice-specific variations
  • Consistent across tts-1 and tts-1-hd

Best Practices for Indies

Sound wave illustration for: Best Practices for Indies

Indie developers should prioritize batching requests to stay within the 60 requests-per-minute rate limit, especially when processing longer narratives. By pre-splitting text into 4096-character chunks, you ensure consistent throughput without hitting per-request ceilings or incurring unnecessary queue delays.

Designing a smooth user experience means managing expectations around latency. Since requests are processed sequentially, longer texts may experience queuing. Inform users that generation time scales with content length, typically aligning with real-time speech speed for extended passages.

Batch processing

Group text segments to maximize the 60 requests per minute allowance. Send chunks sequentially to avoid throttling, ensuring each request stays under the 4096-character limit.

Pre-splitting text client-side reduces server load and allows you to control the pacing of audio generation, preventing sudden spikes that could trigger rate limits.

  • Split text at sentence boundaries where possible.
  • Monitor rate limit headers in responses.
  • Queue chunks if the limit is approached.

User experience flow

Display a progress indicator that reflects the number of chunks being processed. Since synthesis takes time, avoid showing a static spinner indefinitely.

Inform users that short phrases may take a few seconds, while long texts generate at roughly real-time speed. Set clear expectations for total wait times.

  • Show chunk progress (e.g., 3/10 audio files generated).
  • Display estimated time remaining based on text length.
  • Provide a 'download all' button upon completion.

Error feedback design

If a synthesis fails, the charge is returned, but the user experience should clearly indicate the failure without deducting credits. Provide specific error messages for rate limits versus synthesis errors.

Handle partial failures gracefully. If one chunk fails, retry it or notify the user so they can regenerate the segment without losing the entire audio file.

Log request metadata for debugging, allowing support to trace issues without storing the audio or input text.

  • Retry failed chunks automatically up to three times.
  • Display distinct errors for 'rate limit' vs 'synthesis error'.
  • Allow manual regeneration of failed segments.

Future Proofing

Sound wave illustration for: Future Proofing

As your application scales, the 4096-character per-request limit remains constant, requiring robust client-side logic to handle growing content volumes efficiently. Understanding how text length impacts your architecture ensures consistent performance without unexpected failures or excessive splitting overhead during peak usage periods.

Anticipating text growth patterns helps you optimize your splitting strategy early. Since longer texts process at roughly real-time speed, pre-chunking large documents before submission can reduce latency and prevent queue bottlenecks, ensuring a smoother user experience as your content library expands.

Scalability considerations

The fixed 4096-character limit per request means your splitting logic must remain efficient as input sizes grow. Implementing client-side chunking reduces server load and minimizes the number of individual API calls required to assemble long-form audio, keeping your rate limit usage predictable.

  • Maintain consistent splitting logic regardless of input size
  • Monitor queue wait times as request volume increases

Text growth patterns

Content volume typically increases over time. By anticipating larger inputs, you can optimize your audio joining process to handle more segments without significant latency penalties, ensuring that your voice features remain responsive even as your text database expands significantly.

API updates

Future API changes may introduce new models or adjust character counting rules. Staying informed via the /v1/models endpoint allows you to adapt your implementation quickly, ensuring long-term compatibility without requiring major architectural shifts when new features are rolled out.

Support & Resources

Sound wave illustration for: Support & Resources

Our documentation provides the definitive reference for the API endpoint specifications, ensuring your integration aligns precisely with the 4096-character limit and supported request fields. It details the exact JSON structure required for the POST /v1/audio/speech endpoint, covering all valid voice presets, response formats, and speed parameters.

For quick integration, we provide ready-to-use cURL examples that demonstrate authentication and basic synthesis. These snippets help indie developers verify connectivity and understand the standard request shape without guessing header formats or payload structures.

Documentation links

The core documentation outlines the technical specifications for every endpoint, including GET /v1/voices and GET /v1/models. It explicitly lists the 23 supported languages and clarifies that any voice can speak any supported language.

  • API Reference for /v1/audio/speech
  • Voice and Language List
  • Authentication and Key Management

Example code

We provide cURL commands for immediate testing and Python examples using the official OpenAI SDK with a custom base_url. These examples cover basic speech synthesis, handling the 60 requests-per-minute rate limit, and managing the 4096-character split logic for longer texts.

  • Basic cURL request example
  • Python SDK integration snippet
  • Handling rate limits

Contact support

Support is available via email only. We do not offer phone support, live chat, or SLA guarantees. For billing issues, such as USDT top-up delays, or technical questions about integration, email is the primary channel for resolution.

  • Email support only
  • No live chat
  • No phone number

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Cost scales linearly with character count, making budgeting predictable for indie developers.

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. MDN: Web Speech API
  3. LibriTTS-R paper (arXiv 2305.18802)
  4. TRON developer hub: TRC-20
  5. W3C WAI: making audio and video accessible
  6. Node.js documentation
  7. Python documentation
  8. curl documentation
  9. LibriVox public-domain audiobooks
  10. openai-node on GitHub
  11. LibriTTS-R corpus (OpenSLR 141)
  12. FFmpeg documentation

More on this site