Retrieves details for a specific model.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aicontent:ModelRouterQueryModel |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/modelRouter/open/models/{id} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| id |
integer |
No |
The model ID. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
{ "success": true, "data": {"id": 1, "name": "gpt-4", "type": "chat"}, "requestId": "592A27EF-26D3-1434-98C1-97AD63337852" } |
|
| requestId |
string |
The request ID. |
xxxx-xxxx-xxxx-xxxxxxxx |
| success |
boolean |
Indicates whether the request was successful. |
true |
| errCode |
string |
The error code. |
UNKNOWN_ERROR |
| errMessage |
string |
The error message. |
未知错误 |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| data | ModelDTO |
The data object. |
[] |
Examples
Success response
JSON format
{
"requestId": "xxxx-xxxx-xxxx-xxxxxxxx",
"success": true,
"errCode": "UNKNOWN_ERROR",
"errMessage": "未知错误",
"httpStatusCode": 200,
"data": {
"id": 1,
"name": "通义千问",
"description": "通义千问大模型",
"symbol": "alibaba",
"tags": "chat,NLP",
"modelCode": "qwen-turbo",
"modelType": "Chat",
"apiKeyPreview": "sk-xxx****xxx",
"baseUrl": "https://dashscope.aliyuncs.com",
"maxInputLength": "8192",
"maxOutputLength": "2048",
"isCustom": false,
"tagNames": "对话,自然语言处理",
"deleteTag": 0,
"gmtCreate": "2024-01-01T00:00:00Z",
"gmtModified": "2024-01-01T00:00:00Z",
"version": 0,
"hasBillingRule": false,
"inOut": "",
"extensions": ""
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Server.Internal.UnknownError | The request processing has failed due to some unknown error. | |
| 403 | B.Permission.DeniedException | 鉴权失败或权限不足 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.