API 文档
接口地址: https://api.gugudata.com/ai/multilingual-translation
返回格式: application/json; charset=utf-8
请求方式: POST
请求协议: HTTPS
请求示例: https://api.gugudata.com/ai/multilingual-translation?appkey=YOUR_APPKEY
数据预览: https://www.gugudata.com/preview/multilingual-translation
接口测试: https://api.gugudata.com/ai/multilingual-translation/demo
OpenAPI: https://www.gugudata.com/openapi/gugudata.openapi.3.1.json
请求参数(POST 请求参数以 application/x-www-form-urlencoded 格式、文件流以 formdata 格式传递,具体可参见下方示例代码)
| 参数名 |
参数类型 |
是否必须 |
默认值 |
备注 |
| appkey |
string |
是 |
无 |
有效 APPKEY;支持既有 Query、Body、Header 与 Bearer,多个位置须一致。 |
| content |
string |
是 |
无 |
非空白原文,支持表单与历史 JSON。 |
| language |
string |
是 |
无 |
非空白目标语言名称或代码,兼容日语、日文、jp、japanese;必须显式传递,没有默认目标语言。 |
| streaming |
boolean |
否 |
false |
默认 false;true 使用 SSE,片段 type=content/text,完整模型 JSON 文本 type=done/full_text,含 translated_content,最后 event=end/data=[DONE]。错误或不完整输出没有成功终态。 |
| 参数名 |
参数类型 |
备注 |
| DataStatus.StatusCode |
integer |
接口返回状态码 |
| DataStatus.StatusDescription |
string |
接口返回状态说明 |
| DataStatus.ResponseDateTime |
string |
接口数据返回时间 |
| Data.translated_content |
string |
翻译后的文本内容 |
| DataStatus.RequestParameter |
string |
本次实际业务请求参数,不包含鉴权凭据;Demo 展示对应样例输入。 |
| DataStatus.DataTotalCount |
integer |
同步成功对象计数为 1,失败为 0。 |
{
"DataStatus": {
"RequestParameter": "content=雨渐渐停了,地面还留着湿滑的痕迹。树叶上的水滴在阳光的照射下闪闪发光,像是洒满了无数颗宝石。小明在公园里漫步,呼吸着清新的空气。他看到一只蝴蝶在花丛中翩翩起舞,心中顿时觉得无比愉悦。公园的宁静和美丽让他忘却了所有的烦恼。&language=英文",
"StatusCode": 100,
"StatusDescription": "翻译成功",
"ResponseDateTime": "2026-10-04 04:19:09.108",
"DataTotalCount": 1
},
"Data": {
"translated_content": "The rain gradually stopped, leaving the ground still damp and slippery. Water droplets on the leaves sparkled in the sunlight, as if countless gems had been scattered about. Xiao Ming strolled through the park, breathing in the fresh air. He watched a butterfly dancing gracefully among the flowers, and his heart was instantly filled with immense joy. The tranquility and beauty of the park made him forget all his worries."
}
}