Text Translation

translation/automatic_translation/google by Google Cloud
Text TranslationProvider default · Sync · Text input
Price from
$20 / 1M characters
Tasks
1
Text Translation
Regions
Mode
sync
Input
Text
Output
text

About Google Cloud Text Translation

Automatic translation or machine translation (MT) is the process of automatically translating a text from one language to another language. The aim of it is to enable people to communicate and access information in different languages, without the need for a human translator.

Google Cloud Text Translation is Google Cloud's default model for Text Translation available on Eden AI for Text Translation, from $20 / 1M characters. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint.

Learn more about Text Translation APIs on Eden AI

Tasks and prices

Google Cloud Text Translation is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.

Task
Price
Regions
Mode
Docs
Playground
Text Translationtranslation/automatic_translation/google
$20 / 1M characters
sync

Parameters

What you send and what you get back when you call Google Cloud Text Translation through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • text (required): text. Text to translate
  • target_language (required): text. Target language code
  • source_language: text. Source language code

Response

  • text

Estimate your monthly cost

Enter your monthly volume for Text Translation to compare Google Cloud Text Translation with its cheapest alternatives.

Call Google Cloud Text Translation with Eden AI

Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.

import requests

response = requests.post(
    "https://api.edenai.run/v3/universal-ai",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "translation/automatic_translation/google",
        "input": {"text": "Hello, how are you?", "target_language": "fr"},
    },
)
print(response.json())

Questions about Google Cloud Text Translation

On Eden AI, Google Cloud Text Translation costs $20 / 1M characters for Text Translation. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Google Cloud Text Translation is available for: Text Translation. Input: Text. Output: text.

Eden AI offers Text Translation from 6 providers, all callable with the same API key. The cheapest models are compared just below.

More from Google Cloud

Other Google Cloud models on Eden AI, for every task.