API через терминал: cURLAPI from the terminal: cURL
Одна команда — и видно, что ключ живой и модель отвечает. Вставь ключ в поле ниже — команда соберётся под тебя.One command shows that your key works and the model responds. Paste your key below and the command will be built for you.
Ключ не отправляется с этой страницы: команды собираются локально в браузере. Без галочки выше ключ исчезнет после закрытия страницы. Ключ — как пароль: не показывай его на скриншотах, не отправляй в чаты и не добавляй в Git. Нет ключа — зарегистрируйся: личный ключ выпустится сам. Кнопки скачивания готовых файлов (settings.json, codex-setup.bat) — на странице «Подключение» — генератор конфигураций.Your key never leaves this page: commands are assembled locally in your browser. Without the checkbox above, the key disappears when you close the page. Treat the key like a password: never show it in screenshots, chats, or Git. No key yet? Register — a personal key is issued automatically. Download buttons for ready-made files are on the full connection page.
Как подключить
API через терминалAPI from the terminal
Ключ из поля выше автоматически подставляется в команды и конфиги.Your key from the field above is inserted into the commands and configs automatically.
Совсем без терминала: страница «Баланс и логи» — вставь ключ, увидишь остаток и списания. А если хочется терминала:
Проверь запросом к чату
Вернулся текст модели — ключ рабочий.
Вставь команду в терминал целиком и нажми Enter:
Остаток баланса
Число в поле token_balance — твой остаток.
Windows: команды вставляй в Git Bash (ставится вместе с Git). В PowerShell перенос строки через «\» не работает, а слово curl часто является псевдонимом другой утилиты — либо используй Git Bash, либо curl.exe и одну строку без переносов.
macOS / Linux: открой Terminal (Cmd+Пробел → набери terminal) и вставь команду.
No terminal at all: the Balance and logs page — paste your key and you'll see the balance and the charges. And if you do want the terminal:
Test with a chat request
If the model's text came back — the key works.
Paste the command into the terminal in one piece and hit Enter:
Remaining balance
The number in token_balance is what you have left.
Windows: paste the commands into Git Bash (it installs together with Git). In PowerShell the “\” line break doesn't work, and the word curl is often an alias for another utility — either use Git Bash, or curl.exe with a single line without breaks.
macOS / Linux: open Terminal (Cmd+Space → type terminal) and paste the command.
Частые ошибки
401 Unauthorized
402 — оплата required / баланс
curl: command not found (Windows)
Кривой JSON / 400 Bad Request
401 Unauthorized
402 — payment required / balance
curl: command not found (Windows)
Broken JSON / 400 Bad Request
Ограничения и совместимость
Пример показывает маршрут /v1/chat/completions. Сервер также поддерживает стриминг SSE, Responses API, Anthropic-формат /v1/messages, картинки и аудио — маршруты и примеры в документации.
Не публикуй команды с настоящим ключом (скриншоты, статьи, issues) — по ключу расходуется твой баланс.
The example shows the /v1/chat/completions route. The server also supports SSE streaming, the Responses API, the Anthropic format /v1/messages, images and audio — routes and examples are in the documentation.
Never publish commands with a real key (screenshots, articles, issues) — your balance is spent under that key.
Вопросы и ответы
Можно проверить ключ без терминала?
Что означает 429?
Как включить стриминг ответа?
Какую модель подставить для теста?
Can I check a key without the terminal?
What does 429 mean?
How do I enable response streaming?
Which model should I use for a test?
Дальше:Next: Полный гайд и генератор конфигурацийFull guide and config generator Таблица моделейModel table Документация APIAPI documentation Баланс и логиBalance and logs
Инструкции для других программ:Guides for other tools:
Codex Claude Code Cursor Cline ZCode Python JavaScript JetBrains Antigravity Claude Code в РоссииClaude Code in Russia