en · USD

tunnelapi · API

Codex CLI · Connect your tools

Connect your coding tools and applications to tunnelapi. Compare input, output and cache costs before your first request.

Use a dedicated API key for each tool. Set a spending limit and verify one small request, then inspect actual usage and cost in your account logs.

Get an API keyDocumentationConsole

Connect your tools

https://api.tunnelapi.ru/v1

Back up your existing configuration before editing. Merge settings rather than replacing the whole file. Never publish an API key or commit it to Git.

# ~/.codex/config.toml
model = "replace-with-an-available-model"
model_provider = "tunnelapi"

[model_providers.tunnelapi]
name = "tunnelapi"
base_url = "https://api.tunnelapi.ru/v1"
wire_api = "responses"
env_key = "TUNNELAPI_API_KEY"

# macOS / Linux
export TUNNELAPI_API_KEY="replace-with-a-dedicated-key"
# Windows PowerShell
$env:TUNNELAPI_API_KEY="replace-with-a-dedicated-key"

401 / 404 / 429

401: check the key and its permissions. 404: check the endpoint, API path and model. 429: reduce concurrency and check rate limits and group availability.

Connect your tools

Video specifications and cost