api-park-docs神州问学文档中心
Embedding模型

检索Embedding模型列表

检索Embedding模型列表。

GET
/
opi-maas
/
v1
/
embedding
/
models

鉴权

神州问学 API 使用 App-IdApi-Key 进行鉴权,需要在调用接口时将其填入到 HTTP 请求的请求头参数中。可以参考鉴权

App-Id
string
header
required

应用 App ID。

Api-Key
string
header
required

应用 Api Key。

请求

cURL
curl --location --request GET '{api_base_url}/opi-maas/v1/embedding/models' \
--header 'App-Id: {App-Id}' \
--header 'Api-Key: {Api-Key}' \
--header 'Connection: keep-alive'

响应

code
Integer

业务code。

data
Array

模型列表。

msg
String

响应消息。

Response
{
    "code": 0,
    "data": [
        {
            "id": 3274,
            "model": "openai/embedding-3",
            "model_info": {
                "mode": "embedding"
            },
            "supported_openai_params": [],
            "model_source": 1
        },
        {
            "id": 3297,
            "model": "azure/text-embedding-ada-002",
            "model_info": {
                "mode": "embedding"
            },
            "supported_openai_params": [],
            "model_source": 1
        },
        {
            "id": 3267,
            "model": "openai/bge-m3",
            "model_info": {
                "mode": "embedding"
            },
            "supported_openai_params": [],
            "model_source": 1
        },
        {
            "id": 3365,
            "model": "openai/bge-m3",
            "model_info": {
                "mode": "embedding"
            },
            "supported_openai_params": [],
            "model_source": 3
        },
        {
            "id": 3338,
            "model": "openai/Qwen3-Embedding-0.6B",
            "model_info": {
                "mode": "embedding"
            },
            "supported_openai_params": [],
            "model_source": 1
        },
        {
            "id": 3342,
            "model": "openai/Qwen3-Embedding-0.6B",
            "model_info": {
                "mode": "embedding"
            },
            "supported_openai_params": [],
            "model_source": 1
        }
    ],
    "msg": "success"
}

错误信息

json
{
    "success": false,
    "error": {
        "code": 1003,
        "message": "参数错误",
        "litellm_message": null,
        "type": "business_error"
    }
}
错误代码错误信息
1000服务器内部错误
1003参数错误
1001数据库错误

目录