API429 / LobeChat / LobeHub

LobeChat / LobeHub with API429: OpenAI server env, model list and canary caveats

Connect a self-hosted LobeChat / LobeHub server to API429 using its OpenAI-compatible environment variables and expose only gemini-3.8-flash for your initial text test. Because the reviewed upstream documentation lives on the mutable canary branch under the LobeHub name, always verify environment variable behavior against your exact deployed release tag.

Configuration is based on the application’s public documentation and the API429 contract. Native client execution, installation imports and agent workflows have not been verified here. Start with a short non-sensitive request and inspect the response in your installed version.

Connection settings

Protocol
OpenAI Chat Completions
Connection mode
LobeHub: environment OpenAI provider
Base URL
https://gateway.api429.com/v1
Exact model ID to check
gemini-3.8-flash

Check access for your key with GET /v1/models. A public model card does not guarantee availability in your application. Store the key in the application’s secure credential store or the current session environment. Keep secret values out of command arguments and shared project files.

Check your deployed release tag and canary documentation provenance

Record the exact image tag or release version of your self-hosted LobeChat / LobeHub deployment before changing server variables. This guide targets server-level environment configuration on an instance you administer; logging into a third-party hosted workspace does not let you modify its container environment. If another administrator manages the server, hand over only the nonsecret field sheet and agree on user access boundaries first. Never send a live API key in plain-text chat messages or screenshots.

The official documentation sources reviewed for this guide reside on the mutable canary branch of the upstream lobehub/lobehub repository. Canary documentation tracks active development and can diverge from a pinned stable release tag. Before restarting your service, compare these variable names against the release notes or source tree for your installed tag. Treating canary docs as a universal guarantee for every historical LobeChat build can mask configuration drift.

Configure the OpenAI-compatible server environment

In the environment of the running application process, set ENABLED_OPENAI=1 and set OPENAI_PROXY_URL to https://gateway.api429.com/v1 without appending /chat/completions. Supply your API429 credential via OPENAI_API_KEY through your deployment secret store. Using the OpenAI provider variables selects the OpenAI-compatible Chat Completions transport inside LobeHub; it does not require an OpenAI account key or alter the underlying Google Gemini billing family for gemini-3.8-flash.

In the parameter sheet below, YOUR_API429_KEY is an inert placeholder. Inject the real credential through your container orchestrator or process manager rather than passing it on a public command line or committing it to version control. Confirm that the variables reach the actual LobeHub server process rather than an unrelated interactive shell. The example is a plain key-value reference sheet and makes no assumptions about variable expansion inside docker --env-file.

Hide default models and expose only the literal model ID

Set OPENAI_MODEL_LIST to -all,+gemini-3.8-flash. In LobeHub model list syntax, -all removes the built-in default OpenAI model entries first, and +gemini-3.8-flash adds the exact model ID separated by a standard comma. Keep the identifier free of custom display aliases or angle-bracket capability suffixes during your first test so the UI selector, public catalog entry and wire request field match character for character. Declaring an ID in OPENAI_MODEL_LIST only changes UI visibility; it does not grant key access.

Do not append capability tags such as <fc>, <vision> or <imageOutput> to the model entry. While the upstream canary documentation describes bracketed tags for declaring function calling or multimodal UI controls, adding a tag in LobeHub does not create backend support or verify how your client version serializes those requests. Keep the initial check strictly limited to plain text without plugins, file uploads, web search or agent tools.

Verify catalog access, request parameters and initial response

Restart or redeploy the service using your standard operational workflow, open a clean chat session and select gemini-3.8-flash. If the default OpenAI model list still appears, check whether browser-side settings or cached user preferences are overriding the server environment before sending any prompt. Verify that gemini-3.8-flash is present in the API429 public catalog and separately confirm access for your specific credential via an authenticated GET /v1/models check.

For your first manual message, set max_tokens to 256 and disable streaming if your installed interface exposes those request controls, then send one short nonconfidential question. The JSON block below shows the target API429 Chat Completions wire payload rather than an importable LobeHub configuration file. If your LobeHub version does not expose an explicit non-streaming toggle or max_tokens field in the UI, inspect the actual outbound payload for your release tag rather than assuming the UI slider matches the wire body.

Account for shared server credentials and total spend

Every model generation is a paid API call. Because OPENAI_API_KEY in the server environment acts as a shared credential for all users allowed into your LobeHub instance, protect the deployment with authentication and access controls before opening it to a team. A per-request max_tokens setting bounds only a single completion reply, not your overall budget: multi-turn conversation history, topic naming requests, client retries and concurrent users all add to total cost. If a test fails, inspect the base URL, key and exact model ID before issuing another request.

Settings and examples

Server environment reference; API key is a literal placeholder

ENABLED_OPENAI=1
OPENAI_API_KEY=YOUR_API429_KEY
OPENAI_PROXY_URL=https://gateway.api429.com/v1
OPENAI_MODEL_LIST=-all,+gemini-3.8-flash

Target API429 Chat Completions contract; not a LobeHub import file

{
  "model": "gemini-3.8-flash",
  "messages": [
    {
      "role": "user",
      "content": "Answer in one sentence: what is an API?"
    }
  ],
  "max_tokens": 256,
  "stream": false
}

Usage and next steps

Hypothetical hourly workload: 30 requests to gemini-3.8-flash, each with 5,000 ordinary input and 512 output tokens, costs approximately $0.05 at current API429 rates. Cache, tools, retries, application subscriptions and other fees are excluded. Catalog date: .

Actual usage depends on request count, context length and response size. Check your API429 account for actual charges.

API reference · API429 documentation · Help and diagnostics

Payment and a $10 test

  • Russian bank card. Top up your balance in the account.
  • Invoice for companies. Bank transfer with closing documents.
  • USDT and TON. Top up in crypto.

$10 test credit. Subscribe to our Telegram channel through the bot and get $10 on your balance for the first requests. Get $10 in the bot

Frequently asked questions

Why does this guide refer to both LobeChat and LobeHub?

Upstream repository documentation now uses the name LobeHub while many self-hosted deployments and container setups still use LobeChat. Always match environment variables to the exact release tag running on your server.

Does the upstream canary documentation guarantee behavior on every release tag?

No. The reviewed model-provider.mdx and model-list.mdx files live on the mutable canary branch. Verify that your pinned release tag supports the same variable names and syntax before deploying changes.

What does -all,+gemini-3.8-flash do in OPENAI_MODEL_LIST?

The -all directive hides built-in default models first, and +gemini-3.8-flash exposes only that exact identifier in the selector. It prevents accidental selection of unsupported defaults but does not replace a GET /v1/models access check.

Should I add <fc> or <vision> capability tags to OPENAI_MODEL_LIST?

Omit capability flags like fc, vision or imageOutput for the initial connection check. UI capability tags do not prove wire-level compatibility for tools or media, and total spend still requires monitoring in API429.

Sources

The application documentation defines its interface and limitations; API429 documentation defines addresses, authentication and client methods. Connection configuration checked: .

Telegram