Welcome to Efficient NLP
Getting Started with the Translation API
This guide will walk you through the process of getting started with our service. By integrating our API into your applications, you'll be able to effortlessly translate text.
To get started, you'll need to copy the API key from the cloud console. Then, to use the API, just send a POST request to https://api.efficientnlp.com/v1/translate
. The request body should be a JSON object with the following fields:
q
: List of strings to translate.source
: The language of the text to translate.target
: The language to translate the text to.
Here are some examples of how to do this in several languages:
Bash
Python
Typescript
Translation Response
The API response will be a JSON list with the translations in the same order as provided in the source:
[ { "translatedText": "Bonjour Monde" } ]
Conclusion
Congratulations! You now have the basic knowledge to make requests to our Translation API. If you have any questions or need further assistance, please reach out to bai@leveltext.com
. Happy translating!
Last updated