https://thapi.cloud/v1

← All applications · Connect apps section on /docs

OpenAIManual setup

LobeChat

LobeChat: configure a provider for a self-hosted chat interface.

Published instructions · App version: unverified

Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely

Base URL to paste

OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.

https://thapi.cloud/v1

Prerequisites

  1. LobeChat instance
  2. Environment variables on the host/Vercel

Recommended model: claude-fable-5

Quick way — command / config

OPENAI_API_KEY=sk-thapi-...
OPENAI_PROXY_URL=https://thapi.cloud/v1
OPENAI_MODEL_LIST=+claude-fable-5,+gpt-5.6-sol

ANTHROPIC_API_KEY=sk-thapi-...
ANTHROPIC_PROXY_URL=https://thapi.cloud

Where to place file / fill Settings

Environment variableany
.env / Vercel Environment Variables
Set both KEY + PROXY_URL; redeploy after changing them.

Verify connection

  1. Open chat and select a ThAPI model
  2. Check Usage

Troubleshooting

SymptomReasonHow to handle
Still calls api.openai.comOPENAI_PROXY_URL is missing.Đặt OPENAI_PROXY_URL=https://thapi.cloud/v1 rồi redeploy.

Related

NextChat

Zalo group