Patent Basic Data
Translate text (SSE)
Translate content from source to target language and stream segments over SSE. Choose the strategy with mode: fast (default) segmented, stream sliding-window, raw direct model pass-through.
post/hiro_translation/translate
Request
- Base URLhttps://connect.patsnap.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"content": "本发明涉及一种用于图像识别的装置,包括处理器和存储器。\n所述处理器被配置为对输入图像进行分类。",
"mode": "fast"
}Response
Successful translate text (sse) response.
Example response
{
"_meta": {
"openapi_billing": {
"version": 1,
"multiplier": "2"
}
},
"state": "success",
"progress": "1/2",
"textOriginal": "本发明涉及一种用于图像识别的装置,包括处理器和存储器。",
"textTranslated": "The present invention relates to an apparatus for image recognition, comprising a processor and a memory.",
"translatedCharacterCount": 105
}Changes
No recorded changes to this operation across all 1 revision of this API.