# Справочник ошибок

{% hint style="info" %}
Чтобы отправлять авторизованные запросы нужно получить API ключ, как это сделать написано в разделе [**С чего начать?**](https://docs.gptunnel.ru/)
{% endhint %}

Сервис CreativeLab **API** всегда возвращает **HTTP** **200**, а для получения информации об ошибки передает код ошибки в виде json в теле ответа.

При успешном сценарии код ошибки будет всегда равен нулю.

## Доступные ошибки

<table><thead><tr><th width="104.04296875">Code</th><th>Message</th></tr></thead><tbody><tr><td>1</td><td>Internal server error.</td></tr><tr><td>2</td><td>Invalid token, check if authorization header has a valid value.</td></tr><tr><td>3</td><td>Invalid input, check schema issues.</td></tr><tr><td>4</td><td>Record not found.</td></tr><tr><td>5</td><td>Insufficient balance, check account balance.</td></tr><tr><td>6</td><td>Service on heavy load. Try again later.</td></tr><tr><td>7</td><td>Has organization restrict for this model.</td></tr><tr><td>99</td><td>API method not found, please check url you call.</td></tr><tr><td>500</td><td>Internal exception. We already working on this issue.</td></tr><tr><td>1001</td><td>Sensitive content has been detected in your request or uploaded files. The security system has blocked data processing. Please check the text and images and try again. Repeated violations may lead to restricted access to your account.</td></tr><tr><td>1002</td><td>Your prompt did not pass the content safety check. Please modify your request. Please note that repeating this error may lead to account suspension.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gptunnel.ru/media-api/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
