Git Product home page Git Product logo

deeplx-vercel's Introduction

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.

deeplx-vercel's People

Contributors

bropines avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.