Authentication System Description (Auth)
How account endpoints under /api distinguish Public and User access, and how a system access token from Profile is sent with Authorization and New-Api-User.
Note
Account-related interfaces (paths starting with /api) have two access levels: "Public" and "User". The system access token (AccessToken) is generated in Personal Settings - System Access Token.
🔐 Authentication
- Public: Can be called without logging in
- User: Requires a login session, or the system access token (
Authorization: Bearer <AccessToken>) and user ID (New-Api-User: <User ID>) in the request headers
Token Usage Query
GET https://api.58api.net/api/usage/token with the current Bearer token returns that token's granted, used, and remaining quota, unlimited flag, model limits, and expiry.
Get Available Model List (Model)
After sign-in, GET https://api.58api.net/api/models returns the models this user can access. Send the user token and New-Api-User.