POST /accounts/{account_id}/ai/run/@cf/ai4bharat/indictrans2-en-indic-1B

Execute @cf/ai4bharat/indictrans2-en-indic-1B model.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
tags String No
queueRequest String No

Request body fields

Name Type Required Description
text Yes

Input text to translate. Can be a single string or a list of strings.

target_language String Yes

Target langauge to translate to

Valid values:

  • "awa_Deva"
  • "pan_Guru"
  • "mal_Mlym"
  • "gom_Deva"
  • "mni_Beng"
  • "kan_Knda"
  • "kas_Arab"
  • "urd_Arab"
  • "ben_Beng"
  • "bho_Deva"
  • "mar_Deva"
  • "gon_Deva"
  • "san_Deva"
  • "hin_Deva"
  • "doi_Deva"
  • "guj_Gujr"
  • "mai_Deva"
  • "tel_Telu"
  • "snd_Deva"
  • "sat_Olck"
  • "mag_Deva"
  • "asm_Beng"
  • "snd_Arab"
  • "eng_Latn"
  • "brx_Deva"
  • "lus_Latn"
  • "tam_Taml"
  • "kas_Deva"
  • "unr_Deva"
  • "npi_Deva"
  • "hne_Deva"
  • "ory_Orya"
  • "kha_Latn"
  • "mni_Mtei"

Default value: "hin_Deva"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.