88API88API
User GuideAI ApplicationsAPI ReferenceHelp & Support

Get Available Model List (Model)

Description

The API prefix is https://88api.ai

  • 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