1. 模型模块
模型网关
  • 未命名文档
  • 模型模块
    • 添加模型配置
      POST
    • 获取模型配置
      GET
    • 更改模型配置
      PUT
    • 获取模型列表
      GET
    • 模型类型列表
      GET
    • 运营商列表
      GET
    • 删除模型配置
      DELETE
    • 更改会话模型
      POST
    • 获取会话模型
      GET
  • 任务模块
    • 构建消息
      POST
    • 创建任务
      POST
    • 批量查询任务
      POST
    • 查看任务结果
      GET
    • 批量查询异步任务
      GET
  1. 模型模块

获取模型配置

开发中
开发环境
http://127.0.0.1:3004
开发环境
http://127.0.0.1:3004
GET
http://127.0.0.1:3004
/model/getModel
最后修改时间:2026-07-06 02:15:50

请求参数

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

Body 参数multipart/form-data必填

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3004/model/getModel?creator=chuangzuo3&modelName=%s&isChatModel=%d' \
--header 'Authorization: Bearer <token>' \
--form 'id="2073953895251447808"'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "message": "OK",
    "data": {
        "model": {
            "id": "2073953895251447808",
            "tenantId": 94,
            "creator": "chuangzuo3",
            "createdAt": "2026-07-06 10:15:15",
            "updater": "chuangzuo3",
            "updatedAt": "2026-07-06 10:15:15",
            "deletedAt": null,
            "modelName": "doubao-seed-2-0-lite-260428-fb",
            "operatorName": "火山引擎",
            "modelType": 100,
            "baseUrl": "https://ark.cn-beijing.volces.com/api/v3/chat/completions",
            "httpMethod": "POST",
            "headMsg": {
                "Authorization": "Bearer ark-xxx",
                "Content-Type": "application/json"
            },
            "isPrivate": 1,
            "isChatModel": 1,
            "callMode": 0,
            "apiKey": "ark-xxx",
            "enabled": 1,
            "form": [
                {
                    "key": "model",
                    "value": null,
                    "label": "模型名称",
                    "type": "string",
                    "defaultValue": "doubao-seed-2-0-lite-260428",
                    "required": true,
                    "isForm": false,
                    "options": null,
                    "role": "",
                    "fieldConstraint": {
                        "maxLength": 0,
                        "minLength": 0,
                        "numberType": "",
                        "min": null,
                        "max": null,
                        "maxSize": 0,
                        "maxCount": 0,
                        "accept": ""
                    }
                },
                {
                    "key": "messages.0.content.0.text",
                    "value": null,
                    "label": "用户提示词",
                    "type": "string",
                    "defaultValue": null,
                    "required": true,
                    "isForm": false,
                    "options": null,
                    "role": "",
                    "fieldConstraint": {
                        "maxLength": 100000,
                        "minLength": 0,
                        "numberType": "",
                        "min": null,
                        "max": null,
                        "maxSize": 0,
                        "maxCount": 0,
                        "accept": ""
                    }
                }
            ],
            "requestMapping": {},
            "responseMapping": {
                "completion_tokens": "usage.completion_tokens",
                "content": "choices.0.message.content",
                "prompt_tokens": "usage.prompt_tokens",
                "total_tokens": "usage.total_tokens"
            },
            "extendMapping": {},
            "queryConfig": {
                "interval_seconds": 2,
                "method": "GET",
                "status_path": "status",
                "status_values": {
                    "failed": "failed",
                    "succeeded": "succeeded"
                },
                "task_id": "id",
                "url": ""
            },
            "streamConfig": {
                "enabled": false,
                "events": [],
                "parser": ""
            },
            "specialParams": {
                "first_frame": "content.0.image_url.url",
                "last_frame": "content.1.image_url.url"
            },
            "billingConfig": {},
            "requiredFields": [],
            "maxConcurrency": 100,
            "timeoutSeconds": 1200,
            "retryTimes": 3
        }
    }
}
修改于 2026-07-06 02:15:50
上一页
添加模型配置
下一页
更改模型配置
Built with