文档目录

信息 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
创建术语表