The DeepL API translates text and documents with DeepL's own neural models. For the European languages I work in, English, French and German, it still reads more natural than most alternatives, and it lets me pick the formal or informal "you". I have used it for years. In NicAI it sits behind 1 shared script that my launcher and any agent can call.

What it is for
- Text translation: 1 or more strings per request, source language detected automatically.
- Document translation: Word, PowerPoint, PDF and other files, with the layout kept.
- Formality: formal or informal address, for example "Sie" or "du" in German, "vous" or "tu" in French.
- Glossaries: fixed translations for your own terms, so a product name or a job title never changes.
- Rephrasing: the DeepL Write API improves text in the same language.
DeepL is a company from Cologne, Germany. It grew out of Linguee, the bilingual dictionary launched in 2009, and released the DeepL Translator in August 2017. Jarek Kutylowski is its founder and CEO.
Plans
| Plan | Price | Included |
|---|---|---|
| API Free | 0 EUR | 500,000 characters a month |
| API Pro | About 5.49 EUR a month, plus about 25 EUR per 1M characters | No monthly cap, data not stored for training |
The Free plan uses its own host, api-free.deepl.com. A free key ends in :fx. The Pro prices above come from third-party price lists: DeepL shows the live price on its plans page after you choose a country. On the Pro plan, DeepL deletes your texts after translation and doesn't use them to train its models, which matters for business text.
How to call it
The API is plain HTTPS with JSON, so any language works. Official client libraries exist for Python, Node.js, .NET, PHP, Java and Ruby. In Python:
pip install deepl
import deepl
translator = deepl.Translator("your-auth-key")
result = translator.translate_text("Could you send me the report?", target_lang="DE", formality="prefer_less")
print(result.text) # Kannst du mir den Bericht schicken?
The REST call underneath:
curl -X POST https://api.deepl.com/v2/translate \
--header "Authorization: DeepL-Auth-Key $DEEPL_API_KEY" \
--header "Content-Type: application/json" \
--data '{"text": ["Could you send me the report?"], "target_lang": "FR", "formality": "prefer_more"}'
Gotchas:
- Use
prefer_moreandprefer_less, notmoreandless. Theprefer_values never fail: for a language with no formal form, DeepL ignores them.moreandlessreturn an error for those languages. - English and Portuguese need a variant as target:
EN-GBorEN-US,PT-PTorPT-BR. - Error 456 means the monthly character quota is used up. 403 means the key was refused, often a free key sent to the Pro host.
- Characters count, not words. Spaces and punctuation are billed too.
How NicAI uses it
1 shared script, ~/ai/_shared/deepl.py, standard library only, so it needs no install. It reads the text from the arguments or from stdin and prints the translation:
pbpaste | python3 ~/ai/_shared/deepl.py --from en --to de --formality informal
python3 ~/ai/_shared/deepl.py --to fr --formality formal "Could you send me the report?"
formal sends prefer_more, informal sends prefer_less. The script picks the Free or Pro host from the key, and it always sends EN-GB and PT-PT.
Where it runs:
- My launcher. I copy a text, type
en2de(oren2de-du,en2fr,en2fr-tu) and press Return. The translation replaces the clipboard. Formal is the default,-duand-tugive the informal form. The full set-up is in Launchee translate: DeepL from the clipboard, formal or informal. - Agents. Any Claude Code session can pipe text through the same script. The shared scripts are described in NicAI shared tools.
A raw DeepL translation is a first draft, not a finished email. For German and French in my own voice, Claude writes the text directly with my style rules, and DeepL is the quick tool for everything else. My older DeepL scripts from 2024, glossaries included, are in Translatee.
Further reading

