SETUP GUIDE

Use AIGateway models in LobeChat

Set AIGateway as the OpenAI-compatible endpoint in LobeChat. Top up your balance and create an API key first.

Values to enter

Enter these three values in LobeChat.

Base URL
https://api.ai.portomo.com/v1
Model ID
deepseek-v4.1-flash

Create your API key on the API keys page. Create an API key →

Setup steps

  1. In Settings → AI Service Provider, open OpenAI.
  2. Enter your AIGateway key in API Key and the base URL above in API Proxy URL.
  3. Add the model ID above to the model list and enable it.
  4. Send a short message and confirm that a reply comes back. For tasks such as editing files, choose a model that supports tool calls.

Setting names and locations may differ between versions of LobeChat. LobeChat documentation ↗

AIGateway API usage is deducted from your balance. See Models & pricing for the price of each model. View all pricing →

Troubleshooting

For 401 or 403, check your API key and balance. For 404, check the endpoint and API path. Use the model ID shown in Models & pricing. Never embed your API key in browser JavaScript.