Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
概覽
使用/v1/translations 進行文字對文字翻譯。
這個 endpoint 與 音訊翻譯 不同,後者會接收音訊檔案,並且一律輸出英文文字。
/v1/translations。
recommended_for=translation 只適用於文字翻譯(POST /v1/translations),不適用於 音訊翻譯。請求主體
由
/v1/models?recommended_for=translation 回傳的翻譯 model ID。要翻譯的來源文字。
目標語言代碼或語言名稱,取決於 model 支援情況。
選用的來源語言提示。
來源文字格式。支援值:
text/plain、text/html。選用的終端使用者識別碼,用於濫用監控與請求追蹤。
回應
翻譯後的文字。
產生翻譯結果的 model。
model 偵測到或接受的來源語言。
本次請求使用的目標語言。