TextCortex
    TextCortex
    • Generate code
      POST
    • Generate SQL queries
      POST
    • Create ad
      POST
    • Create blog content
      POST
    • Autocomplete
      POST
    • Create email
      POST
    • Expand
      POST
    • Paraphrase
      POST
    • Create product description
      POST
    • Create product title
      POST
    • Rewrite
      POST
    • Simplify
      POST
    • Create social media post
      POST
    • Summarize
      POST
    • Translate
      POST
    • Create video description
      POST

      Translate

      Develop Env
      https://dev.your-api-server.com
      Develop Env
      https://dev.your-api-server.com
      POST
      /texts/translations
      Translate given text into another language.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://dev.your-api-server.com/texts/translations' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "formality": "default",
          "source_lang": "string",
          "target_lang": "string",
          "text": "string"
      }'
      Response Response Example
      {}

      Request

      Body Params application/json
      formality
      optional
      The formality of the generated text, for languages that support it.
      Allowed values:
      defaultmorelessprefer_moreprefer_less
      source_lang
      string 
      optional
      The language of the text to translate. Available options are:
      "en": English (Default)
      "auto": The API will attempt to detect the language of the text and translate it.
      "ar": Arabic
      "bg": Bulgarian
      "cs": Czech
      "da": Danish
      "de": German
      "el": Greek
      "es": Spanish
      "et": Estonian
      "fi": Finnish
      "fr": French
      "hu": Hungarian
      "id": Indonesian
      "it": Italian
      "ja": Japanese
      "ko": Korean
      "lt": Lithuanian
      "lv": Latvian
      "nb": Norwegian
      "nl": Dutch
      "pl": Polish
      "pt": Portuguese (all Portuguese varieties mixed)
      "ro": Romanian
      "ru": Russian
      "sk": Slovak
      "sl": Slovenian
      "sv": Swedish
      "tr": Turkish
      "uk": Ukrainian
      "zh": Chinese
      target_lang
      string 
      required
      The language to translate to. Available options are:
      "ar": Arabic
      "bg": Bulgarian
      "cs": Czech
      "da": Danish
      "de": German
      "el": Greek
      "en": Alias for en-us
      "en-gb": English (British)
      "en-us": English (American)
      "es": Spanish
      "et": Estonian
      "fi": Finnish
      "fr": French
      "hu": Hungarian
      "id": Indonesian
      "it": Italian
      "ja": Japanese
      "ko": Korean
      "lt": Lithuanian
      "lv": Latvian
      "nb": Norwegian
      "nl": Dutch
      "pl": Polish
      "pt": Alias for pt-pt
      "pt-br": Portuguese (Brazilian)
      "pt-pt": Portuguese (all Portuguese varieties excluding Brazilian Portuguese)
      "ro": Romanian
      "ru": Russian
      "sk": Slovak
      "sl": Slovenian
      "sv": Swedish
      "tr": Turkish
      "uk": Ukrainian
      "zh": Chinese (simplified)
      text
      string 
      required
      The text to translate.
      Examples

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Previous
      Summarize
      Next
      Create video description
      Built with