1. 模型相关
HengxinAi API Docs
  • 指南
  • 使用说明
  • API
    • 模型相关
      • 模型列表
        GET
    • 绘图模型
      • 文生图
      • 图生图
  1. 模型相关

模型列表

GET
https://gpt.js.cn/v1/models
获取APIKey可用的模型列表

请求参数

Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
or

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://gpt.js.cn/v1/models' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功获取
application/json
Bodyapplication/json

示例
{
    "data": [
        {
            "id": "gpt-5.4",
            "object": "model",
            "created": 1626777600,
            "owned_by": "codex",
            "supported_endpoint_types": [
                "openai"
            ]
        },
        {
            "id": "gpt-5.5",
            "object": "model",
            "created": 1626777600,
            "owned_by": "custom",
            "supported_endpoint_types": [
                "openai"
            ]
        },
        {
            "id": "gpt-image-2",
            "object": "model",
            "created": 1626777600,
            "owned_by": "custom",
            "supported_endpoint_types": [
                "openai"
            ]
        }
    ],
    "object": "list",
    "success": true
}
🟠401401认证失败
上一页
使用说明
下一页
文生图
Built with