nanobar
nanobar

Reputation: 66355

Google translate character limit in a single POST

I have seen in unofficial comments that there is a 5000 character limit. In a single request I am sending an array of strings to be translated which could exceed this limit in total. It's also unclear if this limit applies to a single item in the array, or the total.

I need to know if I have to modify my logic to batch up these requests if there is a limit imposed but I couldn't find relevant information in the docs, including under https://cloud.google.com/translate/quotas

Upvotes: 5

Views: 4844

Answers (1)

Ying Li
Ying Li

Reputation: 2519

The 5000 character limit refers to all characters in the requests. It's briefly mentioned here.

It's a performance limit, not an artificial one, so I don't think stacking them in arrays who make it any better.

Upvotes: 1

Related Questions