Queries the Tongyi Multimodal Translation termbase for intervention terms.
Debugging
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details are as follows:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types supported for authorization in the operation. Details:
- Required resource types are marked with a preceding *.
- For operations that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keys defined by the cloud product itself.
- Dependent action: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| anytrans:TermQuery | none | *All resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | The ID of the Model Studio workspace used for this request. | llm-kqtrcpdee4xm29xx |
| sourceLanguage | string | Yes | The source language. | zh |
| targetLanguage | string | Yes | The target language. | en |
| scene | string | Yes | The translation model. Valid values:
| mt-flash |
| text | string | No | The input sentence that contains intervention terms. | 今天的天气非常不错,我准备去跟我的好朋友去学习一些大模型相关和应用接口的知识。 |
| ext | object | No | Extended parameters. | |
| paramMap | any | No | Extended parameter configuration (bizUserld: the business-level user ID used to distinguish different business users, so that term interventions are isolated by user and do not affect each other. bizType: the business scenario type/identifier used to distinguish different scenarios, so that term interventions are isolated by scenario and do not affect each other.) Valid values:
| {"bizUserld":"123456","bizType":session"} |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| code | string | The response status code. | success |
| message | string | The response message. | success |
| requestId | string | The request ID. | C3C70C8F-E026-17D8-854E-7F8EF2F5C909 |
| success | boolean | Whether the API call is successful. | true |
| httpStatusCode | string | The HTTP status code. | 200 |
| data | object | The returned data. | |
| terms | array<object> | A list of intervention terms. | |
| terms | object | An intervention term. | |
| termId | string | The ID of the intervention term. | 92669963 |
| src | string | The source text. | 大模型 |
| tgt | string | The translated text after intervention. | LLM |
| failCount | long | The number of failures. | 0 |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
Change history
| Change time | Change summary | Operation |
|---|---|---|
| 2025-12-25 | OpenAPI error codes changed, OpenAPI request parameters changed | View change details |