A free-to-deploy translation API, compatible with OwO-Network/DeepLX, built with serverless platforms to avoid frequent request issues such as HTTP 429 Too Many Requests.
Tip
For better security and to prevent misuse, it’s strongly recommended to configure a token.
Multiple tokens can be set using commas (,).
Click the one-click deploy buttons below, or fork the repository and configure the deployment manually.
-
One-Click Deploy:
-
Manual Deploy:
- Create a new project in Vercel (or import your forked repository)
- Go to the project →
Settings→Build and Development - Set
Root Directoryto:platform/vercel - Go to
Environment VariablesAdd an environment variable:token(Optional)
-
One-Click Deploy:
-
Manual Deploy:
- Fork this repository and import it into Netlify
- Go to Site Settings
Project configuration→Build & Deploy→Build settings - Set
Package directoryto:platform/netlify - Go to
Environment VariablesAdd an environment variable:token(Optional)
-
One-Click Deploy:
-
Manual Deploy:
- In a similar way to Vercel and Netlify, Fork this repository and imported, with access to set up the specified deployment path and configure
token.
- In a similar way to Vercel and Netlify, Fork this repository and imported, with access to set up the specified deployment path and configure
curl 'https://your-api-address/translate?token=your-token' \
--header 'Content-Type: application/json' \
--data '{
"text": "Hello, World",
"from": "en",
"to": "zh"
}'
# Or use Authorization header
curl 'https://your-api-address/translate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your-token' \
--data '{
"text": "Hello, World",
"from": "en",
"to": "zh"
}'{
"code": 200,
"id": 145289000,
"method": "Free",
"from": "EN",
"to": "ZH",
"source_lang": "EN",
"target_lang": "ZH",
"data": "你好,世界",
"alternatives": [
"世界,你好",
"世界你好",
"您好,世界"
]
}