Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. File Ingestion and Replication REST API
  7. Streaming Ingestion and Replication REST API
  8. Model Serve REST API
  9. RunAJob utility
  10. ParamSetCli utility
  11. REST API codes
  12. REST API resource quick references

REST API Reference

REST API Reference

Input and response for the text translation model

Input and response for the text translation model

To generate predictions from the text translation quick start model, include the languages and input text in the request. If successful, the request returns the translated text.

Input fields

Include the following attributes in the request field of the POST request:
Attribute
Type
Description
source_language
String
Language code of the input text.
target_language
String
Language code to translate to.
input_text
String
Text to translate. Text can be a maximum of 3,000 characters.
To see the languages that the model supports and the language codes, refer to the Hugging Face documentation.

POST response

Returns the translated text as a string.

0 COMMENTS

We’d like to hear from you!