Source: https://ailoot.ai/docs/integrations/big-agi/
Canonical: https://ailoot.ai/docs/en/integrations/big-agi/
Language: en

[Chat applications](https://ailoot.ai/docs/en/integrations/#chat) 

# big-AGI

[Markdown](https://ailoot.ai/docs/en/integrations/big-agi/index.md)

Self-hosted web chat · OpenAI Chat, Anthropic Messages

| Format | Where to set it up |
| --- | --- |
| OpenAI Chat, Anthropic Messages | Environment variables at deployment: OPENAI\_API\_KEY / OPENAI\_API\_HOST, ANTHROPIC\_API\_KEY / ANTHROPIC\_API\_HOST; in the UI — Models \> Add OpenAI-compatible |

## [](https://ailoot.ai/docs/integrations/big-agi/#setup)Setup

Copy the configuration and replace `sk-...` with your key from the Ailoot Dashboard. Prefer storing the key in the environment variable `AILOOT_API_KEY`, if the application supports it.

Before starting, request GET /v1/models with your Ailoot key. Choose an exact model ID whose methods include POST /v1/chat/completions, POST /v1/messages, then use that ID in the configuration. For agents, also check tool support and the features required by your client version.

```bash
OPENAI_API_KEY=sk-...
OPENAI_API_HOST=https://api.ailoot.ai
ANTHROPIC_API_KEY=sk-...
ANTHROPIC_API_HOST=https://api.ailoot.ai
```

Example model: `claude-sonnet-5-5`. Choose any other model from the [catalog](https://ailoot.ai/models/en/) — check that it supports the format you need.

## [](https://ailoot.ai/docs/integrations/big-agi/#notes)Good to know

The documentation describes these variables as overrides for the OpenAI and Anthropic backend host (for proxies and custom endpoints). It says “host”, so we use a URL without /v1, but the documentation does not specify the exact path format — check it on the first request.

## [](https://ailoot.ai/docs/integrations/big-agi/#check)Test

- For the OPENAI\_API\_HOST field, keep the value shown in the example above. The prefix for OpenAI API methods is `https://api.ailoot.ai/v1` (or the full path if the application asks for a full URL).
- For the Anthropic format, the URL is `https://api.ailoot.ai` without `/v1`.
- Ask a short question. If you get an error, check the code and Request ID, then consult [Errors and limits](https://ailoot.ai/docs/en/errors/).
- 404 immediately after setup almost always means the URL is wrong: an extra or missing `/v1`.
- 402 — insufficient balance for the reserve. Agents reserve more than chat: [why](https://ailoot.ai/docs/en/billing/reserve/).

Application documentation: [https://github.com/enricoros/big-AGI/blob/main/docs/environment-variables.md](https://github.com/enricoros/big-AGI/blob/main/docs/environment-variables.md)

Still have questions? Send your Request ID and a description — we'll help you troubleshoot.[Contact support](mailto:support@ailoot.ai)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
