Qora API — AI API Gateway for Developers

AI API Gateway for Developers

One clear API workflow for your apps, scripts and automations.

Open WebUI & LibreChat: Claude, GPT, Gemini on One Key

Published · Last updated

Open WebUI and LibreChat are the two most popular self-hosted ChatGPT-style front ends. Both can talk to Claude, GPT and Gemini, but wiring up three providers means three accounts, three keys, three bills and three sets of quirks. This guide connects both apps to all three model families through one OpenAI-compatible key from Qora API, with working configs for the admin UI, Docker environment variables and librechat.yaml.

Config details below were checked against the Open WebUI docs and the LibreChat custom endpoint reference in November 2026. Menu labels move between versions, so if a label differs, look for the nearest equivalent.

Short answer: Open WebUI and LibreChat can both reach Claude, GPT and Gemini through one OpenAI-compatible connection: base URL https://qoraapi.com/v1 (no trailing slash), your Qora API key, and model IDs exactly as listed on qoraapi.com/models, such as claude-sonnet-4-6, gpt-5.5 or gemini-3.1-pro-preview. LibreChat can also use Claude natively through the Anthropic-compatible base URL https://qoraapi.com.

The three values you need

Field Value
OpenAI-compatible base URL https://qoraapi.com/v1 (no trailing slash)
Anthropic-compatible base URL (LibreChat native Claude, optional) https://qoraapi.com
API key Your Qora key from the Console (sign up; $50 minimum top-up)
Model IDs Exactly as listed on qoraapi.com/models, for example claude-sonnet-4-6, gpt-5.5, gemini-3.1-pro-preview

What these models cost through one key

Per 1M tokens, official price against Qora’s cheapest group:

Model Qora model ID Official (in / out) Qora (in / out)
Claude Sonnet 4.6 claude-sonnet-4-6 $3.00 / $15.00 $0.90 / $4.50
Claude Opus 4.7 claude-opus-4-7 $5.00 / $25.00 $1.50 / $7.50
Claude Haiku 4.5 claude-haiku-4-5-20251001 $1.00 / $5.00 $0.30 / $1.50
GPT-5.5 gpt-5.5 $5.00 / $30.00 $1.50 / $9.00
GPT-5.6 Sol gpt-5.6-sol $4.00 / $20.00* $1.20 / $6.00
GPT-5.6 Terra gpt-5.6-terra $2.00 / $12.00 $0.60 / $3.60
Gemini 3.1 Pro gemini-3.1-pro-preview $2.00 / $12.00 (≤200K) $0.60 / $3.60
Gemini 3.8 Flash gemini-3.8-flash $0.75 / $3.75** $0.15 / $0.90

* OpenAI’s pricing page says GPT-5.6 Sol’s promotional pricing runs until November 30, 2026. ** Google lists $0.75 / $3.75 through December 31, 2026 and $1.50 / $7.50 from January 1, 2027. Google now recommends Gemini 4 Hydrogen (gemini-4-hydrogen, released November 12, 2026, $1.50 / $7.50 at Google) as the upgrade from 3.8 Flash; see our Gemini 4 Hydrogen API guide. Sources: Anthropic, OpenAI and Google pricing pages, and the linked Qora model pages.

The newest Claude models (Opus 5.5, Sonnet 5.5 and others) are only served in Qora’s Stable group at 0.6x of official. See the pricing page for every model.

Open WebUI: connect once, get every model

Option 1: through the admin UI

  1. Sign in as an admin and open Settings → Admin → Connections.
  2. Under Manage OpenAI API Connections, click Add Connection.
  3. URL: https://qoraapi.com/v1. API Key: your Qora key.
  4. In Model IDs, add the models you actually want, one at a time with the + icon: for example claude-sonnet-4-6, claude-opus-4-7, gpt-5.5, gemini-3.1-pro-preview, gemini-3.8-flash.
  5. Click Verify Connection, then Save.

Step 4 is optional, but do it. Open WebUI’s docs warn that gateways exposing thousands of models clutter the model selector and slow the admin panel, and recommend a filtered allowlist. With 350+ models behind one key, the same advice applies. Open WebUI’s docs also note that saving a connection does not test it. Verify Connection calls the provider’s /models endpoint, and the allowlist decides what users see.

Option 2: Docker environment variables

docker run -d -p 3000:8080 \
  --add-host=host.docker.internal:host-gateway \
  -v open-webui:/app/backend/data \
  -e WEBUI_SECRET_KEY="$(openssl rand -hex 32)" \
  -e OPENAI_API_BASE_URL="https://qoraapi.com/v1" \
  -e OPENAI_API_KEY="YOUR_QORA_KEY" \
  --name open-webui --restart always \
  ghcr.io/open-webui/open-webui:main

Then open http://localhost:3000. Three gotchas:

  • Env vars only seed the config. Open WebUI stores connection settings as persistent config on first launch. Changing OPENAI_API_BASE_URL later and restarting will not change an existing install; edit the connection in the admin UI instead.
  • Multiple connections use the plural forms OPENAI_API_BASE_URLS and OPENAI_API_KEYS, separated by semicolons and paired by position. For example, keep a local Ollama or vLLM server next to Qora.
  • Keep WEBUI_SECRET_KEY fixed. The quick start notes that without a fixed key, every recreated container logs everyone out. Generate it once and store it, instead of regenerating it in the command as above, if you redeploy often.

Open WebUI tips for a multi-model setup

  • Use a cheap task model. Open WebUI runs background tasks such as titles, tags and follow-up suggestions with a model you choose in the admin settings. Point those at gemini-3.8-flash or claude-haiku-4-5-20251001 instead of Opus.
  • Restrict expensive models. Give most users access to Sonnet, GPT-5.6 Terra and Gemini Flash, and keep Opus and GPT-5.5 for a group that needs them.
  • If replies come back empty only when a tool is called, set Function Calling to Legacy in that model’s Advanced Params. Open WebUI’s docs document this symptom for providers whose streamed tool calls do not follow the OpenAI schema.

LibreChat: one key, two endpoints

LibreChat reads custom endpoints from librechat.yaml, keeps secrets in .env and, on Docker, needs the YAML mounted into the API container. The config below defines two endpoints on the same Qora key:

  • Qora: OpenAI-compatible, for GPT and Gemini (and Claude, if you prefer one endpoint).
  • Qora Claude: uses provider: anthropic, which LibreChat routes through its native Anthropic Messages client. Its docs say to use this for “Anthropic-compatible gateways that speak the native Messages API”.

1. Add the key to .env

QORA_API_KEY=your_qora_key_here

2. librechat.yaml

version: 1.3.18
cache: true
endpoints:
  custom:
    - name: 'Qora'
      apiKey: '${QORA_API_KEY}'
      baseURL: 'https://qoraapi.com/v1'
      models:
        default:
          - 'gpt-5.5'
          - 'gpt-5.6-terra'
          - 'gemini-3.1-pro-preview'
          - 'gemini-3.8-flash'
        fetch: false
      titleConvo: true
      titleModel: 'gemini-3.8-flash'
      modelDisplayLabel: 'Qora'
    - name: 'Qora Claude'
      provider: 'anthropic'
      apiKey: '${QORA_API_KEY}'
      baseURL: 'https://qoraapi.com'
      headers:
        anthropic-version: '2023-06-01'
      models:
        default:
          - 'claude-sonnet-4-6'
          - 'claude-opus-4-7'
          - 'claude-haiku-4-5-20251001'
        fetch: false
      titleConvo: true
      titleModel: 'claude-haiku-4-5-20251001'
      modelDisplayLabel: 'Claude'

Notes on the fields, from LibreChat’s reference:

  • name, apiKey, baseURL and models are all required. LibreChat’s quick start warns that an endpoint missing any of them is dropped silently, with no error in the log.
  • Names must be unique and must not reuse built-in endpoint names such as openAI or anthropic.
  • fetch: false uses only the models you list. With fetch: true on the OpenAI-compatible endpoint, LibreChat pulls the full model list, which with 350+ models is a long dropdown. For provider: anthropic, fetch is not used, so list models explicitly.
  • baseURL for the Anthropic provider is the API root (https://qoraapi.com). LibreChat adds the /v1/messages path itself.
  • titleModel picks the model that writes conversation titles. Use a cheap one; otherwise LibreChat uses the conversation’s own model.

3. Optional: show real costs with tokenConfig

LibreChat can show per-message cost and enforce balances if it knows each model’s rates. Add a tokenConfig block to an endpoint with Qora’s prices per 1M tokens (prompt, completion and context are required):

tokenConfig:
  gpt-5.5:
    prompt: 1.50
    completion: 9.00
    context: 1000000

GPT-5.5’s 1M-token context is from Qora’s model page. Use each model’s own context window for the others.

4. Mount the file (Docker) and restart

# docker-compose.override.yml
services:
  api:
    volumes:
      - type: bind
        source: ./librechat.yaml
        target: /app/librechat.yaml

docker compose down && docker compose up -d

Each service name can appear only once in the override file. If you already override api, add the volume under that same entry.

Open WebUI vs LibreChat for a multi-model team

Open WebUI LibreChat
Where you configure providers Admin UI (env vars seed it once) librechat.yaml plus .env
Protocol for providers OpenAI Chat Completions (plus pipes and functions) OpenAI-compatible, or native Anthropic via provider: anthropic
Model list control Model IDs allowlist per connection models.default with fetch on or off
Cost display Not covered here tokenConfig per model
Best fit Fast setup, mixing local and hosted models Config-as-code deployments, native Claude requests

Troubleshooting

  • 401: wrong key or a stray space. In LibreChat, check that ${QORA_API_KEY} actually resolves, meaning the variable is in .env and the container was restarted.
  • Model not found: the ID must match Qora’s list exactly. Note the dots in gpt-5.5 and gemini-3.1-pro-preview, and the hyphens in claude-sonnet-4-6.
  • Endpoint missing in LibreChat: one of the four required fields is missing, the YAML is not mounted, or the indentation is off.
  • Open WebUI ignores your new env var: persistent config. Change it in the admin UI.
  • Billing error: top up the balance in the Qora Console.

Using the same key in a coding tool too? See connecting Cursor, Cline and Continue. For model-specific pricing, read cheap Claude API, cheapest GPT-5.6 API and cheap Gemini API. If you are weighing gateways, see OpenRouter vs Qora API.

FAQ

Can Open WebUI use Claude and Gemini without separate API keys?

Yes. Add one OpenAI-compatible connection with base URL https://qoraapi.com/v1 and your Qora key, then allowlist Claude, GPT and Gemini model IDs. They all appear in the same model picker.

Should I use the OpenAI-compatible or Anthropic endpoint for Claude in LibreChat?

Either works with the same key. provider: anthropic sends native Messages API requests, which keeps Claude-specific request features intact. The OpenAI-compatible endpoint is simpler if you want one endpoint for everything.

Why do my Open WebUI env var changes not apply?

Open WebUI saves connection settings to its database on first launch. After that, the admin UI is the source of truth. Edit the connection under Settings → Admin → Connections.

How much does it cost to run a team chat on Claude Sonnet 4.6?

At Qora’s $0.90 / $4.50 per 1M tokens, 20M input and 2M output tokens a month comes to $27. The same usage at Anthropic’s $3 / $15 is $90. Point titles and other background tasks at a Flash or Haiku model to keep overhead low.

Is there a subscription?

No. Qora is pay-as-you-go in USD with a $50 minimum top-up, and unused balance is refundable on request.

One key for your whole chat stack

Claude, GPT, Gemini, Grok and 350+ other models through one OpenAI-compatible endpoint, at up to 70% off official prices. Create an account at qoraapi.com/register and see live prices on the pricing page.

$5 trial credit: DM @QoraAPI on X or email [email protected]. It is added on request, not automatically.

Running Open WebUI or LibreChat for clients? Partners and resellers get an extra 30% on top-ups: top up $1,000 and get $1,300.

Build AI features with one clear API

Qora API gives you a single, focused gateway to connect your apps, scripts and automations to AI. Start with one request.

qoraapi.com · AI API gateway for developers

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *