Beta Localization Translate API
https://api.yxai-tech.top/localization/translate
This API can be used to translate all JSON files into different target locales, to support localization all over the world.
请求头
acceptstring
指定服务器返回的响应格式。
请选择
authorizationstring
Bearer token
请求体
inputstring | object必填参数
需要翻译的输入内容。
localestring必填参数
需要翻译到的目标语言区域。
extensionstring必填参数
输入文本的文件类型(如 `json` 或 `md`)。
modelstring
用于翻译的大语言模型,默认为 `gpt-3.5`。
请选择
响应

集成指南
温馨提示:对于流式请求,上面的代码可能不完全适用。请参阅对接文档以进行更改。
本地化翻译
允许用通用余额
启用「允许通用余额」后,专属余额不足将自动使用通用余额。

