AnythingLLM - Local Knowledge Base and AI Agent
Connect AnythingLLM to 58API via Generic OpenAI.
Select Generic OpenAI
58API provides OpenAI compatible interface. Generic OpenAI should be selected in AnythingLLM, do not select the Generic OpenAI option which only allows connections to the official OpenAI address.
AnythingLLM is an AI workbench that can be deployed on the desktop or server, supporting workspaces, document knowledge bases, RAGs, Agents and multiple model service providers.
- Official website:https://anythingllm.com
- Official documentation:https://docs.anythingllm.com
- GitHub:https://github.com/Mintplex-Labs/anything-llm
Preparation before use
- exist 58API Create an API Key and confirm that the balance is sufficient.
- Copy the exact model ID from the 58API model list.
- Install AnythingLLM Desktop, or log into your own AnythingLLM server.
Configuration parameters
| AnythingLLM field | Fill in the content |
|---|---|
| LLM Provider | Generic OpenAI |
| Base URL | https://api.58api.net/v1 |
| API Key | API Key created in 58API console |
| Selected Model | Exact model ID returned by the API |
| Model context window | Set according to the actual context of the current model |
| Max Tokens | Set according to the output upper limit allowed by the current model |
Configuration steps
- Click the wrench icon in the lower left corner of AnythingLLM to enter Settings.
- Open AI Providers and enter LLM settings.
- Select Generic OpenAI in LLM Provider.
- Fill in Base URL
https://api.58api.net/v1。 - Paste your own 58API API Key in API Key.
- Select or fill in the exact model ID in Selected Model.
- Fill in Model context window and Max Tokens according to the actual capabilities of the model.
- Click Save Changes in the upper right corner of the page to save.
The picture below is from the old version of AnythingLLM interface (the entrance is LLM Preference, the field name is Chat Model Name / Token context window), the current version corresponds to the Selected Model / Model context window, and adds Max Tokens; please refer to the above steps. The context window should still be set to actual model capabilities.

- Return to the workspace, select the model and send a test message.
Don’t ignore Max Tokens
Generic OpenAI Max Tokens The default value is usually 1024. This will limit the length of a single answer and should be set according to the model's support range and actual usage requirements, but should not exceed the maximum output allowed by the model.
Embedder remains the default
58API currently does not provide Embedding models. For the knowledge base function, please keep the default AnythingLLM Embedder (built-in) in Settings → AI Providers → Embedder. Do not change the Embedder to Generic OpenAI to point to 58API.
Automatic acquisition and manual filling of models
The current interface will try to get the model list from the Base URL:
- When the acquisition is successful, Selected Model displays a drop-down list.
- When the acquisition fails or no model is returned, the interface will provide a free input box.
- When entering freely, the complete ID in the 58API model list must be copied, and the case and symbols must be consistent.
Verification successful
- Select the model you just configured in any workspace.
- Send a simple question and confirm that the answer can be returned normally.
- Open the 58API console usage log and check the model ID, time and consumption.
The success of the basic conversation only proves that the Chat Completions compatible call is normal. Capabilities such as vision, tool calling, inference, etc. still depend on the specific model and the current version of AnythingLLM.
Image understanding
Select a model that supports image input (for example deepseek-v4.1-flash), attach an image in the workspace input, and ask—no extra toggle required.
FAQ
Selected Model has no options
Check if the Base URL is https://api.58api.net/v1. If the model list is still not loaded, directly fill in the exact model ID in the input box.
Answers were quickly truncated
Check Max Tokens. default 1024 It may be insufficient. Increase it appropriately according to the actual output upper limit of the model.
Return format or streaming output error
AnythingLLM's Generic OpenAI connector requires the interface to return an OpenAI-compatible streaming response format. First switch to another known available model for testing; if only a specific model fails, please record the model ID and error information and contact 58API customer service.
Agent tool is not available
Tool invocation is not a guaranteed functionality by just filling in the Base URL. Verify that the model natively supports tool calls, and review the current AnythingLLM version's description of Generic OpenAI's native tool calls.
official basis
Cline - VS Code AI programming assistant
Configure the 58API address, key, and model in Cline to complete the first conversation and troubleshooting.
Flowise - Visual LLM workflow platform
Use OpenAI Custom Model (formerly known as ChatOpenAI Custom) in Flowise to access 58API, and complete the custom model, basic address, conversation testing and troubleshooting.