> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gnani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits

> Reference audio, speaker embedding, audio format and rate limits for Voice Cloning.

On the Free and Pay as you go plans, each API key and each account can send **1 request per second** and hold **20 concurrent WebSocket connections**. Enterprise limits are custom. See [Limits and billing](https://docs.gnani.ai/resources/limits-and-billing.md).

## Creating an embedding

| Item | Limit |
| - | - |
| Reference audio length | 5 to 30 seconds of one person speaking clearly |
| Reference audio format | WAV or MP3 |
| Upload size | TBD |
| Empty file | Returns `400` with `Audio file is empty` |
| Embedding returned | `shape` `[1, 768]`, `dtype` `torch.bfloat16`. Create it once per voice and reuse it. |

## Speaking with a cloned voice

| Item | Limit |
| - | - |
| Model | `vachana-vc-v1`, set automatically when `speaker_embedding` is sent |
| Sample rate | 8000 to 44100 Hz |
| Text length per request | Up to 2,048 characters. Split longer text into several requests. |
| WebSocket idle timeout and session length | TBD |
| Invalid embedding | Returns `500`. Send `data.voice_clone_embedding` from the embeddings response unchanged as `speaker_embedding`. |
| Too many requests | `429` with `error_code` `RATE_LIMITED`, and no `Retry-After` header. Wait, then retry with backoff. See [Retrying](https://docs.gnani.ai/api/introduction/errors.md#retrying). |

## Billing

Speaking with a cloned voice costs **₹18 per 10,000 characters** of `text`, excluding GST, the same as Text-to-Speech. Billing for creating an embedding: TBD. See [Limits and billing](https://docs.gnani.ai/resources/limits-and-billing.md).

Only clone a voice when the speaker has agreed to it, and store embeddings as securely as the recordings they come from.

## Related

> [card] [Error Reference](https://docs.gnani.ai/api/introduction/errors.md#voice-cloning)
>
> Every Voice Cloning error and how to retry.

> [card] [Text-to-Speech limits](https://docs.gnani.ai/api/TTS/limits.md)
>
> Voices, speed and audio formats.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.