OpenAI-compatible API

avots говорить мовою API OpenAI. Будь-який застосунок, що спілкується з ChatGPT через base URL, ключ і модель, підключається натомість до avots і дістається до Claude, GPT, Gemini, DeepSeek та Grok на одному балансі.

Отримати API-ключ ✦ Дивитись тарифи Docs on GitHub

Connect in three fields

Будь-якому OpenAI-клієнту потрібні лише три поля. Вставте їх, виберіть модель, і ви вже спілкуєтеся з понад 40 моделями на одному балансі avots.

FieldValue
Base URLhttps://api.avots.ai/openai/v1
API keyav_mcp_… · get your key
Modelanthropic/claude-sonnet-4.6 or any id from the table below

Setup

1. Отримайте свій ключ API

Відкрийте Settings → OpenAI API в avots і згенеруйте ключ av_mcp_. Той самий ключ працює і для MCP.

2. Вкажіть base URL і ключ

У вашому OpenAI-клієнті задайте base URL API як https://api.avots.ai/openai/v1 і вставте ключ av_mcp_ як ключ API.

3. Виберіть модель

Задайте модель anthropic/claude-sonnet-4.6 або будь-який id із таблиці нижче, потім надішліть повідомлення. Усе працює одразу.

Example request

curl
curl https://api.avots.ai/openai/v1/chat/completions \
  -H "Authorization: Bearer av_mcp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4.6",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

The same key also unlocks MCP tools

Your av_mcp_ key is not only for chat. avots also runs as an MCP server, so any MCP client can call avots creative tools, image, video, music, talking avatars, on the same key and the same balance.

FieldValue
MCP serverhttps://mcp.avots.ai/
API keyav_mcp_… · same key as above

MCP setup guide →

Models and prices

Set the model field to any id below, or a lazy name like claude / gpt / gemini that maps to a sensible default.

ModelBest for⚡ / 1M tokens (in / out)
openai/gpt-5.5-proMax intelligence, hardest tasks60 000 / 360 000
anthropic/claude-opus-5Top Claude, long reasoning10 000 / 50 000
anthropic/claude-sonnet-4.6Balanced (default)6 000 / 30 000
google/gemini-3.1-pro-previewFresh Gemini Pro4 000 / 24 000
google/gemini-2.5-proStable Gemini Pro2 500 / 20 000
anthropic/claude-haiku-4.5Fast Claude2 000 / 10 000
deepseek/deepseek-r1Cheap reasoning1 400 / 5 000
google/gemini-2.5-flashFast and cheap600 / 5 000
openai/gpt-5-miniCheap OpenAI500 / 4 000
openai/gpt-oss-120b:freeFree (OpenAI open model, needs a positive balance)Free

* Price in ⚡ per 1,000,000 tokens, input / output (1000⚡ ≈ $1). Free models need a positive balance. Full list via GET /openai/v1/models.

OpenAI-compatible API

Generate an av_mcp_ key in Settings, paste three fields, and reach 40+ models on one balance. The same key works for MCP.

Отримати API-ключ ✦
FAQ

Питання

Це справді OpenAI API?
Так. avots реалізує POST /v1/chat/completions (зі стрімінгом і без нього) та GET /v1/models у точному форматі OpenAI, тож наявні OpenAI-клієнти й SDK працюють без змін.
Який ключ використовувати?
Той самий ключ av_mcp_, що й для MCP. Згенеруйте його в Settings → OpenAI API і передайте як Bearer-токен.
Як відбувається тарифікація?
За кожен запит, із того самого балансу avots, що й вебзастосунок, Telegram і MCP. Один гаманець. Ціна залежить від моделі та довжини обміну.
Які моделі я можу використовувати?
Понад 40, серед них Claude Opus 5, GPT-5.5 Pro, Gemini 3.1 Pro, DeepSeek R1 і Grok. Передайте будь-який активний id або скорочену назву на кшталт claude / gpt / gemini.
Що, якщо модель не знайдено?
Надішліть GET /openai/v1/models, щоб отримати актуальний список, або виберіть id із таблиці. Порожня чи невідома модель повертається до Sonnet.
Does it support function calling and tools?
Yes. The endpoint forwards the standard OpenAI tools, tool_choice and parallel_tool_calls fields (and the legacy functions/function_call), in both streaming and non-streaming mode, so agent frameworks like LangChain, LlamaIndex, Langflow and n8n get real tool_calls back. Whether a given request uses tools depends on the model you pick: Claude, GPT and Gemini all support function calling.

Інші клієнти

Open WebUI with Claude, GPT and Gemini

Add avots under Connections as an OpenAI API provider, and every avots model shows up in y…

LibreChat with Claude, GPT and Gemini

Add one custom endpoint block to librechat.yaml and avots appears as a provider with every…

Cursor with Claude, GPT and Gemini

Override the OpenAI base URL in Cursor Settings, Models, paste your av_mcp_ key, add a mod…

Python openai SDK with avots

Pass base_url and your av_mcp_ key to the official openai Python client, then call any mod…

openclaw with Claude, GPT and Gemini

Add an OpenAI-compatible provider to openclaw.json pointing at avots, and openclaw runs an…

Hermes with Claude, GPT and Gemini

Set the OpenAI base URL and your av_mcp_ key in Hermes, pick a model, and it runs on avots…

Cline with Claude, GPT and Gemini

Pick OpenAI Compatible in Cline settings, paste the avots base URL and your av_mcp_ key, t…

Continue.dev with Claude, GPT and Gemini

Add one models entry to Continue config.yaml with provider openai and the avots base URL, …

Aider with Claude, GPT and Gemini

Export two environment variables and launch Aider with an openai/ model prefix, and the CL…

SillyTavern with Claude, GPT and Gemini

Choose Custom (OpenAI-compatible) as the Chat Completion source in SillyTavern, paste the …

AnythingLLM with Claude, GPT and Gemini

Choose Generic OpenAI as the LLM provider in AnythingLLM, fill the avots base URL, key, mo…

Node.js openai SDK with avots

Pass baseURL and your av_mcp_ key to the official openai client, then call any model by id…

Chatbox with Claude, GPT and Gemini

Add a custom OpenAI API compatible provider in Chatbox, paste the avots host and your av_m…

Отримати ключ