A curated collection of prompts, runnable code examples, and schemas for working with the DeepL API using AI assistants, automation tools, and your own applications.
| Directory | Purpose |
|---|---|
/prompts |
Copy-paste prompts for AI assistants (Claude, ChatGPT, Copilot, etc.) |
/examples |
Runnable, tested code examples in multiple languages |
/schemas |
OpenAPI spec and Postman collection for the DeepL API |
/_templates |
Contribution templates for consistent formatting |
Sign up at deepl.com/pro. Free tier available — no credit card required for the free API.
Set your key as an environment variable:
export DEEPL_API_KEY="your-key-here"Free vs. paid API: Free accounts use
api-free.deepl.com; paid accounts useapi.deepl.com. Every example in this repo checks for the:fxsuffix on your key and selects the correct host automatically.
- I want to ask an AI to write DeepL code for me →
/prompts - I want runnable code right now →
/examples - I want to import the API into Postman / Insomnia →
/schemas
DeepL supports 33 source languages and 31 target languages as of early 2026. Run the /languages endpoint to get the current list:
curl "https://api-free.deepl.com/v2/languages?type=target" \
-H "Authorization: DeepL-Auth-Key $DEEPL_API_KEY".
├── README.md ← you are here
├── LICENSE ← MIT
├── CONTRIBUTING.md
│
├── prompts/ ← AI-assistant entry-points
│ ├── README.md
│ ├── translate.md
│ ├── detect-language.md
│ ├── glossary.md
│ ├── create-glossary.md
│ ├── manage-glossary.md
│ ├── document-translation.md
│ ├── formality.md
│ ├── context.md
│ └── tag-handling.md
│
├── examples/ ← Runnable code, grouped by feature
│ ├── README.md
│ ├── translate/
│ │ ├── README.md
│ │ ├── openapi.yaml
│ │ ├── curls.sh
│ │ ├── node/
│ │ ├── python/
│ │ └── dotnet/
│ ├── detect-language/
│ │ ├── README.md
│ │ ├── curls.sh
│ │ ├── node/
│ │ └── python/
│ └── glossary/
│ ├── README.md
│ ├── curls.sh
│ ├── node/
│ └── python/
│
├── schemas/ ← Machine-readable API specs
│ ├── openapi.json
│ └── postman_collection.json
│
└── _templates/ ← Contribution scaffolding
├── prompt.template.md
└── example.readme.template.md
Contributions are very welcome! Please read CONTRIBUTING.md before opening a pull request.