See the
Pricing and
FAQ pages for details. Find
more information at
Google Translate docs.
Please note that while Google Translate supports authentication via service
account and application default credentials like other Cloud Platform APIs,
it also supports authentication via a public API access key. If you wish to
authenticate using an API key, follow the
before you begin
instructions to learn how to generate a key.
Example:
use Google\Cloud\ServiceBuilder;
$builder = new ServiceBuilder([
'key' => 'YOUR_KEY'
]);
$translate = $builder->translate();