Skip to main content

SubmitImageTranslateTask

Use Tongyi multimodal translation to submit an image for translation.

Debug

You can directly run this API in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

RAM authorization

The following table describes the authorization information for this API, which can be used in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the operation. Details:
    • Required resource types are marked with a leading asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service 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.
ActionAccess levelResource typeCondition keyDependent action
anytrans:SubmitImageTranslateTasknone
*All Resource
*
    None
None

Request syntax

POST /anytrans/translate/image/submit HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

The ID of the Model Studio workspace used for the current request.

llm-kqtrcpdee4xm29xx
formatstringNo

The translation format.

image
sourceLanguagestringYes

The source language.

zh
targetLanguagearrayYes

The list of target languages.

stringYes

A target language.

en
textstringYes

The URL of the image to translate.

https://img.alicdn.com/imgextra/i3/2214557014466/O1CN0174Thmb1irTsyTXYFO_!!4611686018427386306-0-item_pic.jpg
scenestringYes

The translation model.

Valid values:
  • general: Professional Edition.
  • flash: Lightweight Edition.
flash
extobjectNo

Extended parameters that control translation features.

examplesarray<object>No

The list of translation examples.

objectNo

A translation example.

tgtstringNo

The target text.

hello
srcstringNo

The source text.

你好
domainHintstringNo

Domain hint (a natural-language English text that instructs the translation style of the large model)

this sentence from an e-commerce product image, please provide a translation that is both highly concise and no more than 1.2 times the length of the original.
sensitivesarrayNo

The sensitive word library.

stringNo

A sensitive word to filter.

password
terminologiesarray<object>No

The translation terminology library.

objectNo

A term pair to intervene.

tgtstringNo

The translation after intervention.

ML
srcstringNo

The source text.

机器学习
textTransformobjectNo

Case conversion of the translated text.

toLowerbooleanNo

Converts the entire translation to lowercase.

Valid values:
  • true: Yes.
  • false: No.
false
toUpperbooleanNo

Converts the entire translation to uppercase.

Valid values:
  • true: Yes.
  • false: No.
false
toTitlebooleanNo

Converts the entire translation to capitalized (initial letters capitalized).

Valid values:
  • true: Yes.
  • false: No.
false
paramMapanyNo

Extended parameter configuration (bizUserId: the business-level user ID, used to distinguish different business users so that terminology intervention is isolated by user and users do not affect each other. bizType: the business scenario type/identifier, used to distinguish different scenarios so that terminology intervention is isolated by scenario and scenarios do not affect each other.)

Valid values:
  • bizType: The business scenario type.
  • bizUserId: The business user ID.
{"bizUserld":"123456","bizType":session"}
trackingDatastringNo

User-defined pass-through data. The translation service does not process it and returns it as-is in the response, which is used for scenarios such as tracking.

{"traceId":"trace_123456"}

Response parameters

ElementTypeDescriptionExample
object

Schema of Response

codestring

The response error code.

success
messagestring

The response message.

success
requestIdstring

The request ID, used to trace API calls.

42FF90E5-5D40-5797-AAF6-8A4D837CCCD5
successboolean

Indicates whether the call was successful.

true
httpStatusCodestring

The HTTP status code.

200
dataobject

The returned data.

taskIdstring

The image translation task ID.

2746f4be-cff2-465e-a2c6-12bff30ce0f9
statusstring

The translation status.

Valid values:
  • in_process: In progress.
  • success: Completed.
success
trackingDatastring

User-defined pass-through data. The translation service does not process it and returns it as-is in the response, which is used for scenarios such as tracking.

{"traceId":"trace_123456"}

Examples

Success response JSON format
{
  "code": "success",
  "message": "success",
  "requestId": "42FF90E5-5D40-5797-AAF6-8A4D837CCCD5",
  "success": true,
  "httpStatusCode": 200,
  "data": {
    "taskId": "2746f4be-cff2-465e-a2c6-12bff30ce0f9",
    "status": "success",
    "trackingData": {
      "traceId": "trace_123456"
    }
  }
}

Error codes

HTTP status codeError codeError message
400IdempotentParameterMismatchThe 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.
Visit the Error Center to view more error codes.

Change history

Change timeChange summaryOperation
2026-03-17OpenAPI error codes changed, OpenAPI response structure changedView change details
2025-12-25OpenAPI error codes changedView change details