v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-133276102.9 KB
projects

Refines the input translated text to improve the quality.

post/v3/{+parent}:refineText

Path parameters

parentstring required

Required. Project or location to make a call. Must refer to a caller's project. Format: projects/{project-number-or-id}/locations/{location-id}. For global calls, use projects/{project-number-or-id}/locations/global or projects/{project-number-or-id}.

Request body

sourceLanguageCodestring

Required. The BCP-47 language code of the source text in the request, for example, "en-US".

targetLanguageCodestring

Required. The BCP-47 language code for translation output, for example, "zh-CN".

Response

Successful response