---
title: "提取文本关系"
method: POST
path: "/initialization/extract/text-relation"
tags: ["初始化"]
---

# 提取文本关系

`POST /initialization/extract/text-relation`

从文本中提取实体和关系

## Request body

- InternalHandlerTextRelationExtractionRequest
  - `model_id` string, required
  - `tags` string[], required
  - `text` string, required

## 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/extract/text-relation/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/d113fcd208b2/schema)
