Skip to content

bropines/Deeplx-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepLX Vercel

English | Русский

A free, serverless solution for DeepL translation API, allowing seamless integration with your applications. Deploy your own instance or run it locally as per your needs.

Features

  • Serverless Architecture: Built to leverage the scalability and simplicity of serverless platforms.
  • Easy Deployment: One-click deployment to Vercel with minimal configuration.
  • Local Development: Supports local development for testing and modifications. (Either via vercel CLI, or via the method described below)

Deploying on Vercel

Deploy your own DeepLX translation API by clicking the button below.

Deploy with Vercel

After clicking the button, simply follow the prompts to set up the API on Vercel.

Running Locally

Here is the local deployment method described in the deeplx-serverless repository from LegendLeo

git clone https://github.com/LegendLeo/deeplx-serverless
cd deeplx-serverless
npm install
npm run start

This will start a local server with the API running on http://localhost:9000.

Usage

Once deployed or running locally, you can start making requests to translate text. Make a POST request to /api/translate with the following JSON structure:

{
  "text": "Your text to translate",
  "source_lang": "Source language code (e.g., 'en')",
  "target_lang": "Target language code (e.g., 'de')"
}

The API will respond with the translated text. Here's an example using curl:

curl --location --request POST 'https://your-deployment-url/api/translate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "text": "Hello, World!",
    "source_lang": "en",
    "target_lang": "de"
}'

Replace https://your-deployment-url with the actual URL of your Vercel deployment or http://localhost:9000 if you're running locally.

After receiving the link in the format https://your-deployment-url/api/translate just paste it into api_url image

Thanks

LegendLeo for the basic serverless implementation.

ChatGPT (Who wrote this readme for me)

OwO-Network for the project DeepLX

Contributing

Contributions are welcome! If you have a suggestion or fix, please fork the repository and submit a pull request.

License

This project is open-sourced under the MIT license. See the LICENSE file for more details.

About

Serverless DeepLX on vercel implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published