AI21 Studio provides API access to Jurassic-1 large-language-models. Our models power text generation and comprehension features in thousands of live applications.
Go to siteStudio by AI21 Labs API enables the crafting of human-like text using advanced language models. It can generate content, answer questions, summarize text, or even customize language models for specific tasks. When integrated into Pipedream, this API becomes part of powerful automations that can process and generate textual content dynamically, reacting to various triggers such as incoming emails, form submissions, or scheduled events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
studio_by_ai21_labs: {
type: "app",
app: "studio_by_ai21_labs",
}
},
async run({steps, $}) {
const data = {
"text": `Pipedream is the fastest way to automate any process that connects APIs. Build and run workflows with code-level control when you need it, and no code when you don't. The Pipedream platform includes a serverless runtime and workflow service, source-available triggers and actions for hundreds of integrated apps, and one-click OAuth and key-based authentication for more than 1000 APIs (use tokens directly in code or with pre-built actions).`,
}
return await axios($, {
method: "post",
url: `https://api.ai21.com/studio/v1/experimental/summarize`,
headers: {
Authorization: `Bearer ${this.studio_by_ai21_labs.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Content Generation on Demand: Trigger a workflow with a webhook that receives topics from a CMS. Use AI21 Labs to generate blog posts or articles based on those topics, and then send the generated content back to the CMS or a team member for review.
Automated Customer Support: Connect a customer support ticketing system to trigger when a new ticket arrives. Use AI21 Labs to compose draft replies or suggest solutions based on the ticket content, reducing response time and assisting support teams.
Event-Driven Email Summarization: Set up a workflow that triggers when new emails arrive in a Gmail inbox. Extract the body of the email and use AI21 Labs to provide a summary. This summary can then be posted to a Slack channel or saved in a Google Doc for quick review.
Studio by AI21 Labs uses API keys for authentication. When you connect your Studio by AI21 Labs account, Pipedream securely stores the keys so you can easily authenticate to Studio by AI21 Labs APIs in both code and no-code steps.
To retrieve your API keys,