# Limits and errors

Plan limits, the usage endpoint, error formats, HTTP status codes and the known limits of document translation.

## Plan limits

See https://vibeql.com/pricing for the plan limits table.

During the beta, accounts use the Beta plan: 5,000,000 characters and 200 files a month, files up to 20 MB and 300 pages. The web app, the API and the MCP server share one character pool.

Other request limits:

- Text requests: up to 50 `text` (or `q`) values, and a body up to 128 KB.
- Azure text requests: up to 10 `to` languages.
- There is no minimum charge per document.

## Usage

`GET` or `POST https://vibeql.com/v2/usage` returns the characters used this calendar month (UTC) and your limit.

```bash
curl https://vibeql.com/v2/usage \
  -H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY"
```

```json
{ "character_count": 182340, "character_limit": 5000000 }
```

On the Free plan, these numbers cover the API and MCP pool. The Usage page in the [dashboard](/app) shows the web, API and MCP use day by day.

## Error format

Each API shape returns errors in its own format, so existing error handling keeps working.

DeepL endpoints (`/v2`, `/v3`):

```json
{ "message": "Value for 'target_lang' not supported." }
```

Google endpoints (`/language/translate/v2`):

```json
{ "error": { "code": 400, "message": "Value for 'target' not supported.", "status": "INVALID_ARGUMENT" } }
```

Azure endpoints (`/translate`, `/languages`, `/detect`, `/translator`):

```json
{ "error": { "code": 400000, "message": "Value for 'to' not supported." } }
```

## Status codes

| Status | Meaning | What to do |
|---|---|---|
| `400` | A parameter is missing or wrong, or the file type is not supported. | Read `message`, fix the request. Do not retry as is. |
| `403` | The API key is missing, wrong or revoked. | Check the key and how you send it. See [Authentication](/docs/authentication). |
| `404` | The document does not exist, the `document_key` is wrong, or the file expired after 24 hours. | Check the ID and key. Upload the file again if it expired. |
| `413` | The request or file is too large for your plan. | Send a smaller file, or fewer or shorter texts. |
| `422` | Azure document endpoint only: the translation failed. | Check the file. Try the DeepL document flow for details. |
| `456` | You reached your plan limit for characters or files this month. | Wait for the next month or change your plan. See [Pricing](/pricing). |
| `500` | An unexpected error happened on our side. | Retry with backoff. |
| `502` | Translation is unavailable for a moment. | Retry with backoff. |
| `503` | The document is not ready to download yet. | Check the status, then download when it is `done`. |
| `504` | Azure document endpoint only: the translation took more than 90 seconds. | Use the DeepL document flow for large files. |

## Known limits

- **No OCR yet.** Scanned PDFs, which contain pictures of text, are not translated.
- **Text in images.** Text inside pictures is not translated, in any format.
- **PDF fonts.** VibeQL replaces the fonts in PDFs with fonts that have the same metrics, so the text keeps its size and position. The typeface can look different.
- **WordArt and OLE objects.** WordArt and embedded OLE objects, such as an embedded spreadsheet, are not translated.
- **No glossaries and no formality setting.** The API ignores `glossary_id` and `formality`.
