58API Help Center58API Help Center
User GuideAI ApplicationsAPI DocumentationHelp & Support

AstrBot - Agent Chatbot

AstrBot Configuration Tutorial — Integrating the open-source Agent chatbot platform with 58API to inject AI capabilities into instant messaging platforms like QQ, Feishu, DingTalk, and WeChat Work.

AstrBot is an open-source, all-in-one Agent chatbot platform that seamlessly integrates large language model capabilities into mainstream instant messaging software such as QQ, Feishu, DingTalk, and WeChat Work, creating a reliable and scalable conversational AI infrastructure for individuals, developers, and teams. Whether it's a personal AI companion, intelligent customer service, automation assistant, or enterprise knowledge base, AstrBot can quickly build production-ready AI applications within your instant messaging platform's workflow.

58API Integration Method

AstrBot supports integrating 58API as a model provider, allowing users to access and utilize various AI model services through 58API.

Configuration Steps

Obtain 58API API Key

After registering and logging into 58API, click 'Console' in the top navigation bar, select 'API Keys' in the left sidebar, click 'Create API Key' in the top-right corner, enter a name, keep the group set to auto (recommended), and click 'Save & Update'.

create-api-key

After successful creation, click the copy button next to the key in the API Keys list to copy the generated API Key.

copy-api-key

Configure 58API Service Provider in AstrBot

Open the AstrBot administration panel and go to the 'Providers' page. Stay on the 'Chat Completion' tab, click the 'Add' button next to 'Provider Sources' on the left, and choose 'OpenAI Compatible' in the 'New model provider' list that pops up.

58API supports both the OpenAI Chat Completions and Responses interfaces. We recommend 'OpenAI Compatible' (Chat Completions), which works with all chat models on 58API. 'OpenAI Responses' only works with models that support Responses (such as gpt-6.1-sol and claude-sonnet-5-5); Gemini models do not support Responses, so do not use them with that type.

Fill in the provider source settings:

  • ID: 58API (you can choose your own)
  • API Key: paste the 58API API Key you just copied
  • API Base URL: https://api.58api.net/v1 (it must end with /v1; AstrBot does not add it automatically)

Keep your API key secure and never paste it into an untrusted application or page.

Click 'Save and Fetch Models', find the model you want in the 'Available Models' list (for example gpt-6.1-sol, claude-sonnet-5-5 or gemini-3-flash) and click '+' on its right to add it. If the list does not load, click 'Custom Model' and enter the model ID manually. After adding it, click 'Test model' under 'Configured Models' to confirm that it works.

astrbot-provider-config

The screenshot shows an older interface; follow the steps in the text.

Apply Service Provider

Go to the 'Config' page, select the configuration file in use (default by default), and under 'AI' → 'Model' set 'Chat Model' to the 58API model you just added (shown as "provider source ID/model ID", such as 58API/gpt-6.1-sol). Then click the save button in the bottom-right corner.

apply

The screenshot shows an older interface (the field used to be called 'Default chat model'); in the current version, choose a model such as 58API/gpt-6.1-sol in 'Chat Model'.

At this point, you have successfully configured 58API as AstrBot's model provider. Now, you can access and use various AI model services provided by 58API through AstrBot.