Leverage Lexi, your autonomous language expert, to translate, summarize, and generate human-quality text on demand. Integrate sophisticated language skills into any application with a single API call.
import { lexi } from '@do/sdk';
// Translate text from English to Spanish
const translation = await lexi.translate({
text: "Hello, world! Welcome to the future of agentic workflows.",
targetLanguage: "es"
});
console.log(translation.text);
// "Hola, mundo! Bienvenidos al futuro de los flujos de trabajo agénticos."