---
title: "测试Embedding模型"
method: POST
path: "/initialization/embedding/test"
tags: ["初始化"]
---

# 测试Embedding模型

`POST /initialization/embedding/test`

测试Embedding接口是否可用并返回向量维度

## Request body

- InternalHandlerModelTestRequest
  - `apiKey` string
  - `baseUrl` string
  - `customHeaders` object
  - `dimension` integer
  - `extraConfig` object
  - `interfaceType` string
  - `modelName` string, required
  - `provider` string
  - `source` string — 为空时按需默认为 "remote"

## Response `200`

测试结果

- object

## Other responses

- `400` — 请求参数错误

## Changes

- **2026-05-11** `80a8b4b45cb8` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/initialization/embedding/test/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/80a8b4b45cb8/schema)
