web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / DeepL API in Power Aut...
Power Automate
Suggested Answer

DeepL API in Power Automate: High Character Count for DOCX/PPTX Files – How to Reduce Costs?

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone,

I’m using the DeepL API inside a Power Automate flow, and technically everything works as intended:

New file in SharePoint → Get file content → DeepL upload + translate → Download result → Save translated file in SharePoint → Send email with link

The automation works perfectly.

The problem: DeepL counts huge character volumes for DOCX/PPTX files

Even though the Word files I tested contain only around 150–200 visible characters, DeepL charges based on the full internal XML structure of the document.

Because a .docx or .pptx file contains a lot of hidden XML data (styles, formatting, metadata, headers, slide layouts, etc.), DeepL ends up counting 20,000–50,000 characters per file, even when the visible text is tiny.

Because of this, my monthly 350,000-character limit was used up after just a few small 5 test files, resulting in extra costs.

My question for the Power Automate community:

 

  • Is there any way—within Power Automate—to reduce or preprocess files so that:

 

  • DeepL only translates the visible text

 

  • or the XML markup is removed before sending to DeepL

 

  • or the structure can be flattened or cleaned

 

  • or another connector/action is better suited before translation?

 

I want to avoid a situation where someone in my company uploads a large file (e.g., 70 PowerPoint slides) and the translation ends up costing more than a normal DeepL Business plan.

Any suggestions, best practices, or alternative approaches would be greatly appreciated.

Thank you

 

Regards,

Shreenath 

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,932 Moderator on at
     
    Unless you are going to convert the documents to text only, you are stuck, but even if you do this you are going to need some way, like a template to put the data back into a format that does not stink.
     
    So pull it all out as text, use a template to put the translation in, call it a day.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • SM-02121346-0 Profile Picture
    2 on at
     Hi, @ 

    thanks a lot for your answer

    I get the idea of pulling everything out as plain text first, but I’m still a bit unsure about how to actually implement this in Power Automate.

    Would you mind explaining a bit more about how you would approach it?

    1. How can I extract only the visible text from a DOCX/PPTX file in Power Automate?
    • Is there a built-in way to do this, or does it require an external conversion step?

    2. When you mention using a template, how would that work in practice?

    • For example, should I use a Word template, HTML, or something else to rebuild the document with formatting after translation?

    The reason I’m asking is because my users still need the original formatting, so translating plain text alone won’t be enough unless there’s a good way to put everything back together without too much manual work.

    Thanks again 

    Regards,

    Shreenath 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard