文檔目錄

資訊 API

查詢支援的模型

GET/v1/models

查詢所有可用的翻譯模型。

完整地址
https://otranslator.com/api/v1/models
認證
無需 API Key
Content-Type
application/json
錯誤格式
{ "error": "Invalid API key." }

注意事項

模型列表由當前運行環境配置動態返回,已廢棄模型不會出現在結果中。

創建翻譯任務時如不傳 model,系統會使用當前默認基礎模型。

範例

curl
1curl -X GET 'https://otranslator.com/api/v1/models'

響應

參數類型預設描述範例
modelsString[]-

支援的模型

由服務配置動態返回,例如 ["gpt-4.1-mini", "claude-4-sonnet"]。
術語表 API
建立術語表