cURL
Request
Send amultipart/form-data request with these fields:
Response
The response body contains the translated file bytes. Use theContent-Type and Content-Disposition headers to store the result. When the source language was detected, the response also includes X-Detected-Source-Language.
TypeScript
Pricing
Pricing is passed through at the Google Cloud Translation provider rate with no Case.dev markup. TXT files are billed by source character. DOCX and PDF files are billed at $0.08 per source page.Format behavior
- TXT content is translated as UTF-8 text. The TXT limit is 100,000 characters.
- DOCX and PDF files use Google Cloud Document Translation to retain much of the source layout and formatting.
- PDF input must contain searchable, selectable text. Scanned PDFs are not accepted by this endpoint.
- Photos and other non-text document elements are retained, but text embedded inside an image is not translated.
- Complex PDF layouts, overlapping text, and DOCX text boxes may not translate or render perfectly. Review the output before relying on it.
Machine translation can contain errors and is not a certified legal translation.

