Transformation

Learn how to translate and summarize text, and convert it to emojis using the OpenAI API.

Overview

The chat completions endpoint has the ability to translate from one language to another language, summarize the text, and convert the text to emojis or vice versa.

Press + to interact
Transformation
Transformation

We input the prompt text and request parameters into the OpenAI API’s model to transform the text.

Press + to interact
Completions: text transformation
Completions: text transformation

Translation

The OpenAI API can translate from one language to another language.

Let’s see how to provide the prompt to translate from English to other languages.

Translate this into 1. French, 2. Spanish and 3. Japanese.

We provide an online learning platform made by developers, created for developers.

Example

Let’s try the above example in the code widget below: ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy