こちらのページは利用できません 日本語.

Translation API for Flask

Translate texts using Nitro Translation API!

The Nitro Translation API offers a straightforward programmatic interface to facilitate human translations of any given text into multiple supported languages. Working with professional translators instead of machine algorithms provides high-quality and culturally accurate translations.

framework-1

How to use the Nitro Translation API with Flask?

Integrate the Nitro Translation API into your Flask projects to benefit from multilingual translation support. With real-time translation capabilities, you can increase your project's global reach and provide a better experience for users across different languages.

Read API Documentation for Flask Translation

Configuring Nitro Translation API in Your Flask Application

To integrate the Nitro Translation API with your Flask application, you will need to set up HTTP Basic authentication using an API key. This key, generated in the Settings page of your Nitro account, acts as the username in the authentication process. Encode the API key in Base64 format, combined with a blank password and a colon (:), and include this in the Authorization header for all API requests: Authorization: Basic $credentials. This secure method ensures that your Flask application can effectively communicate with the Nitro Translation API for translation services.

Flask, a lightweight and flexible Python web framework, offers a straightforward way to integrate with external APIs such as the Nitro Translation API. By utilizing Flask's built-in requests library, you can easily handle HTTP requests and manage headers to include the necessary Authorization details. Flask's middleware can also be configured to handle and log translation requests. This approach not only enhances your app's international reach but also ensures a fluid and responsive user experience, as translation data is dynamically loaded and applied to the content.

Supported Languages

With Nitro’s translation API for Flask, you can access a wide range of supported languages for fast translations, including English, Spanish, French, German and many more. Ensure your content reaches global audiences by utilizing accurate and context-aware translations for over 200+ language pairs.

Language codeLanguageLanguage codeLanguage
arアラビア語azアゼルバイジャン語
beベラルーシ語bgブルガリア語
bnベンガル語caカタルーニャ語
csチェコ語daデンマーク語
deドイツ語elギリシア語
en英語es-ESスペイン語
es-MXスペイン語(メキシコ)etエストニア語
faペルシア語fiフィンランド語
frフランス語heヘブライ語
hiヒンディー語hrクロアチア語
huハンガリー語idインドネシア語
isアイスランド語itイタリア語
ja日本語kkカザフ語
ko韓国語ltリトアニア語
lvラトビア語ml-INマラヤラム語
msマレー語myビルマ語
nlオランダ語noノルウェー語
plポーランド語pt-BRポルトガル語(ブラジル)
pt-PTポルトガル語 (ヨーロッパ)roルーマニア語
ruロシア語skスロバキア語
slスロベニア語srセルビア語キリル
sr-CSセルビア語アルファベットsv-SEスウェーデン語
taタミル語thタイ語
tlタガログ語trトルコ語
ukウクライナ語ur-PKウルドゥー語 (パキスタン)
uzウズベク語viベトナム語
zh-CN簡体字中国語zh-TW繁体字中国語
afアフリカーンス語fr-CAカナダ・フランス語
hy-AMアルメニア語kaジョージア語
teテルグ語tgタジク語
ml-INマラヤラム語kyキルギス語
msマレー語
さらに表示

Pricing

Nitro’s translation API for Flask is free - you do not pay for access, integration, calls, key generation or anything else, except the translations you order!

Simply request the translation for Flask through Nitro's Translation API, and you'll be billed based on the number of characters translated, including spaces, at competitive rates. Start translating without minimum order requirements and get high-quality translations tailored to your needs.

girl with computer
girl with computer