Skip to main content
Use the Toqan Router HTTP API directly, or configure an OpenAI-compatible client. Keep the regional prefix in every request. Use an API key from the selected region and a model enabled in the workspace.
cURL
For São Paulo, replace /eu with /br.

OpenAI-compatible clients

Set baseURL (Node.js) or base_url (Python) to the regional URL followed by /v3/router. Pass the API key as apiKey or api_key.

Timeouts and retries

Configure the request timeout in the HTTP client. For streaming, keep the connection open while receiving events. See Retries for gateway retry options.

OpenTelemetry

Set OTEL_EXPORTER_OTLP_ENDPOINT to the regional URL followed by /v2/otel. API keys · API errors