docs/en/providers/newapi.md
NewAPI is a next-generation LLM gateway and AI asset management system built on top of One API. It provides a unified interface for managing and using multiple AI model services, including OpenAI, Anthropic, Gemini, Midjourney, and more.
AstrBot can integrate with NewAPI as a model provider, so you can access those model services through AstrBot.
After registering and signing in to NewAPI, open Console in the top navigation bar, go to Token Management, then click Add Token to create a new API key with appropriate permissions.
After creation, copy the generated API key.
Open AstrBot WebUI, go to Service Providers, and click Add Provider.
NewAPI fully supports OpenAI Chat Completion and Responses APIs, so select OpenAI and open its provider configuration.
Set API Base URL to your NewAPI endpoint:
http://localhost:3000/v1https://api.example.com/v1Then paste your API key into API Key and click Save.
Go to Configuration, find the model section, set Default Chat Model to the NewAPI-based provider you just created, and click Save.
You have now successfully configured NewAPI as an AstrBot model provider.