---
title: "创建向量模型"
method: POST
path: "/api/v1/provider/models/embedding"
tags: ["Embedding Models"]
---

# 创建向量模型

`POST /api/v1/provider/models/embedding`

创建一个新的向量模型。模型必须关联到一个已存在的供应商。

## Request body

- EmbeddingModelCreate
  - `name` string, required
  - `provider_uuid` string, uuid, required
  - `extra_args` object
  - `prefered_ranking` integer

## Response `200`

创建成功

- object
  - `code` integer
  - `data` object
    - `uuid` string, uuid

---

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