Supported Models
AI21
Using AI21 with Flowstack
AI21 can be seamlessly integrated with Flowstack using REST API, Python, or Node.js. Below are the implementation details for each method.
1. Using REST API
To make a request to AI21 using the REST API, use the following Curl command. Ensure you replace YOUR_AI21_API_KEY
with your actual AI21 API key.
2. Using Python
For integrating AI21 with Python, use the script below. Replace YOUR_AI21_API_KEY
and YOUR_FLOWSTACK_KEY
with your AI21 API key and Flowstack key, respectively.
3. Using Node.js
For Node.js integration with AI21, follow the example below. Don’t forget to replace YOUR_AI21_API_KEY
and YOUR_FLOWSTACK_KEY
with your respective credentials.