> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# URLs base

> Configure a região e a autenticação da API HTTP do Toqan Router.

Use a API HTTP do **Toqan Router** diretamente ou configure um cliente compatível com OpenAI.

| Região | URL base |
| - | - |
| Frankfurt | `https://router.toqan.ai/eu` |
| São Paulo | `https://router.toqan.ai/br` |

Mantenha o prefixo regional em cada solicitação. Use uma chave de API da região selecionada e um modelo habilitado no workspace.

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
export TOQAN_BASE_URL="https://router.toqan.ai/eu"
export TOQAN_API_KEY="<api-key>"

curl "$TOQAN_BASE_URL/v3/router/chat/completions" \
  -H "Authorization: Bearer $TOQAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4.1-mini","messages":[{"role":"user","content":"Hello"}]}'
```

Para São Paulo, substitua `/eu` por `/br`.

## Clientes compatíveis com OpenAI

Configure `baseURL` (Node.js) ou `base_url` (Python) com a URL regional seguida de `/v3/router`. Passe a chave de API como `apiKey` ou `api_key`.

## Tempos limite e novas tentativas

Configure o tempo limite no cliente HTTP. Para streaming, mantenha a conexão aberta enquanto os eventos são recebidos. Consulte [Novas tentativas](/docs/pt-BR/ai-gateway/features/retries.md) para as opções de repetição do gateway.

## OpenTelemetry

Configure `OTEL_EXPORTER_OTLP_ENDPOINT` com a URL regional seguida de `/v2/otel`.

[Chaves de API](/docs/pt-BR/ai-gateway/configuration/api-keys.md) · [Erros da API](/docs/pt-BR/reference/errors.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.