diff --git a/api-reference/document.mdx b/api-reference/document.mdx index d12fef9..a0417e3 100644 --- a/api-reference/document.mdx +++ b/api-reference/document.mdx @@ -14,6 +14,7 @@ The document translation API allows you to translate whole documents and support * `txt` - Plain Text Document * `xlf / xliff` - XLIFF Document, version 2.1 * `srt` - SRT (SubRip Subtitle) Document +* `jpeg` / `jpg` / `png` - Image Please note that with every submitted document of type .pptx, .docx, .doc, .xlsx, or .pdf, you are billed a minimum of 50,000 characters with the DeepL API plan, no matter how many characters are included in the document. @@ -136,7 +137,9 @@ These examples are for demonstration purposes only. In production code, the auth
  • `pdf`: Portable Document Format
  • `htm / .html`: HTML Document
  • `txt`: Plain Text Document
  • -
  • `xlf / .xliff`: XLIFF Document, version 2.1
  • +
  • `xlf / xliff`: XLIFF Document, version 2.1
  • +
  • `srt` - SRT (SubRip Subtitle) Document
  • +
  • `jpeg` / `jpg` / `png` - Image
  • diff --git a/api-reference/openapi.yaml b/api-reference/openapi.yaml index 392a6a1..170fda0 100644 --- a/api-reference/openapi.yaml +++ b/api-reference/openapi.yaml @@ -33,6 +33,7 @@ tags: * `txt` - Plain Text Document * `xlf / xliff` - XLIFF Document, version 2.1 * `srt` - SRT Document + * `jpeg` / `jpg` / `png` - Image - name: RephraseText description: |- The `rephrase` endpoint is used to make corrections and adjustments to texts based on style or tone. @@ -622,6 +623,7 @@ paths: * `txt` - Plain Text Document * `xlf / xliff` - XLIFF Document, version 2.1 * `srt` - SRT Document + * `jpeg` / `jpg` / `png` - Image filename: type: string description: The name of the uploaded file. Can be used as an alternative diff --git a/docs/resources/roadmap-and-release-notes.mdx b/docs/resources/roadmap-and-release-notes.mdx index d98b451..48bad32 100644 --- a/docs/resources/roadmap-and-release-notes.mdx +++ b/docs/resources/roadmap-and-release-notes.mdx @@ -19,6 +19,7 @@ rss: true - Added HE, TH and VI to the languages endpoint, since they are now also available in document translation - Added 6 additional beta languages, for text and document translation. See the previous note about 75 new languages. - Added a new parameter to the text translation API to allow custom instructions, making it possible to customize the translation behavior (e.g. ["Use a friendly, diplomatic tone"]) +- Added support for JPEG and PNG images in [document translation](/api-reference/document), currently in Beta. diff --git a/docs/resources/usage-limits.mdx b/docs/resources/usage-limits.mdx index 26173dc..3f38973 100644 --- a/docs/resources/usage-limits.mdx +++ b/docs/resources/usage-limits.mdx @@ -12,18 +12,20 @@ title: "Usage and limits" ### Maximum Upload Limits Per Document Format -| File Format | DeepL API Free | DeepL API Pro | -| --------------------- | ------------------------------ | -------------------------------- | -| Word (.docx / .doc) | 10 MB
    500,000 characters | 30 MB
    1 million characters | -| PowerPoint (.pptx) | 10 MB
    500,000 characters | 30 MB
    1 million characters | -| Excel (.xlsx) | 10 MB
    500,000 characters | 30 MB
    1 million characters | -| PDF (.pdf) | 10 MB
    500,000 characters | 30 MB
    1 million characters | -| Text (.txt) | 1 MB
    500,000 characters | 1 MB
    1 million characters | -| HTML (.html) | 5 MB
    500,000 characters | 5 MB
    1 million characters | -| XLIFF (.xlf/.xliff)\* | 10 MB
    500,000 characters | 10 MB
    1 million characters | -| SRT (.srt) | 150 KB
    500,000 characters | 150 KB
    1 million characters | - -*Please note that DeepL only supports .xliff files with the version 2.1. +| File Format | DeepL API Free | DeepL API Pro | +| ----------------------- | ------------------------------ | -------------------------------- | +| Word (.docx / .doc) | 10 MB
    500,000 characters | 30 MB
    1 million characters | +| PowerPoint (.pptx) | 10 MB
    500,000 characters | 30 MB
    1 million characters | +| Excel (.xlsx) | 10 MB
    500,000 characters | 30 MB
    1 million characters | +| PDF (.pdf) | 10 MB
    500,000 characters | 30 MB
    1 million characters | +| Text (.txt) | 1 MB
    500,000 characters | 1 MB
    1 million characters | +| HTML (.html) | 5 MB
    500,000 characters | 5 MB
    1 million characters | +| XLIFF (.xlf/.xliff)\* | 10 MB
    500,000 characters | 10 MB
    1 million characters | +| SRT (.srt) | 150 KB
    500,000 characters | 150 KB
    1 million characters | +| Images (.jpeg/.png)\*\* | 3 MB
    500,000 characters | 3 MB
    1 million characters | + +*Please note that DeepL only supports .xliff files with the version 2.1.
    +**Image translation is currently in Beta. During the Beta phase, characters translated in image file formats are not billed and not counted against your character threshold. ### Your Usage