Beta Localization Translate API
POSThttps://api.01ai.cloud/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`。
請選擇

響應

Integration workbench

Shell

Python

JavaScript

Java

Go

PHP

溫馨提示:對於流式請求,上面的代碼可能不完全適用。請參閱對接文檔以進行更改。

本地化翻译
允许用通用余额

啟用「允許通用餘額」後,專屬餘額不足將自動使用通用餘額。