Newapi is compatible with the OpenAI API format, so any OpenAI client library works out of the box. This guide walks you through generating an API token and making your first chat completion request.Documentation Index
Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A Newapi account with access to the console
- The base URL of your Newapi instance (e.g.,
https://your-newapi-domain.com)
Step 1: Create an API token
Create a new token
Click New Token, give it a name, and optionally set a quota limit or expiration date.
Step 2: Send a chat completion
ReplaceYOUR_API_KEY and YOUR_NEWAPI_BASE_URL with your actual values.
Expected response
Step 3: List available models
To see which models are available on your Newapi instance:The models available depend on which channels have been configured in your Newapi instance. Contact your administrator if you don’t see the model you need.
Next steps
- Explore the full API Reference for all supported endpoints
- Connect an AI application like Cherry Studio or Claude Code
- Learn about token management to control access and quotas