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.
Description
The API prefix is https://api.58api.net
- Interface Name: Get available model list
- HTTP Method: GET
- Path:
/api/models - Authentication Requirement: User
- Function Description: Retrieves the list of AI models accessible to the current user, which can be used for display on a page
💡 Request Example:
const response = await fetch('/api/models', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer your_user_token',
'New-Api-User': 'your_user_id'
}
});
const data = await response.json();✅ Successful Response Example:
{
"success": true,
"data": {
"1": ["gpt-5.5", "deepseek-v4-flash"],
"14": ["claude-sonnet-5-5"],
"24": ["gemini-3.5-flash"]
}
}❗ Failure Response Example:
{
"success": false,
"message": "未授权访问"
}🧾 Field Description:
data(Object): Available models grouped by type- Key (String): Internal type number; clients can ignore it
- Value (Array): List of available model names
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.
Account Billing Dashboard Module
Query this account's subscription quota with the OpenAI-compatible GET /dashboard/billing/subscription endpoint. User token auth; the API prefix is https://api.58api.net.